Skip to content

PB-1403: only update Item timestamp when Asset timestamp is updated.#649

Open
adk-swisstopo wants to merge 2 commits into
developfrom
PB-1403-item
Open

PB-1403: only update Item timestamp when Asset timestamp is updated.#649
adk-swisstopo wants to merge 2 commits into
developfrom
PB-1403-item

Conversation

@adk-swisstopo
Copy link
Copy Markdown
Member

@adk-swisstopo adk-swisstopo commented Jun 3, 2026

The updated field of Item object is updated whenever any associated Asset object is updated. This causes unecessary churn and confusion when hidden metadata are updated.

This change ensures the Item.updated field is only updated when the Asset.updated field is updated. This broke a test that assumed that updating Asset.title would update Collection.updated. I have modified the test to match the new behaviour.

The `updated` field of `Item` object is updated whenever any associated `Asset`
object is updated. This causes unecessary churn and confusion when hidden
metadata are updated.

This change ensures the `Item.updated` field is only updated when the
`Asset.updated` field is updated.
…more.

Only changes to Asset.file or Asset.checksum_multihash trigger a timestamp
update now.
@adk-swisstopo adk-swisstopo marked this pull request as ready for review June 4, 2026 09:20
Copy link
Copy Markdown
Contributor

@benschs benschs left a comment

Choose a reason for hiding this comment

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

👍

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