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

OPS: Duplicate Galley Views Countes #10082

Closed
bozana opened this issue Jun 18, 2024 · 2 comments
Closed

OPS: Duplicate Galley Views Countes #10082

bozana opened this issue Jun 18, 2024 · 2 comments
Assignees
Labels
Bug:1:Low A bug that does not have a severe consequence or affects a small number of users.
Milestone

Comments

@bozana
Copy link
Collaborator

bozana commented Jun 18, 2024

s. https://forum.pkp.sfu.ca/t/duplicate-galley-view-counts/88363

When creating a new version of a preprint (and article) a new galley is created that points to/contains the same file ID as the previous galley. This function getTotalGalleyViews (s. https://github.com/pkp/ops/blob/stable-3_3_0/classes/submission/Submission.inc.php#L251) does not consider it however, which leads to wrong vies numbers.

PRs:
stable-3_3_0: pkp/ops#708
stable-3_4_0: pkp/ops#709
main: pkp/ops#710

@bozana
Copy link
Collaborator Author

bozana commented Jun 18, 2024

@jonasraoni, could you please take a look at the PRs above?
Thanks a lot!

@bozana bozana self-assigned this Jun 18, 2024
bozana added a commit to pkp/ops that referenced this issue Jun 19, 2024
bozana added a commit to pkp/ops that referenced this issue Jun 19, 2024
pkp/pkp-lib#10082 consider same file IDs in getTotalGalleyViews()
bozana added a commit to pkp/ops that referenced this issue Jun 19, 2024
pkp/pkp-lib#10082 consider same file IDs in getTotalGalleyViews()
@bozana
Copy link
Collaborator Author

bozana commented Jun 19, 2024

Thanks a lot @jonasraoni!

@bozana bozana closed this as completed Jun 19, 2024
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

1 participant