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

Reindexing isn't fully implemented and users/community members indexing doesn't work #2608

Open
tmorrell opened this issue Mar 8, 2024 · 6 comments
Labels
bug Something isn't working stale No activity for more than 60 days.

Comments

@tmorrell
Copy link
Contributor

tmorrell commented Mar 8, 2024

Package version (if known): v12

Describe the bug

The current reindex commands in rdm-records and rdm-communities don't fully reindex requests and request events. In addition the users, groups, and community members bulk_index commands that were added two years ago don't seem to work. I'm also not sure how to re-initialize the usage stats indexes.

Steps to Reproduce

  1. Set up a normal install, including adding users, communities, and submitting some requests
  2. Delete indexes
  3. Reindex records and communities
  4. See that the requests index is blank.
  5. Try to manually reindex users with
users_service = current_service_registry.get("users")
users_service.rebuild_index(system_identity)
  1. See that the users index is blank

Expected behavior

There should be a recipe for re-indexing all content. A script based approach that works is https://github.com/caltechlibrary/caltechauthors/blob/main/scripts/reindex_more_stuff.py, but this isn't ideal. Requests should probably be included in community reindexing and the users/community members indexing is pretty slow.

@tmorrell tmorrell added the bug Something isn't working label Mar 8, 2024
@zzacharo
Copy link
Member

Hey @tmorrell, have you tried using this command ?

@Samk13
Copy link
Member

Samk13 commented Mar 11, 2024

@zzacharo I added this and other rdm commands in the docs as they are not in the reference yet.
Please let me know if the documentation for this command is accurate and covers everything needed:
inveniosoftware/docs-invenio-rdm#608

@zzacharo
Copy link
Member

@zzacharo I added this and other rdm commands in the docs as they are not in the reference yet. Please let me know if the documentation for this command is accurate and covers everything needed: inveniosoftware/docs-invenio-rdm#608

Thanks for that! I approved it!

@tmorrell
Copy link
Contributor Author

The cli command should solve the requests issue. I need to test it, but I don't think it will solve the users issue.

@tmorrell
Copy link
Contributor Author

This turned out to be a celery issue. I've added more details into the documentation, and this issue can be closed after merging.

Copy link
Contributor

This issue was automatically marked as stale.

@github-actions github-actions bot added the stale No activity for more than 60 days. label May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale No activity for more than 60 days.
Projects
None yet
Development

No branches or pull requests

3 participants