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

User profile page displays wrong count for collections and works #5568

Closed
rjkati opened this issue Mar 22, 2022 · 3 comments · Fixed by #6087
Closed

User profile page displays wrong count for collections and works #5568

rjkati opened this issue Mar 22, 2022 · 3 comments · Fixed by #6087

Comments

@rjkati
Copy link

rjkati commented Mar 22, 2022

Descriptive summary

On nurax-pg, the depositor page displays the incorrect count for both works and collections.

Expected behavior

Works and Collections count should be accurate.

Actual behavior

Works and collections count seem to be displayed together under the collection count.

Steps to reproduce the behavior

  1. Go to nurax-pg homepage https://nurax-pg.curationexperts.com/?locale=en
  2. Click the "Recently Uploaded" tab
  3. Click on the name of a depositor
  4. Observe work and collections count in the user statistics box.

userstats

Note that this user ([email protected]) has created 22 works and 2 collections at the time of the writing of this ticket. The user statistics show that [email protected] has created 24 collections, which suggests that the collection and work counts might be added together for display.

workcount
collectioncount

@elrayle
Copy link
Contributor

elrayle commented Apr 4, 2022

NOTE:

  • Clicking Works created in the user's stats panel shows 0 works. The filters are correct (i.e. Type -> Work, Depositor -> the user from the panel)
  • Clicking Collections created in the user's stats panel correctly shows the user's collections only.
  • While viewing the created collections, removing the collection filter shows all works and collections, as expected.

Seems like there are 2 problems happening...

  • for sure, the count of items in the panel is including works and collections in the collection count and always 0 works
  • likely, there is either something wrong with the query of solr or with the data in solr or both

@jlhardes
Copy link
Contributor

jlhardes commented Aug 18, 2022

Remaining work on #3820 - Replace calls to ActiveFedora::Base.where (removes 7 refs to ActiveFedora) might be needed for this issue

@gamontoya
Copy link

@rjkati This is closeable. It's working on nurax-pg Hyrax Version: 4.0.0

@rjkati rjkati closed this as completed Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants