Closed scherztc closed 6 months ago
We have an override app/models/hyrax/statistic.rb
where we include Filesets in the stats. Do we want maintain the customization?
https://github.com/uclibs/ucrate/blob/hyrax_3/app/models/hyrax/statistic.rb
crowesn@UCL-M3WYML7L ucrate % diff /tmp/hyrax/statistics.rb /tmp/ucrate/statistics.rb
30c32,37
< path = polymorphic_path(object)
---
> path = if object.class.to_s == 'FileSet'
> hyrax_parent_file_set_path(object.parent, object)
> else
> polymorphic_path object
> end
>
I'm thinking we can drop this override altogether: https://github.com/uclibs/ucrate/blob/hyrax_3/app/services/hyrax/analytics.rb
This yaml load happens in the hyrax engine, I tested on local and values from /config/analytics.rb are populated. What am I missing?
We have an override
app/models/hyrax/statistic.rb
where we include Filesets in the stats. Do we want maintain the customization? https://github.com/uclibs/ucrate/blob/hyrax_3/app/models/hyrax/statistic.rbcrowesn@UCL-M3WYML7L ucrate % diff /tmp/hyrax/statistics.rb /tmp/ucrate/statistics.rb 30c32,37 < path = polymorphic_path(object) --- > path = if object.class.to_s == 'FileSet' > hyrax_parent_file_set_path(object.parent, object) > else > polymorphic_path object > end >
This override is moot here: https://github.com/samvera/hyrax/commit/e8a20ec1a217b32e062f7d5f5f285408cfdff00c
We can remove it.
Descriptive summary
Broke with Hyrax upgrade from 2.9.8 to 3.6
‘’' 507) Hyrax::Analytics::Config defines analytics variables Failure/Error: new yaml.fetch('analytics')
Expected behavior
Actual behavior
Steps to reproduce the behavior
Related work
Link to related issues or prior related work here.