-
Notifications
You must be signed in to change notification settings - Fork 245
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
fix: updating schema/field metadata now retains fragments #3384
Conversation
Operation::UpdateConfig { .. } => { | ||
final_fragments.extend(maybe_existing_fragments?.clone()); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should combine this with the Operation::ReserveFragments()
branch since they are both metadata-only updates. That way we can keep the logic up-to-date more easily.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good call, made this change
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3384 +/- ##
==========================================
+ Coverage 78.49% 78.55% +0.05%
==========================================
Files 250 250
Lines 90243 90379 +136
Branches 90243 90379 +136
==========================================
+ Hits 70833 70993 +160
+ Misses 16505 16477 -28
- Partials 2905 2909 +4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Had some minor suggestions for the tests
dataset | ||
.replace_field_metadata(vec![(0, new_field_meta.clone())]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't actually realize we re-used UpdateConfig
for schema metadata updates. I thought we just used it for the dataset config.
Co-authored-by: Will Jones <[email protected]>
Co-authored-by: Will Jones <[email protected]>
Co-authored-by: Will Jones <[email protected]>
Co-authored-by: Will Jones <[email protected]>
fixes: #3383