Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(core): Add is_current to metadata #5493

Merged
merged 4 commits into from
Jan 2, 2025

Conversation

Wenbin1002
Copy link
Contributor

@Wenbin1002 Wenbin1002 commented Jan 1, 2025

Which issue does this PR close?

Closes #5474

Rationale for this change

Metadata now contains version for the given file, but there is no way for users to different if this version the latest version of file.

What changes are included in this PR?

add is_current field to metadata and initialize it in s3 and oss service

Are there any user-facing changes?

Add Metadata::is_current() -> Option<bool> API for user.

(cherry picked from commit 39bb79d)
core/src/services/oss/backend.rs Outdated Show resolved Hide resolved
core/src/services/s3/backend.rs Outdated Show resolved Hide resolved
core/src/types/metadata.rs Outdated Show resolved Hide resolved
core/src/types/metadata.rs Outdated Show resolved Hide resolved
core/src/types/metadata.rs Show resolved Hide resolved
@Wenbin1002
Copy link
Contributor Author

I’ve updated the code based on your comments. PTAL, thanks!

Copy link
Member

@Xuanwo Xuanwo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @Wenbin1002 for this!

@Xuanwo Xuanwo merged commit 8549524 into apache:main Jan 2, 2025
241 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

new feature: Add is_current for Metadata
2 participants