-
Notifications
You must be signed in to change notification settings - Fork 124
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
Dashboard Statistics generates NoMethodError (nurax-pg) #5592
Comments
Remaining work on #3820 - Replace calls to ActiveFedora::Base.where (removes 7 refs to ActiveFedora) might be needed for this issue |
The errors described in this ticket seems to ultimately trace back to Hyrax::AbstractTypeRelation. This class explicitly inherits from ActiveFedora::Relation. The purpose of the I think this whole file could be refactored to use Valkyrie query services. An observation I had was that a lot of code that uses Any guidance on how to move forward is appreciated. |
I agree, it could be refactored to use valkyrie. The WorkRelation subclass is used in a variety of places in Hyrax, so not something that can be retired. Creating a full valkyrie refactor that includes all of the features of AF::Relation is probably not needed if we can identify which methods are actually used. That seems to be WorkQueryService uses WorkRelation and has WorkResourceQueryService as a valkyrie replacement. Perhaps the other uses can be substituted similarly? Another thought is can some valkyrie custom queries be the replacement? I think delegated_attributes is a list of methods that can be set by the model that should be listed and accessible in the same way as standard model attributes. |
This ticket is on hold until the GA4 work is complete, as it is currently not working in hyrax main. |
Viewing Statistics as an admin from the Dashboard is working in Hyrax 5.0.0 on both https://dev.nurax.samvera.org/ and https://pg.nurax.samvera.org/. There are no errors and date range filters work as well. |
Descriptive summary
Hyrax 3.3 for nurax-pg: when logged as in administrator, trying to view the Statistics (reports) section of the dashboard returns an error.
Rationale
For maintaining current Hyrax functionality, admin users should be able to access the Statistics section of the dashboard.
Expected behavior
Admin user can see summary statistics and date range selection options
Actual behavior
NoMethodError page is shown
Steps to reproduce the behavior
Equivalent page in nurax-dev:
The text was updated successfully, but these errors were encountered: