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

fix: handle existing derived_from links when Item is updated TDE-1356 #1220

Merged
merged 2 commits into from
Dec 18, 2024

Conversation

paulfouquet
Copy link
Collaborator

@paulfouquet paulfouquet commented Dec 17, 2024

Motivation

When a published Item with derived_from links is resupplied, its existing list of derived_from links may have changed with the resupply. The current implementation would duplicate existing derived_from links and left obsolete ones. It will also remove any derived_from links in case of the Item is not derived from other Items anymore.

Modifications

Remove existing derived_from links to the STAC Item before processing the current derived_from links list.

Verification

Pytest
Argo Workflows

@paulfouquet paulfouquet added the container Publish a container label Dec 18, 2024
@paulfouquet paulfouquet changed the title fix: derived_from links should not be duplicated when Item is updated TDE-1356 fix: handle existing derived_from links when Item is updated TDE-1356 Dec 18, 2024
@paulfouquet paulfouquet marked this pull request as ready for review December 18, 2024 03:06
@paulfouquet paulfouquet requested a review from a team as a code owner December 18, 2024 03:06
@paulfouquet paulfouquet added this pull request to the merge queue Dec 18, 2024
Merged via the queue into master with commit 7dfa7e7 Dec 18, 2024
2 checks passed
@paulfouquet paulfouquet deleted the fix/derived-from-should-not-duplicated-tde-1356 branch December 18, 2024 03:34
@github-actions github-actions bot mentioned this pull request Dec 18, 2024
github-merge-queue bot pushed a commit that referenced this pull request Dec 18, 2024
🤖 I have created a release *beep* *boop*
---


## [7.1.1](v7.1.0...v7.1.1)
(2024-12-18)


### Bug Fixes

* handle existing derived_from links when Item is updated TDE-1356
([#1220](#1220))
([7dfa7e7](7dfa7e7))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
container Publish a container
Development

Successfully merging this pull request may close these issues.

2 participants