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

Remove versioned attribute from Resource interface #894

Merged
merged 1 commit into from
Jun 5, 2024

Conversation

victorlin
Copy link
Member

@victorlin victorlin commented Jun 5, 2024

Description of proposed changes

This attribute only served as an alias to determine if the optional attributes firstUpdated|dates|nVersions|updateCadence are available. It's more direct (and preferred by the compiler) to check for presence of the individual attributes directly where needed.

versioned at the top level on ListResourcesResponsiveProps is still valuable and should be kept.

Related issue(s)

Checklist

This attribute only served as an alias to determine if the optional
attributes `firstUpdated|dates|nVersions|updateCadence` are available.
It's more direct (and preferred by the compiler) to check for presence
of the individual attributes directly where needed.

`versioned` at the top level on ListResourcesResponsiveProps is still
valuable and should be kept.
@victorlin victorlin self-assigned this Jun 5, 2024
@nextstrain-bot nextstrain-bot temporarily deployed to nextstrain-s-victorlin--exbkjc June 5, 2024 18:32 Inactive
@victorlin victorlin mentioned this pull request Jun 5, 2024
2 tasks
Copy link
Member

@jameshadfield jameshadfield left a comment

Choose a reason for hiding this comment

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

Haven't tested but looks good by inspection

@victorlin
Copy link
Member Author

Added testing notes in the PR checklist.

@victorlin victorlin merged commit 671150d into master Jun 5, 2024
7 checks passed
@victorlin victorlin deleted the victorlin/remove-resource-version-attribute branch June 5, 2024 23:01
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.

3 participants