-
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.
Feat/add submission license field (#1848)
* Add submission_license to Venue class * Add submission_license to request form * Add license to submission form content * Fix license default value * Remove license from submission content * Add more license options * Add license to submission invitation * Add license to Note class * Add test * Fix comment * Add license to remove_fields in venue_request revision invitation * Update license description * Fix order of license field in request form * Add license field if not None --------- Co-authored-by: xkopenreview <[email protected]> Co-authored-by: Melisa Bok <[email protected]>
- Loading branch information
1 parent
62edc8a
commit ce61d1a
Showing
7 changed files
with
55 additions
and
32 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
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
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
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 |
---|---|---|
|
@@ -73,7 +73,8 @@ def test_create_conference(self, client, openreview_client, helpers, profile_man | |
'How did you hear about us?': 'ML conferences', | ||
'Expected Submissions': '100', | ||
'use_recruitment_template': 'Yes', | ||
'api_version': '2' | ||
'api_version': '2', | ||
'submission_license': 'CC BY-SA 4.0' | ||
})) | ||
|
||
helpers.await_queue() | ||
|
@@ -204,6 +205,9 @@ def test_submissions(self, client, openreview_client, helpers, test_client): | |
assert ['ICLR.cc/2024/Conference', '~SomeFirstName_User1', '[email protected]', '[email protected]', '~SAC_ICLROne1'] == submissions[0].readers | ||
assert ['~SomeFirstName_User1', '[email protected]', '[email protected]', '~SAC_ICLROne1'] == submissions[0].content['authorids']['value'] | ||
|
||
# Check that submission license is same as request form | ||
assert submissions[0].license == 'CC BY-SA 4.0' | ||
|
||
authors_group = openreview_client.get_group(id='ICLR.cc/2024/Conference/Authors') | ||
|
||
for i in range(1,12): | ||
|
@@ -255,6 +259,7 @@ def test_post_submission(self, client, openreview_client, helpers): | |
|
||
submissions = pc_client_v2.get_notes(invitation='ICLR.cc/2024/Conference/-/Submission', sort='number:asc') | ||
assert len(submissions) == 11 | ||
assert submissions[0].license == 'CC BY-SA 4.0' | ||
assert submissions[0].readers == ['everyone'] | ||
assert '_bibtex' in submissions[0].content | ||
assert 'author={Anonymous}' in submissions[0].content['_bibtex']['value'] |