Skip to content

fix(ARC-3598): fix reusability filter for audio / video objects#685

Merged
bertyhell merged 1 commit into
developfrom
bugfix/ARC-3598-fix-reusefilter
Jun 12, 2026
Merged

fix(ARC-3598): fix reusability filter for audio / video objects#685
bertyhell merged 1 commit into
developfrom
bugfix/ARC-3598-fix-reusefilter

Conversation

@bertyhell

Copy link
Copy Markdown
Contributor

@bertyhell bertyhell requested a review from reunefe June 12, 2026 11:41

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses ARC-3598 by updating the Elasticsearch reusability filter so it can match both newspaper objects (via dcterms_rights_statement) and audio/video objects (via reuse_category), and updates the QueryBuilder unit tests accordingly. Several files also include import-only formatting changes.

Changes:

  • Extend the reusability filter to query both dcterms_rights_statement and reuse_category for matching items across object types.
  • Update QueryBuilder tests to assert the new query shape/fields.
  • Apply import formatting changes in a few modules (no logic changes there).

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/modules/users/services/users.service.ts Import formatting only.
src/modules/sitemap/services/sitemap.service.ts Import formatting only.
src/modules/organisations/mocks/organisations.mocks.ts Import formatting only.
src/modules/material-requests/services/material-requests.service.ts Import formatting only.
src/modules/ie-objects/elasticsearch/queryBuilder.ts Update reusability filter to include AV reuse category field; minor import formatting change.
src/modules/ie-objects/elasticsearch/queryBuilder.spec.ts Update tests to reflect the expanded reusability filter behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/modules/ie-objects/elasticsearch/queryBuilder.ts
Comment thread src/modules/ie-objects/elasticsearch/queryBuilder.ts
@bertyhell bertyhell merged commit b2a6647 into develop Jun 12, 2026
1 check passed
@bertyhell bertyhell deleted the bugfix/ARC-3598-fix-reusefilter branch June 12, 2026 18:55
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