From 7eba607e62ac3edea88cbd39f39dcc856d1514aa Mon Sep 17 00:00:00 2001 From: Akshat Chhabra Date: Sat, 26 Oct 2024 01:35:08 +0530 Subject: [PATCH] fix: change ithenticate group_id value and add index options (#2399) * fix: change ithenticate group_id value and add index options * refactor: remove commented code --- openreview/venue/venue.py | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/openreview/venue/venue.py b/openreview/venue/venue.py index f7263758d..2b6ea0ede 100644 --- a/openreview/venue/venue.py +++ b/openreview/venue/venue.py @@ -1137,24 +1137,11 @@ def ithenticate_create_and_upload_submission(self): owner_first_name=first_name, owner_last_name=last_name, owner_email=owner_profile.get_preferred_email(), - group_id=self.get_submission_id(), + group_id=self.venue_id, group_context={ "id": self.id, "name": self.name, - "owners": [ - # { - # "id": "d7cf2650-c1c7-11e8-b568-0800200c9a66", - # "family_name": "test_instructor_first_name", - # "given_name": "test_instructor_last_name", - # "email": "instructor_email@test.com" - # }, - # { - # "id": "7a62f070-c265-11e8-b568-0800200c9a66", - # "family_name": "test_instructor_2_first_name", - # "given_name": "test_instrutor_2_last_name", - # "email": "intructor_2_email@test.com" - # } - ], + "owners": [], }, group_type="ASSIGNMENT", eula_version=eula_version, @@ -1272,6 +1259,10 @@ def handle_ithenticate_error(self): "CROSSREF", "CROSSREF_POSTED_CONTENT", ], + indexing_settings={ + "add_to_index": True + }, + auto_exclude_self_matching_scope="ALL", ) except Exception as err: updated_edge.label = original_label_value