Skip to content

Comments

UFAL/Display all versions in version history#1213

Merged
milanmajchrak merged 2 commits intodtq-devfrom
ufal/display-all-versions
Feb 19, 2026
Merged

UFAL/Display all versions in version history#1213
milanmajchrak merged 2 commits intodtq-devfrom
ufal/display-all-versions

Conversation

@Kasinhou
Copy link

@Kasinhou Kasinhou commented Feb 18, 2026

Problem description

https://github.com/dataquest-dev/dspace-customers/issues/408
In version history are displayed only 10 versions of item.

Sync verification

If en.json5 or cs.json5 translation files were updated:

  • Run yarn run sync-i18n -t src/assets/i18n/cs.json5 -i to synchronize messages, and changes are included in this PR.

Manual Testing (if applicable)

Copilot review

  • Requested review from Copilot

Copy link

Copilot AI left a comment

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 fixes an issue where the version history dropdown only displayed 10 versions by overriding the parent component's pagination settings to fetch all versions at once. The implementation modifies the ClarinItemVersionsFieldComponent to set a high pageSize before calling the parent's ngOnInit() and adds caching via shareReplay(1) to prevent duplicate API requests.

Changes:

  • Overrides pageSize to 9999 to fetch all versions in a single request
  • Adds shareReplay(1) operator to cache the enhanced versions observable
  • Imports shareReplay from rxjs/operators

@milanmajchrak milanmajchrak merged commit 2f14694 into dtq-dev Feb 19, 2026
6 of 7 checks passed
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