psu-libraries / scholarsphere-3

A web application for ingest, curation, search, and display of digital assets. Powered by Hydra technologies (Rails, Hydra-head, Blacklight, Solr, Fedora Commons, etc.)
Apache License 2.0
78 stars 24 forks source link

Stats report is using system created date instead of migrated created date #933

Closed carolyncole closed 6 years ago

carolyncole commented 7 years ago

The stats report is not looking at our migrated field, but must be looking at the actual system creation date.

This is ok, except when we migrate data. This morning we got a report that 7324 items were uploaded last week.

nrm149 commented 6 years ago
awead commented 6 years ago

If we change system_create_dtsi to date_uploaded_dtsi in Sufia::QueryService, that should give us what we want.

awead commented 6 years ago

The stats page isn't rendering because of:

NoMethodError: undefined method `[]' for nil:NilClass> - "/opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.3.0/gems/sufia-7.4.1/app/services/sufia/statistics/term_query.rb:26:in `query'"

Maybe we can fix that so we can have a good feature test of the stats page that demonstrates the issue is resolved?

Related to #1346