diff --git a/bc_obps/registration/tests/endpoints/v1/user/test_user_profile.py b/bc_obps/registration/tests/endpoints/v1/user/test_user_profile.py index 7bb1251d72..fc3ffd21e7 100644 --- a/bc_obps/registration/tests/endpoints/v1/user/test_user_profile.py +++ b/bc_obps/registration/tests/endpoints/v1/user/test_user_profile.py @@ -109,7 +109,7 @@ def test_create_user_profile_idir(self): # Additional Assertions (If BYPASS_ROLE_ASSIGNMENT is True, app_role should be cas_admin, otherwise cas_pending) assert ( - 'app_role' in content and content["app_role"]["role_name"] == 'cas_analyst' + 'app_role' in content and content["app_role"]["role_name"] == 'cas_admin' if settings.BYPASS_ROLE_ASSIGNMENT else 'cas_pending' ) diff --git a/bc_obps/registration/tests/endpoints/v2/user/test_user_profile.py b/bc_obps/registration/tests/endpoints/v2/user/test_user_profile.py index 7bb1251d72..fc3ffd21e7 100644 --- a/bc_obps/registration/tests/endpoints/v2/user/test_user_profile.py +++ b/bc_obps/registration/tests/endpoints/v2/user/test_user_profile.py @@ -109,7 +109,7 @@ def test_create_user_profile_idir(self): # Additional Assertions (If BYPASS_ROLE_ASSIGNMENT is True, app_role should be cas_admin, otherwise cas_pending) assert ( - 'app_role' in content and content["app_role"]["role_name"] == 'cas_analyst' + 'app_role' in content and content["app_role"]["role_name"] == 'cas_admin' if settings.BYPASS_ROLE_ASSIGNMENT else 'cas_pending' ) diff --git a/bc_obps/reporting/api/reports.py b/bc_obps/reporting/api/reports.py index a0c422108a..798c8a4df3 100644 --- a/bc_obps/reporting/api/reports.py +++ b/bc_obps/reporting/api/reports.py @@ -65,7 +65,6 @@ def save_report( request: HttpRequest, version_id: int, payload: ReportOperationIn ) -> Tuple[Literal[201], ReportOperationOut]: report_operation = ReportService.save_report_operation(version_id, payload) - print('report_operation', report_operation) return 201, report_operation # type: ignore diff --git a/bciers/apps/reporting/src/data/jsonSchema/operations.ts b/bciers/apps/reporting/src/data/jsonSchema/operations.ts index ec6c9939be..b058c041ad 100644 --- a/bciers/apps/reporting/src/data/jsonSchema/operations.ts +++ b/bciers/apps/reporting/src/data/jsonSchema/operations.ts @@ -28,6 +28,11 @@ export const operationReviewSchema: RJSFSchema = { default: "Annual report", }, + operation_representative_name: { + type: "array", + title: "Operation representative", + }, + date_info: { type: "object", readOnly: true,