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 built-in tags to converters (except ndarray and integer) #1474

Merged
merged 8 commits into from
Apr 23, 2023

Conversation

eslavich
Copy link
Contributor

This moves the following built-in tags to converters:

  • tag:stsci.edu:asdf/core/asdf-*
  • tag:stsci.edu:asdf/core/complex-*
  • tag:stsci.edu:asdf/core/constant-* (whatever that is???)
  • tag:stsci.edu:asdf/core/extension_metadata-*
  • tag:stsci.edu:asdf/core/externalarray-*
  • tag:stsci.edu:asdf/core/history_entry-*
  • tag:stsci.edu:asdf/core/software-*
  • tag:stsci.edu:asdf/core/subclass_metadata-*

@eslavich eslavich requested a review from a team as a code owner March 12, 2023 07:43
@eslavich eslavich added the development No backport required label Mar 12, 2023
@eslavich eslavich added this to the 3.0.0 milestone Mar 12, 2023
@eslavich eslavich force-pushed the eslavich-move-types-to-converters branch from f62ea56 to c019ef0 Compare March 12, 2023 07:47
Copy link
Contributor

@braingram braingram left a comment

Choose a reason for hiding this comment

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

Thanks for taking this on!

I added a bunch of questions. My main concerns are over compatibility and API consistency. Functionally things look good (except for maybe complex which looks... complex) but I'd like more information on some of the test removals and compatibility issues.

asdf/tags/core/__init__.py Show resolved Hide resolved
asdf/_tests/test_types.py Show resolved Hide resolved
asdf/_tests/test_types.py Show resolved Hide resolved
asdf/_tests/test_versioning.py Show resolved Hide resolved
asdf/_tests/test_yaml.py Show resolved Hide resolved
asdf/core/_converters/complex.py Outdated Show resolved Hide resolved
@eslavich eslavich requested a review from braingram March 31, 2023 21:15
Copy link
Contributor

@braingram braingram left a comment

Choose a reason for hiding this comment

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

Thanks for updating this and apologies again for not seeing the update.
I added a few more requests:

  • adding a comment to describe the MIN_VERSION_1_0_0_STANDARD addition
  • possibly switching complex types back to using iter_subclasses
    Otherwise the comments are mostly questions to make sure I'm understanding the changes.
    Feel free to mark me again for a review request when this is ready for another look.

asdf/_tests/test_types.py Show resolved Hide resolved
asdf/_tests/test_types.py Show resolved Hide resolved
asdf/_tests/test_api.py Show resolved Hide resolved
asdf/_tests/test_versioning.py Show resolved Hide resolved
asdf/_tests/test_yaml.py Show resolved Hide resolved
asdf/core/_converters/complex.py Outdated Show resolved Hide resolved
asdf/tags/core/__init__.py Show resolved Hide resolved
@eslavich eslavich force-pushed the eslavich-move-types-to-converters branch from b722405 to ede2d03 Compare April 16, 2023 05:03
@eslavich eslavich force-pushed the eslavich-move-types-to-converters branch from 8201ed1 to e02d517 Compare April 16, 2023 05:09
Copy link
Contributor

@braingram braingram left a comment

Choose a reason for hiding this comment

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

LGTM! Out of an abundance of caution I added the downstream label. I don't expect it to fail but we might as well see how it fairs.

@eslavich eslavich merged commit 8c0dced into asdf-format:main Apr 23, 2023
@eslavich eslavich deleted the eslavich-move-types-to-converters branch April 23, 2023 20:01
braingram added a commit to braingram/asdf that referenced this pull request Aug 1, 2023
that test was removed from main asdf-format#1474
However, that PR contains additional changes that we
probably don't want to backport at this time.
@braingram braingram mentioned this pull request Aug 1, 2023
braingram added a commit to braingram/asdf that referenced this pull request Aug 1, 2023
that test was removed from main asdf-format#1474
However, that PR contains additional changes that we
probably don't want to backport at this time.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
development No backport required Downstream CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants