-
Notifications
You must be signed in to change notification settings - Fork 147
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
upgrade recipes: missing reindexing of users and other indices #1914
Comments
This issue was automatically marked as stale. |
This issue was automatically marked as stale. |
@ppanero is this still valid for v12? |
@ntarocco I haven't followed in depth the changes in indexer, so for context: IIRC, when doing the migration v9 to v10 we had to remove indices because there were changes in the mappings. Then there is no complete re-index command (there is one in rdm-records, but it does not take into account subservices and the like). On the other hand this is only needed if there are changes to the mapping. Otherwise, if the records/users/etc. change but the mapping does not a simple re-index would work and there would be no need to remove the indices. In this latest case, the code above is only needed if we have to reindex users, groups, members, requrests, or events. Idea: Maybe the work in access requests requires this since it adds some properties to the users (and I guess requests) |
This issue was automatically marked as stale. |
documented in inveniosoftware/docs-invenio-rdm#607 and therefore fixed. the line |
Package version (if known): v10
Describe the bug
When upgrading the instance, sometimes we need to wipe out indices. Then we recreate. However, we only recreate some (records, communities, vocabularies) but not users and others.
Steps to Reproduce
invenio index destroy --yes-i-know
invenio index init
invenio rdm-records rebuild-index
invenio communities rebuild-index
Expected behavior
All indices should be rebuilt
Additional context
Potential solution:
index init
should allow to create only one (or several, but not all) indices. That way we could make use of the same functionality inindex destroy
, which is already available.reubild-indices
should accept a name and rebuild only thatainvenio-vocabularies
not inrdm-records
, alternatively include alsocommunities
. The command should be made parametrizable so we can use the target destroy-recreate-reindex.At the moment we need to run this extra lines in a
invenio-cli pyshell
The text was updated successfully, but these errors were encountered: