Skip to content

Close incomplete review assignments when an article is rejected#4305

Merged
ajrbyers merged 3 commits into
openlibhums:masterfrom
everreau:4251-close-reviews-on-rejected
Jul 23, 2024
Merged

Close incomplete review assignments when an article is rejected#4305
ajrbyers merged 3 commits into
openlibhums:masterfrom
everreau:4251-close-reviews-on-rejected

Conversation

@everreau

@everreau everreau commented Jun 27, 2024

Copy link
Copy Markdown
Contributor

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

Bbkctp commented Jun 27, 2024

Copy link
Copy Markdown
Contributor

Can one of the admins verify this patch?

@ajrbyers

Copy link
Copy Markdown
Member

Jenkins: test this please

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

@joemull joemull left a comment

Copy link
Copy Markdown
Member

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

everreau commented Jul 8, 2024

Copy link
Copy Markdown
Contributor Author

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

@joemull

joemull commented Jul 10, 2024

Copy link
Copy Markdown
Member

@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

@ajrbyers ajrbyers left a comment

Copy link
Copy Markdown
Member

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?

Comment thread src/submission/models.py Outdated
self.date_accepted = None
self.stage = STAGE_REJECTED

self.incomplete_reviews().update(decision='withdrawn',

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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