[Port to dtq-dev] Refresh file listings on breadcrumb navigation after bitstream upload#1280
Open
kosarko wants to merge 1 commit intodataquest-dev:dtq-devfrom
Open
[Port to dtq-dev] Refresh file listings on breadcrumb navigation after bitstream upload#1280kosarko wants to merge 1 commit intodataquest-dev:dtq-devfrom
kosarko wants to merge 1 commit intodataquest-dev:dtq-devfrom
Conversation
…#112) * Refresh file listings on breadcrumb navigation after bitstream upload Refresh file listings on breadcrumb navigation after bitstream upload * Move refresh logic to ngOnChanges Move refresh logic to ngOnChanges * Set related requests stale instead of removing cache Set related requests stale instead of removing cache * Use setStaleByHrefSubstring for metadatabitstreams cache Use setStaleByHrefSubstring for metadatabitstreams cache * Add null checks for nested RemoteData access Add null checks for nested RemoteData access * Use local bitstream refs and clear caches Replace uses of this.bitstream with the local bitstream observable in edit-bitstream-page to reference the correct stream when computing image/IIIF/enabled flags. After removing bitstreams, clear relevant caches in item-bitstreams: mark bundle bitstreams hrefs stale and invalidate metadatabitstreams search-by-handle (both encoded and raw variants) so file lists, previews and CLARIN file sections refresh correctly. * Fix memory leak, null guard, and style issues from PR review - PreviewSectionComponent: store and unsubscribe configService subscription in ngOnDestroy to prevent memory leak - ItemBitstreamsComponent: add hasValue() null guard before bundles.forEach() for idiomatic style Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Ondrej Kosarko <kosarko@ufal.mff.cuni.cz> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> (cherry picked from commit 45bacd6)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Port of ufal#112 by @amadulhaxxani to
dtq-dev.