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

Drop support for automatic serialization of subclass attributes #825

Conversation

eslavich
Copy link
Contributor

This PR bids farewell to the experimental feature that performed automatic serialization of subclass attributes.

@eslavich eslavich force-pushed the eslavich-drop-subclass-attribute-serialization branch from d0cf265 to e3abc34 Compare July 13, 2020 18:08
@eslavich eslavich requested a review from jdavies-st July 15, 2020 15:40
Copy link
Contributor

@jdavies-st jdavies-st left a comment

Choose a reason for hiding this comment

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

Looks good!

If a file has been written out using a subclass attr, will it now just get read in as a raw dict?

@eslavich
Copy link
Contributor Author

If a file has been written out using a subclass attr, will it now just get read in as a raw dict?

Since it still bears the tag associated with the parent class, then the parent class will be instantiated and the subclass attributes will be lost. That'd be pretty bad, but since the feature was marked experimental and I can't find any evidence of anyone using it, I don't think we need to worry too much about that case.

@eslavich eslavich added this to the 2.8.0 milestone Jul 15, 2020
Copy link
Contributor

@jdavies-st jdavies-st left a comment

Choose a reason for hiding this comment

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

Looks good! Love code being deleted. =)

@eslavich eslavich merged commit e2d8f65 into asdf-format:master Jul 16, 2020
@eslavich eslavich deleted the eslavich-drop-subclass-attribute-serialization branch July 16, 2020 21:17
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.

2 participants