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

move SerializationContext to asdf.extension and add it to docs #1573

Merged
merged 2 commits into from
Jul 31, 2023

Conversation

braingram
Copy link
Contributor

@braingram braingram commented Jun 27, 2023

As far as I can tell, the public usage of SerializationContext occurs exclusively through extensions.

Rather than document asdf.asdf (where SerializationContext was implemented prior to this PR) which was previously undocumented, this PR moves SerializationContext to asdf.extension._serialization_context and exposes it publicly at asdf.extension.SerializationContext.

Code that imports SerializationContext from asdf.asdf should continue to work (as SerializationContext is imported in asdf.asdf) but should be updated to import from the documented public location once this PR makes it into a release.

Link to relevant updated docs: https://asdf--1573.org.readthedocs.build/en/1573/api/asdf.extension.SerializationContext.html#asdf.extension.SerializationContext

Fixes #1565
Fixes #1549

@github-actions github-actions bot modified the milestone: 3.0.0 Jun 27, 2023
@braingram braingram marked this pull request as ready for review June 27, 2023 22:05
@braingram braingram requested a review from a team as a code owner June 27, 2023 22:05
@braingram braingram changed the title document SerializationContext move SerializationContext to asdf.extension and add it to docs Jul 19, 2023
Copy link
Contributor

@eslavich eslavich left a comment

Choose a reason for hiding this comment

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

Good call!

@braingram braingram force-pushed the docs/sctx branch 2 times, most recently from abfcc82 to 1646cd2 Compare July 31, 2023 18:56
@braingram braingram enabled auto-merge July 31, 2023 19:08
@braingram braingram merged commit 87331d8 into asdf-format:main Jul 31, 2023
@braingram braingram deleted the docs/sctx branch July 31, 2023 19:34
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.

asdf.asdf.SerializationContext not found SerializationContext missing from docs
3 participants