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: Implement Deserialize for Catalog #25730

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mgattozzi
Copy link
Contributor

This was fairly easy all things considered. We needed to turn on the serde feature for parking_lot, remove the Serialize impl, derive both it and Deserialize, and add the flatten attribute and we're all set. The output for the tests changed, but only the order of fields, not the actual content so it's fine that we updated them. This change will allow us to deserialize the Catalog in the future if need be without running into issues around the fact that it can't implement it.

Closes #25574

This was fairly easy all things considered. We needed to turn on the
serde feature for parking_lot, remove the Serialize impl, derive both it
and Deserialize, and add the flatten attribute and we're all set. The
output for the tests changed, but only the order of fields, not the
actual content so it's fine that we updated them. This change will allow
us to deserialize the Catalog in the future if need be without running
into issues around the fact that it can't implement it.

Closes #25574
Copy link
Contributor

@hiltontj hiltontj left a comment

Choose a reason for hiding this comment

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

It would be nice if we could remove the need to de/serialize the db_map attribute, as #25574 describes, but since there are only ever 5 max DBs leaving it in is not a big deal.

My only suggestion would be to leave #25574 open and update the description to say the alternative was resolved, so we can deal with that bit of cleanup later. Removing the db_map from the serialized form should be a backward compatible change also, so not urgent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Re-implement Serialize and Deserialize for Catalog as is done for its nested types
2 participants