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

Review Report contains duplicate rows #7377

Closed
kaitlinnewson opened this issue Oct 12, 2021 · 8 comments
Closed

Review Report contains duplicate rows #7377

kaitlinnewson opened this issue Oct 12, 2021 · 8 comments
Labels
Bug:1:Low A bug that does not have a severe consequence or affects a small number of users.
Milestone

Comments

@kaitlinnewson
Copy link
Member

Describe the bug
When exporting the Review Report in OJS 3.3.0-6/8, many of the rows are duplicated.

To Reproduce
Steps to reproduce the behavior:

  1. Download the Review Report in Statistics > Report.
  2. Open the downloaded CSV file.
  3. Review the file to note duplicated rows. If in Excel, the "Remove Duplicates" feature can also be used to indicate how many duplicates there are.

What application are you using?
OJS version 3.3.0-6 & 3.3.0-8

@asmecher
Copy link
Member

@NateWr NateWr added the Bug:1:Low A bug that does not have a severe consequence or affects a small number of users. label Oct 13, 2021
@NateWr NateWr added this to the 3.3.0-9 milestone Oct 13, 2021
@asmecher
Copy link
Member

@kaitlinnewson, I'm afraid I can't replicate this locally; can you contact me privately with details about where you're seeing it?

@asmecher asmecher modified the milestones: 3.3.0-9, 3.3.0-10 Mar 1, 2022
@asmecher
Copy link
Member

asmecher commented Mar 3, 2022

I've confirmed that this is #7167; there is a (long) SQL query that can resolve the issue here: #7414 (comment)

Please make sure to take a good database backup before executing it!

@asmecher asmecher closed this as completed Mar 3, 2022
@DigitalCardigan
Copy link

This is listed as closed, but we are having this issue of duplicated rows in reports in OJS 3.3.0.12. Is there a way to correct this? I see there is a suggested SQL fix in a related thread, however, that's an old thread specific to 3.3.0 and we are not having the slow user search issue described in that thread.
My editors want to be able to use this report feature but it is just rows and rows of repeated data.

@jonasraoni
Copy link
Contributor

@DigitalCardigan We don't run database updates on minor OJS upgrades, so if your installation is older than the fix, it's expected to have the problem.

And for the same reason, that we don't upgrade the database, it should be ok to run the query while you're under 3.3.0-X :)

About the slow user search, it should happen once you have a considerable number of users in the system.

@DigitalCardigan
Copy link

@jonasraoni Thank you for the reply. I think my confusion is that the fix linked to above in this thread has a note under it "Updated the code to deal with duplicated user_settings"
committed in Nov 2021 referencing 3.3.0.

I am trying to understand if the code listed on that page shows what was changed in the base code for subsequent upgrades OR if that is just showing the code we are meant to use on our own?

We are on 3.3.0.12 - my interpretation was that since this issue is listed as closed, it would have been resolved during our upgrades since Nov. 2021? We last upgraded Sept 2022.

I am new to GitHub so I apologize if I'm not interpreting this correctly.

@jonasraoni
Copy link
Contributor

@DigitalCardigan The code you've linked is the one supposed to just improve the speed :)

Back to the topic, the issue happens at upgrade time, when you're moving from an older version (e.g. 3.2.x) to 3.3.0, the fix is here: https://github.com/pkp/pkp-lib/pull/7472/files, but it will just address systems which didn't upgrade yet.


If you've upgraded, then you need to run this query: #7414 (comment)

Also, this script will be executed automatically once you upgrade to OJS 3.4.0 (we're on the testing phase, so it's going to be released soon).

@DigitalCardigan
Copy link

@jonasraoni Thank you for the help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug:1:Low A bug that does not have a severe consequence or affects a small number of users.
Projects
None yet
Development

No branches or pull requests

5 participants