-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARR: Change Seniority Condition (#2329)
* Check seniority with publication count * Change flag criteria * Revert publication threshold --------- Co-authored-by: celestemartinez <[email protected]>
- Loading branch information
1 parent
105ded8
commit 1fb147f
Showing
3 changed files
with
150 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,7 @@ | |
|
||
SHORT_BUFFER_MIN = 30 | ||
LONG_BUFFER_DAYS = 10 | ||
SENIORITY_PUBLICATION_COUNT = 8 | ||
|
||
class ARR(object): | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,14 +43,14 @@ def test_august_cycle(self, client, openreview_client, helpers, test_client, req | |
helpers.create_user('[email protected]', 'AC', 'ARROne') | ||
helpers.create_user('[email protected]', 'AC', 'ARRTwo') | ||
helpers.create_user('[email protected]', 'AC', 'ARRThree') | ||
helpers.create_user('[email protected]', 'Reviewer', 'ARRTwo') | ||
#helpers.create_user('[email protected]', 'Reviewer', 'ARRTwo') | ||
helpers.create_user('[email protected]', 'Reviewer', 'ARRThree') | ||
helpers.create_user('[email protected]', 'Reviewer', 'ARRFour') | ||
helpers.create_user('[email protected]', 'Reviewer', 'ARRFive') | ||
helpers.create_user('[email protected]', 'Reviewer', 'ARRSix') | ||
helpers.create_user('[email protected]', 'EthicsReviewer', 'ARROne') | ||
|
||
# Manually create Reviewer ARROne as a professor | ||
# Manually create Reviewer ARROne as having more than 5 *CL main publications | ||
fullname = f'Reviewer ARROne' | ||
res = openreview_client.register_user(email = '[email protected]', fullname = fullname, password = helpers.strong_password) | ||
username = res.get('id') | ||
|
@@ -70,7 +70,7 @@ def test_august_cycle(self, client, openreview_client, helpers, test_client, req | |
'preferredEmail': '[email protected]' | ||
} | ||
profile_content['history'] = [{ | ||
'position': 'Full Professor', | ||
'position': 'Student', | ||
'start': 2017, | ||
'end': None, | ||
'institution': { | ||
|
@@ -85,6 +85,84 @@ def test_august_cycle(self, client, openreview_client, helpers, test_client, req | |
assert profile.content['names'][0]['username'] == '~Reviewer_ARROne1' | ||
assert profile.content['names'][1]['username'] == '~Reviewer_Alternate_ARROne1' | ||
|
||
for i in range(1, 9): | ||
edit = rev_client.post_note_edit( | ||
invitation='openreview.net/Archive/-/Direct_Upload', | ||
signatures=['~Reviewer_ARROne1'], | ||
note = openreview.api.Note( | ||
pdate = openreview.tools.datetime_millis(datetime.datetime(2019, 4, 30)), | ||
content = { | ||
'title': { 'value': f'Paper title {i}' }, | ||
'abstract': { 'value': f'Paper abstract {i}' }, | ||
'authors': { 'value': ['Reviewer ARROne', 'Test2 Client'] }, | ||
'authorids': { 'value': ['~Reviewer_ARROne1', '[email protected]'] }, | ||
'venue': { 'value': 'EMNLP 2024 Main' } | ||
}, | ||
license = 'CC BY-SA 4.0' | ||
)) | ||
openreview_client.post_note_edit( | ||
invitation='openreview.net/-/Edit', | ||
readers=['openreview.net'], | ||
writers=['openreview.net'], | ||
signatures=['openreview.net'], | ||
note=openreview.api.Note( | ||
id = edit['note']['id'], | ||
content = { | ||
'venueid': { 'value': 'EMNLP/2024/Conference' } | ||
} | ||
) | ||
) | ||
|
||
# Manually create Reviewer ARRTwo as having more than 5 non-*CL main publications | ||
fullname = f'Reviewer ARRTwo' | ||
res = openreview_client.register_user(email = '[email protected]', fullname = fullname, password = helpers.strong_password) | ||
username = res.get('id') | ||
profile_content={ | ||
'names': [ | ||
{ | ||
'fullname': fullname, | ||
'username': username, | ||
'preferred': False | ||
}, | ||
{ | ||
'fullname': 'Reviewer Alternate ARRTwo', | ||
'preferred': True | ||
} | ||
], | ||
'emails': ['[email protected]'], | ||
'preferredEmail': '[email protected]' | ||
} | ||
profile_content['history'] = [{ | ||
'position': 'Full Professor', | ||
'start': 2017, | ||
'end': None, | ||
'institution': { | ||
'country': 'US', | ||
'domain': 'aclrollingreview.com', | ||
} | ||
}] | ||
rev_client = openreview.api.OpenReviewClient(baseurl = 'http://localhost:3001') | ||
rev_client.activate_user('[email protected]', profile_content) | ||
|
||
profile = rev_client.get_profile('~Reviewer_ARRTwo1') | ||
assert profile.content['names'][0]['username'] == '~Reviewer_ARRTwo1' | ||
assert profile.content['names'][1]['username'] == '~Reviewer_Alternate_ARRTwo1' | ||
|
||
for i in range(1, 9): | ||
rev_client.post_note_edit( | ||
invitation='openreview.net/Archive/-/Direct_Upload', | ||
signatures=['~Reviewer_ARRTwo1'], | ||
note = openreview.api.Note( | ||
pdate = openreview.tools.datetime_millis(datetime.datetime(2019, 4, 30)), | ||
content = { | ||
'title': { 'value': f'Paper title {i}' }, | ||
'abstract': { 'value': f'Paper abstract {i}' }, | ||
'authors': { 'value': ['Reviewer ARRTwo', 'Test2 Client'] }, | ||
'authorids': { 'value': ['~Reviewer_ARRTwo1', '[email protected]'] }, | ||
'venue': { 'value': 'Arxiv' } | ||
}, | ||
license = 'CC BY-SA 4.0' | ||
)) | ||
|
||
request_form_note = pc_client.post_note(openreview.Note( | ||
invitation='openreview.net/Support/-/Request_Form', | ||
|