Skip to content

Ekir 306 handle titles appearing in feed multiple times#140

Merged
natlibfi-kaisa merged 4 commits intomainfrom
EKIR-306-Handle-titles-appearing-in-feed-multiple-times
Mar 18, 2025
Merged

Ekir 306 handle titles appearing in feed multiple times#140
natlibfi-kaisa merged 4 commits intomainfrom
EKIR-306-Handle-titles-appearing-in-feed-multiple-times

Conversation

@natlibfi-kaisa
Copy link
Copy Markdown
Contributor

@natlibfi-kaisa natlibfi-kaisa commented Mar 14, 2025

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 one of the titles in our test feed which appears twice and with different license in each. After importing the feed, you can run license_report to check their status: both licenses should be available.
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

Comment thread core/metadata_layer.py
Copy link
Copy Markdown
Contributor

@natlibfi-psams natlibfi-psams left a comment

Choose a reason for hiding this comment

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

ok

@natlibfi-kaisa natlibfi-kaisa merged commit ae57158 into main Mar 18, 2025
24 checks passed
@natlibfi-kaisa natlibfi-kaisa deleted the EKIR-306-Handle-titles-appearing-in-feed-multiple-times branch March 18, 2025 09:53
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