feat(services/onedrive): List dir shows metadata#5632
feat(services/onedrive): List dir shows metadata#5632Xuanwo merged 1 commit intoapache:mainfrom erickguan:onedrive-metadata
Conversation
meteorgan
left a comment
There was a problem hiding this comment.
The test workflow in .github/services is missing, we should add one.
core/src/services/onedrive/lister.rs
Outdated
| oio::Entry::new(&normalized_path, Metadata::new(EntryMode::FILE)) | ||
| } | ||
| let mut meta = Metadata::new(entry_mode) | ||
| .with_last_modified( |
There was a problem hiding this comment.
we have some time functions in chrono_utils.rs, like: parse_datetime_from_rfc2822. Maybe we could reuse them.
There was a problem hiding this comment.
Thanks for the tip, added.
I remembered that we failed to set up a OneDrive test. |
|
I generated a token from a personal test account with Additional permissions are useful for API Graph explorer which I recommend:
What do you want me next? These actions look sensible:
|
Since we don't have a test workflow for this, have you run the tests locally ? You can use the command |
|
Rebased and ready. OPENDAL_TEST=onedrive cargo test behavior --features tests,services-onedrive -- --show-output |
|
LGTM. Thanks for working on this. @erickguan |
|
@meteorgan happy to help! |
Xuanwo
left a comment
There was a problem hiding this comment.
Thank you @erickguan for working on this and thank you @meteorgan for the review.
|
By the way, @erickguan would you like to help fix the conflicts? |
|
Sure, I will rebase it and ping you. |
Most my test folders have 0 in size, but one has 3. I didn't dig into it.
|
Rebased @Xuanwo |
|
Thank you @erickguan for this! |
Which issue does this PR close?
Part of #4746.
What changes are included in this PR?
Supports OneDrive lister with metadata.