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

Close incomplete review assignments when an article is rejected #4305

Merged
merged 3 commits into from
Jul 23, 2024

Conversation

everreau
Copy link
Contributor

@everreau everreau commented Jun 27, 2024

Closes #4251

We found that open review counts for some reviewers were higher than expected because incomplete reviews from rejected articles were still open.

  • Close incomplete review assignments when an article is rejected
  • Add a callout to the "decline" email form that tells the user this will happen.

@Bbkctp
Copy link
Contributor

Bbkctp commented Jun 27, 2024

Can one of the admins verify this patch?

@ajrbyers
Copy link
Member

Jenkins: test this please

@ajrbyers ajrbyers requested review from mauromsl and joemull and removed request for mauromsl June 28, 2024 08:24
Copy link
Member

@joemull joemull left a comment

Choose a reason for hiding this comment

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

Thank you for this @everreau --all the logic looks good to me, and we always appreciate a test!

Could we just put the line lengths down to PEP-8's max width of 80 chars? I know Janeway has lots of long lines but we are currently working on getting that down by linting the things we change. (We want to implement Black at some point but it is hard finding the right moment.)

@joemull joemull assigned joemull and unassigned joemull Jul 3, 2024
@everreau
Copy link
Contributor Author

everreau commented Jul 8, 2024

@joemull done. I'm assuming this only applies to python code not templates.

@joemull
Copy link
Member

joemull commented Jul 10, 2024

@joemull done. I'm assuming this only applies to python code not templates.

Thanks. Yes for now just Python, though we are considering the same max width of 80 for HTML and CSS.

@joemull joemull requested a review from ajrbyers July 10, 2024 10:53
@joemull joemull assigned ajrbyers and unassigned joemull Jul 10, 2024
Copy link
Member

@ajrbyers ajrbyers left a comment

Choose a reason for hiding this comment

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

I've requested a change but also have a thought to discuss. When we withdraw a review manually we also email the reviewer:

https://github.com/BirkbeckCTP/janeway/blob/78dd8f015293257b6f0e7c551fd2af29a1a35c3f/src/review/views.py#L1548-L1575

Should this process automatically send an email using this tempalte to the reviewers as well?

@@ -1514,6 +1514,10 @@ def decline_article(self):
self.date_declined = timezone.now()
self.date_accepted = None
self.stage = STAGE_REJECTED

self.incomplete_reviews().update(decision='withdrawn',
Copy link
Member

Choose a reason for hiding this comment

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

Can this be updated to use the constant value models.RD.DECISION_WITHDRAWN.value?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@ajrbyers ajrbyers assigned everreau and unassigned ajrbyers Jul 10, 2024
@everreau
Copy link
Contributor Author

I've requested a change but also have a thought to discuss. When we withdraw a review manually we also email the reviewer:

https://github.com/BirkbeckCTP/janeway/blob/78dd8f015293257b6f0e7c551fd2af29a1a35c3f/src/review/views.py#L1548-L1575

Should this process automatically send an email using this tempalte to the reviewers as well?

I asked Charlotte about this and she says if it's just an auto-notification she'd rather not. It's more likely to be interpreted as spam.

@ajrbyers ajrbyers merged commit 1d254f3 into openlibhums:master Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Review assignments should be closed if an article is rejected
4 participants