Skip to content

Ekir 306 handle licenses of title appearing in feed multiple times#144

Merged
natlibfi-kaisa merged 3 commits intomainfrom
EKIR-306-Handle-licenses-of-title-appearing-in-feed-multiple-times
Mar 25, 2025
Merged

Ekir 306 handle licenses of title appearing in feed multiple times#144
natlibfi-kaisa merged 3 commits intomainfrom
EKIR-306-Handle-licenses-of-title-appearing-in-feed-multiple-times

Conversation

@natlibfi-kaisa
Copy link
Copy Markdown
Contributor

Description

It was noticed that a work entry can appear several times in a feed. This PR ensures that licenses that really have been removed from the feed are set as unavailable and any existing ones with relevant details.

Motivation and Context

This fixes the the problem noticed after implementing https://jira.it.helsinki.fi/browse/EKIRJASTO-218.

How Has This Been Tested?

Unit tests. Locally can be tested with two titles in our test feed which appears twice: One of them with a license each time, and the other has two licenses of which one is expired and the other is not. After importing the feed, you can run license_report to check their statuses: only the expired one should be unavailable.
No actually missing licenses are in our test environment, though.

Checklist

  • I have updated the documentation accordingly.
  • All new and existing tests passed.
  • Transifex translators have been notified. -> N/A

@natlibfi-kaisa natlibfi-kaisa merged commit 18f5b6c into main Mar 25, 2025
24 checks passed
@natlibfi-kaisa natlibfi-kaisa deleted the EKIR-306-Handle-licenses-of-title-appearing-in-feed-multiple-times branch October 10, 2025 06:33
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