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

Stubbing out code for editor votes #764

Open
wants to merge 6 commits into
base: master
from
Open

Stubbing out code for editor votes #764

wants to merge 6 commits into from

Conversation

@arfon
Copy link
Member

arfon commented Jul 1, 2020

This PR implements a possible way for the JOSS editorial team to make decisions about editorial scope. Our current approach for flagging/discussing whether a paper is in scope is very noisy for editors (messages posted to the Google group), hard to keep track of, and prone to errors.

The idea is that any pre-review or review issue labeled with query-scope will automatically be included in the twice-weekly emails to all editors to prompt them to vote.

Specifically this PR implements

A UI addition to provide a way for editors to vote on whether or not a submission is in scope:

Screen_Shot_2020-07-01_at_1_30_39_PM

Vote summaries added to the dashboard views:

Screen_Shot_2020-07-01_at_1_29_49_PM

A summary email that is sent to editors on Mondays and Thursdays:

Screen_Shot_2020-07-01_at_1_31_35_PM

arfon added 2 commits Jul 1, 2020
flash[:notice] = "Vote recorded"
redirect_to paper_path(@paper)
# Can't vote on the same item twice
rescue ActiveRecord::RecordNotUnique => e

This comment has been minimized.

Copy link
@arfon

arfon Jul 1, 2020

Author Member

Each editor can only vote on each paper once 😬

@@ -37,6 +37,9 @@ def pretty_labels_for(paper)
concat content_tag(:span, label, style: "padding: 3px; margin-right: 3px; border-radius: 2px; background-color: ##{colour}; color: white;")
elsif label == "recommend-accept"
concat content_tag(:span, label, style: "padding: 3px; margin-right: 3px; border-radius: 2px; background-color: ##{colour}; color: #000000;")
elsif label == "query-scope"

This comment has been minimized.

Copy link
@arfon

arfon Jul 1, 2020

Author Member

This change means that papers labeled with query-scope on the joss-reviews repository will show the label in the dashboard.

task send_query_scope_email: :environment do
if Time.now.monday? || Time.now.thursday?
reviews_repo = Rails.application.settings["reviews"]
review_issues = ReviewIssue.download_review_issues(reviews_repo, 'query-scope')

This comment has been minimized.

Copy link
@arfon

arfon Jul 1, 2020

Author Member

Again, query-scope is the label we're including in the summary emails.

require 'rails_helper'

RSpec.describe Vote, type: :model do
let(:vote) { create(:vote) }

This comment has been minimized.

Copy link
@arfon

arfon Jul 1, 2020

Author Member

#TODO write some tests...

@arfon
Copy link
Member Author

arfon commented Jul 1, 2020

@danielskatz
Copy link
Collaborator

danielskatz commented Jul 1, 2020

Do we want a whedon command to turn on the query-scope label? Maybe not...

@danielskatz
Copy link
Collaborator

danielskatz commented Jul 1, 2020

otherwise, I like the idea of this

Copy link
Member

terrytangyuan left a comment

Love this. The mailing list can be much less verbose!

@kthyng
Copy link
Contributor

kthyng commented Jul 1, 2020

I like this a lot! Small thing: could the scope emojis only show up in the dashboard if the label has been activated for that submissions? Might make it cleaner and easier to see which are being discussed. Also, would there be a place that aggregates all of the submissions with this label (other than the email)?

@eloisabentivegna
Copy link

eloisabentivegna commented Jul 1, 2020

Brilliant feature!

@terrytangyuan
Copy link
Member

terrytangyuan commented Jul 1, 2020

Two questions

  1. How often do we receive emails like this from noreply@joss?
  2. Maybe I missed it somewhere but where can we make comments instead of or along with voting given that the email we receive cannot be replied?
@arfon
Copy link
Member Author

arfon commented Jul 1, 2020

Do we want a whedon command to turn on the query-scope label? Maybe not...

Something like @whedon flag scope or something like that? This might be a good way to ensure the correct label is applied, plus one could imagine using this in combination with asking the author to say more about the software on the pre-review issue.

@arfon
Copy link
Member Author

arfon commented Jul 1, 2020

How often do we receive emails like this from noreply@joss?

@terrytangyuan - the idea would be that these summary emails would be sent twice per week. Mondays and Thursdays and would only include those papers that have been flagged as possibly out of scope.

Maybe I missed it somewhere but where can we make comments instead of or along with voting given that the email we receive cannot be replied?

Yes! Just zooming in a little on one of the screenshots from above, the idea would be that you can include a short (or long) comment with your vote in the text box:

Screen Shot 2020-07-01 at 3 53 27 PM

@arfon
Copy link
Member Author

arfon commented Jul 1, 2020

I like this a lot! Small thing: could the scope emojis only show up in the dashboard if the label has been activated for that submissions? Might make it cleaner and easier to see which are being discussed. Also, would there be a place that aggregates all of the submissions with this label (other than the email)?

Yes, that's a good idea. Perhaps we should just have a dedicated tab on the dashboard for these submissions?

@labarba
Copy link
Member

labarba commented Jul 1, 2020

the idea would be that these summary emails would be sent twice per week. Mondays and Thursdays and would only include those papers that have been flagged as possibly out of scope.

I really think once per week is fine. No one, NO ONE, reacts to submissions at such a fast clip as we do. We are creating a monster.

@jgostick
Copy link

jgostick commented Jul 1, 2020

It seems to me, in my brief 2 weeks under the deluge of these email conversations, that both out of scope and lack of size are issues that need input. In principle it might be possible to answer the size question quantitatively (like comparing the LOC to other projects in the same language), but this is probably most easily done just by asking someone familiar with the language. In other words, should this feature do double duty for scope and size?

@gkthiruvathukal
Copy link

gkthiruvathukal commented Jul 1, 2020

@jgostick In a significant number of cases, I would think "lack of size" is also "lack of scope". Most of these end up being minor utilities and, therefore, not in scope.

This is a welcome addition, @arfon!

@@ -23,9 +23,9 @@ namespace :editorials do
end

desc "Send twice-weekly emails with possible submission rejections"
# Send on Monday and Thursday
# Send on Wednesday

This comment has been minimized.

Copy link
@danielskatz

danielskatz Jul 1, 2020

Collaborator

Let's talk about this tomorrow - I would like to not only do this once a week, just because of the backlog that could build up and be carried over from one AEiC to another. At least, we should think about the schedule of this with respect to AEiC rotation

This comment has been minimized.

Copy link
@arfon

arfon Jul 2, 2020

Author Member

Sorry, we forgot to talk about this today.

My rationale for picking Wednesday was that this would be a couple of days after the start of an EiC rotation so potentially the incoming EiC would have had a chance to review the new submissions and flag any that potentially might be out of scope.

One alternative might be to send this on Sunday at the end of a rotation?

@danielskatz
Copy link
Collaborator

danielskatz commented Jul 2, 2020

Once we do merge this in, we should check for open issues such as #709 that this PR might enable us to close

xuanxu and others added 2 commits Jul 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

9 participants
You can’t perform that action at this time.