Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XWIKI-21922: Introduce methods to fetch a subset of revisions in XWikiVersioningStoreInterface #2967

Merged
merged 2 commits into from
Mar 7, 2024

Conversation

pjeanjean
Copy link
Contributor

Jira URL

https://jira.xwiki.org/browse/XWIKI-21922

Changes

Description

  • Support properly RevisionCriteria ranges that include all revisions.
  • Only cache XWikiDocumentArchive when they are fully loaded.

Clarifications

In the previous PR (#2925) I missed a case with ranges: when the size is 0, every revision should be included. This lead to several tests failing in the CI, but it is now working properly.
Also, when investigating this, I noticed I overlooked some caching operations done on document archives which were incompatible with the implementation of the new API. Partial archives could be stored and reused later, possibly ignoring criteria. A fix for that is also provided, but this one will impact performances until #2926 and #2927 are also merged.

Screenshots & Video

N/A

Executed Tests

Previously failing tests were successfully run with these patches.

Expected merging strategy

  • Prefers squash: Yes
  • Backport on branches:
    • stable-15.10.x

…iVersioningStoreInterface

* Fix missing support for "ALL" ranges
…iVersioningStoreInterface

* Fix XWikiDocumentArchive caching issues
@surli surli added the backport stable-15.10.x Used for automatic backport to 15.10.x branch. label Mar 7, 2024
@tmortagne tmortagne merged commit 47b7376 into xwiki:master Mar 7, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport stable-15.10.x Used for automatic backport to 15.10.x branch.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants