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

Fix method not found error for File analytics page #5958

Merged
merged 1 commit into from
Mar 27, 2023

Conversation

bbpennel
Copy link
Contributor

Fix method not found error for File analytics page by using hyrax_pageview and hyrax_download methods

Fixes #5955

As described in the ticket, the File analytics page is throwing an error in hyrax 3 and 4. It can be verified on nurax. The change in this PR resolves the problem in my local repository.

It looks like file_download_stat.rb and statistic.rb used these methods at one point, so I do not know if there is a good reason not to use them.

https://github.com/samvera/hyrax/pull/5089/files#diff-5b2a56b95bdff9c7fa8cc57e7444e3b10f7dc22f45aa739805e49cb19ae93d0fL15

@samvera/hyrax-code-reviewers @orangewolf @alishaevn @sara-g @no-reply

Copy link
Member

@orangewolf orangewolf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this code looks right to me. The errors in CI don't seem to be related to it?

@cjcolvar cjcolvar merged commit 0627a75 into samvera:main Mar 27, 2023
@bbpennel bbpennel deleted the 5955-file-analytics branch March 29, 2023 14:47
@dlpierce dlpierce added the notes-bugfix Release Notes: Fixed a bug label Mar 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
notes-bugfix Release Notes: Fixed a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

File analytics page throwing an error
4 participants