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

refactor: only allow one of specific link types TDE-1298 #1182

Merged

Conversation

schmidtnz
Copy link
Contributor

Motivation

Refactoring to support TDE-1298 - only allow one link of each of the types Collection, Parent, Self.

Modifications

Added logic in ImageryItems add_link method to recognise when a link of each type already exists.
Added __str__ method to StacMediaType and Relation types, and made sure the Link class will contain strings for rel and type.

Verification

pytest

@schmidtnz schmidtnz marked this pull request as ready for review November 21, 2024 01:37
@schmidtnz schmidtnz requested a review from a team as a code owner November 21, 2024 01:37
@schmidtnz schmidtnz enabled auto-merge November 21, 2024 01:38
@schmidtnz schmidtnz added this pull request to the merge queue Nov 21, 2024
Merged via the queue into master with commit 119a2cd Nov 21, 2024
2 checks passed
@schmidtnz schmidtnz deleted the refactor/only-allow-one-link-of-specific-types-tde-1298 branch November 21, 2024 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants