Skip to content

Conversation

@qqmyers
Copy link
Member

@qqmyers qqmyers commented Jan 16, 2026

What this PR does / why we need it: At some point, content indexing was updated such that files in a released version, whose metadata has not changed in a draft version, are no longer indexed in the draft version (so you could still find the file from the released version, but would not know it existed in a newer draft as well from the search results alone - a minor inconvenience to avoid doubling the cost of indexing files when new drafts are created.)

However, permission indexing was not updated to match and thus, when permissions are indexed, files in this situation get perm docs for both the released version (where a matching content doc exists) and the draft version (where no content doc has been created). This PR fixes that and uses the same approach in permission indexing to not perm reindex files if their metadata does not change.

Which issue(s) this PR closes:

  • Closes #

Special notes for your reviewer: The PR builds on #12082 and #12093 which can hopefully be merged first. The final fix here is relatively straight forward - just ~reusing the existing logic from the content indexing - I did change the query to return file ids rather than filemetadata ids since we don't have easy access to the filemetadata ids on the permission side due to earlier optimizations.

Suggestions on how to test this: Primarily regression testing - visible indexing and search shouldn't change. The one effect that can be seen is that there will no longer be perm docs for a files in a post-release draft version that don't have metadata changes. That can be seen via the Solr console/direct query to Solr.

Does this PR introduce a user interface change? If mockups are available, please link/include them here:

Is there a release notes update needed for this change?:

Additional documentation:

@qqmyers qqmyers added the Size: 3 A percentage of a sprint. 2.1 hours. label Jan 16, 2026
@qqmyers qqmyers moved this to Ready for Triage in IQSS Dataverse Project Jan 16, 2026
@coveralls
Copy link

Coverage Status

coverage: 24.332% (+0.02%) from 24.314%
when pulling 91685bb on QualitativeDataRepository:indexingperf3
into f214ee4 on IQSS:develop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Size: 3 A percentage of a sprint. 2.1 hours.

Projects

Status: Ready for Triage

Development

Successfully merging this pull request may close these issues.

2 participants