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

Truncate some too-long dummy metadata strings. #111

Merged
merged 3 commits into from
Apr 18, 2024

Conversation

schlafly
Copy link
Collaborator

There are a handful of dummy strings in from the roman_datamodels maker utilities that are too long to be parsed by the archive. We truncate those here to be be shorter.

We could consider making the defaults for these strings fit within the archive schema lengths in roman_datamodels or having validation code check these string lengths. That would avoid this sort of issue.

@schlafly schlafly requested a review from a team as a code owner April 18, 2024 14:43
Copy link
Collaborator

@PaulHuwe PaulHuwe left a comment

Choose a reason for hiding this comment

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

Are you going to make an issue in RDM for this, or should I?

@schlafly
Copy link
Collaborator Author

Is it clear to you that you would want to do this in RDM? Ideally validate would do it, but I don't know if we have special RDM code in validate or if that just gets passed straight down to asdf, which doesn't know about these archive keywords? You could just update the default values in RDM which would be easier, I guess.

@schlafly schlafly merged commit 43b1194 into spacetelescope:main Apr 18, 2024
20 checks passed
@schlafly schlafly deleted the truncate-long-string-metadata branch April 18, 2024 15:32
@PaulHuwe
Copy link
Collaborator

RDM wraps validate, so this could be added there.

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