diff --git a/bc_obps/registration/fixtures/mock/bc_obps_regulated_operation.json b/bc_obps/registration/fixtures/mock/bc_obps_regulated_operation.json index 9547bdcdcb..d89bc48c04 100644 --- a/bc_obps/registration/fixtures/mock/bc_obps_regulated_operation.json +++ b/bc_obps/registration/fixtures/mock/bc_obps_regulated_operation.json @@ -2,7 +2,7 @@ { "model": "registration.bcobpsregulatedoperation", "fields": { - "id": "21-0001", + "id": "23-0001", "issued_at": "2023-10-13T15:27:00.000Z", "comments": "Test comment" } @@ -10,7 +10,7 @@ { "model": "registration.bcobpsregulatedoperation", "fields": { - "id": "21-0002", + "id": "23-0002", "issued_at": "2023-10-13T15:27:00.000Z", "comments": "Test comment" } @@ -19,7 +19,7 @@ "model": "registration.bcobpsregulatedoperation", "fields": { "id": "24-0003", - "issued_at": "2023-10-13T15:27:00.000Z", + "issued_at": "2024-10-13T15:27:00.000Z", "comments": "Test comment" } }, @@ -27,7 +27,7 @@ "model": "registration.bcobpsregulatedoperation", "fields": { "id": "24-0004", - "issued_at": "2023-10-13T15:27:00.000Z", + "issued_at": "2024-10-13T15:27:00.000Z", "comments": "Test comment" } }, @@ -35,7 +35,7 @@ "model": "registration.bcobpsregulatedoperation", "fields": { "id": "24-0005", - "issued_at": "2023-10-13T15:27:00.000Z", + "issued_at": "2024-10-13T15:27:00.000Z", "comments": "Test comment" } }, @@ -43,7 +43,7 @@ "model": "registration.bcobpsregulatedoperation", "fields": { "id": "24-0006", - "issued_at": "2023-10-13T15:27:00.000Z", + "issued_at": "2024-10-13T15:27:00.000Z", "comments": "Test comment" } }, @@ -51,7 +51,7 @@ "model": "registration.bcobpsregulatedoperation", "fields": { "id": "24-0007", - "issued_at": "2023-10-13T15:27:00.000Z", + "issued_at": "2024-10-13T15:27:00.000Z", "comments": "Test comment" } }, @@ -59,7 +59,7 @@ "model": "registration.bcobpsregulatedoperation", "fields": { "id": "24-0008", - "issued_at": "2023-10-13T15:27:00.000Z", + "issued_at": "2024-10-13T15:27:00.000Z", "comments": "Test comment" } }, @@ -67,7 +67,7 @@ "model": "registration.bcobpsregulatedoperation", "fields": { "id": "24-0009", - "issued_at": "2023-10-13T15:27:00.000Z", + "issued_at": "2024-10-13T15:27:00.000Z", "comments": "Test comment" } }, @@ -75,7 +75,7 @@ "model": "registration.bcobpsregulatedoperation", "fields": { "id": "24-0010", - "issued_at": "2023-10-13T15:27:00.000Z", + "issued_at": "2024-10-13T15:27:00.000Z", "comments": "Test comment" } }, @@ -83,7 +83,7 @@ "model": "registration.bcobpsregulatedoperation", "fields": { "id": "24-0011", - "issued_at": "2023-10-13T15:27:00.000Z", + "issued_at": "2024-10-13T15:27:00.000Z", "comments": "Test comment" } }, @@ -91,7 +91,7 @@ "model": "registration.bcobpsregulatedoperation", "fields": { "id": "24-0012", - "issued_at": "2023-10-13T15:27:00.000Z", + "issued_at": "2024-10-13T15:27:00.000Z", "comments": "Test comment" } }, @@ -99,7 +99,7 @@ "model": "registration.bcobpsregulatedoperation", "fields": { "id": "24-0013", - "issued_at": "2023-10-13T15:27:00.000Z", + "issued_at": "2024-10-13T15:27:00.000Z", "comments": "Test comment" } }, @@ -107,7 +107,7 @@ "model": "registration.bcobpsregulatedoperation", "fields": { "id": "24-0014", - "issued_at": "2023-10-13T15:27:00.000Z", + "issued_at": "2024-10-13T15:27:00.000Z", "comments": "Test comment" } }, @@ -115,7 +115,7 @@ "model": "registration.bcobpsregulatedoperation", "fields": { "id": "24-0015", - "issued_at": "2023-10-13T15:27:00.000Z", + "issued_at": "2024-10-13T15:27:00.000Z", "comments": "Test comment" } }, @@ -123,7 +123,7 @@ "model": "registration.bcobpsregulatedoperation", "fields": { "id": "24-0016", - "issued_at": "2023-10-13T15:27:00.000Z", + "issued_at": "2024-10-13T15:27:00.000Z", "comments": "Test comment" } }, @@ -131,7 +131,7 @@ "model": "registration.bcobpsregulatedoperation", "fields": { "id": "24-0017", - "issued_at": "2023-10-13T15:27:00.000Z", + "issued_at": "2024-10-13T15:27:00.000Z", "comments": "Test comment" } }, @@ -139,7 +139,7 @@ "model": "registration.bcobpsregulatedoperation", "fields": { "id": "24-0018", - "issued_at": "2023-10-13T15:27:00.000Z", + "issued_at": "2024-10-13T15:27:00.000Z", "comments": "Test comment" } } diff --git a/bc_obps/registration/fixtures/mock/facility.json b/bc_obps/registration/fixtures/mock/facility.json index 25ee172f9d..7b0f54d89f 100644 --- a/bc_obps/registration/fixtures/mock/facility.json +++ b/bc_obps/registration/fixtures/mock/facility.json @@ -48,8 +48,7 @@ "created_at": "2024-06-05T23:18:07.664Z", "name": "Facility 4", "type": "Small Aggregate", - "swrs_facility_id": 1004, - "bcghg_id": "13219990008" + "swrs_facility_id": 1004 } }, { @@ -61,7 +60,6 @@ "name": "Facility 5", "type": "Large Facility", "swrs_facility_id": 1005, - "bcghg_id": "13219990009", "latitude_of_largest_emissions": 43.5, "longitude_of_largest_emissions": -123.5 } @@ -75,7 +73,6 @@ "name": "Facility 6", "type": "Large Facility", "swrs_facility_id": 1006, - "bcghg_id": "13219990010", "latitude_of_largest_emissions": 43.5, "longitude_of_largest_emissions": -123.5 } @@ -89,7 +86,6 @@ "name": "Facility 7", "type": "Large Facility", "swrs_facility_id": 1007, - "bcghg_id": "13219990011", "latitude_of_largest_emissions": 43.5, "longitude_of_largest_emissions": -123.5 } @@ -243,7 +239,6 @@ "name": "Facility 18", "type": "Large Facility", "swrs_facility_id": 1018, - "bcghg_id": "13219990022", "latitude_of_largest_emissions": 43.5, "longitude_of_largest_emissions": -123.5 } @@ -271,7 +266,6 @@ "name": "Facility 20", "type": "Large Facility", "swrs_facility_id": 1020, - "bcghg_id": "13219990024", "latitude_of_largest_emissions": 43.5, "longitude_of_largest_emissions": -123.5 } @@ -285,7 +279,6 @@ "name": "Facility 21", "type": "Large Facility", "swrs_facility_id": 1021, - "bcghg_id": "13219990025", "latitude_of_largest_emissions": 43.5, "longitude_of_largest_emissions": -123.5 } @@ -420,6 +413,7 @@ "name": "Facility 31", "type": "Single Facility", "swrs_facility_id": 1031, + "bcghg_id": "13219990025", "latitude_of_largest_emissions": 43.5, "longitude_of_largest_emissions": -123.5 } @@ -433,6 +427,7 @@ "type": "Single Facility", "name": "Facility 32", "swrs_facility_id": 1032, + "bcghg_id": "13219990022", "latitude_of_largest_emissions": 43.5, "longitude_of_largest_emissions": -123.5 } @@ -446,6 +441,7 @@ "name": "Facility 33", "type": "Single Facility", "swrs_facility_id": 1033, + "bcghg_id": "13219990009", "latitude_of_largest_emissions": 43.5, "longitude_of_largest_emissions": -123.5 } @@ -459,6 +455,7 @@ "name": "Facility 34", "type": "Single Facility", "swrs_facility_id": 1034, + "bcghg_id": "13219990008", "latitude_of_largest_emissions": 43.5, "longitude_of_largest_emissions": -123.5 } @@ -472,6 +469,7 @@ "name": "Facility 35", "type": "Single Facility", "swrs_facility_id": 1035, + "bcghg_id": "13219990024", "latitude_of_largest_emissions": 43.5, "longitude_of_largest_emissions": -123.5 } diff --git a/bc_obps/registration/fixtures/mock/operation.json b/bc_obps/registration/fixtures/mock/operation.json index f8140d2c1e..bf010d645a 100644 --- a/bc_obps/registration/fixtures/mock/operation.json +++ b/bc_obps/registration/fixtures/mock/operation.json @@ -72,7 +72,7 @@ "bcghg_id": "23219990003", "regulated_products": [2, 6, 7, 8], "status": "Registered", - "bc_obps_regulated_operation": "21-0001", + "bc_obps_regulated_operation": "23-0001", "created_at": "2024-1-31T15:27:00.000Z", "activities": [1, 3], "contacts": [14, 15], @@ -94,7 +94,7 @@ "bcghg_id": "23219990002", "regulated_products": [1], "status": "Registered", - "bc_obps_regulated_operation": "21-0002", + "bc_obps_regulated_operation": "23-0002", "created_at": "2024-1-30T15:27:00.000Z", "activities": [1, 5], "contacts": [10, 11, 12], diff --git a/bc_obps/registration/fixtures/mock/operation_designated_operator_timeline.json b/bc_obps/registration/fixtures/mock/operation_designated_operator_timeline.json index d02902790d..95a24fefc6 100644 --- a/bc_obps/registration/fixtures/mock/operation_designated_operator_timeline.json +++ b/bc_obps/registration/fixtures/mock/operation_designated_operator_timeline.json @@ -16,7 +16,7 @@ "fields": { "operation": "002d5a9e-32a6-4191-938c-2c02bfec592d", "operator": "4242ea9d-b917-4129-93c2-db00b7451051", - "created_by": "00000000-0000-0000-0000-000000000004", + "created_by": "00000000-0000-0000-0000-000000000001", "created_at": "2024-06-05T23:21:02.353Z", "start_date": "2024-06-05T23:20:57Z", "status": "Active" @@ -27,7 +27,7 @@ "fields": { "operation": "3b5b95ea-2a1a-450d-8e2e-2e15feed96c9", "operator": "4242ea9d-b917-4129-93c2-db00b7451051", - "created_by": "00000000-0000-0000-0000-000000000004", + "created_by": "00000000-0000-0000-0000-000000000001", "created_at": "2024-06-05T23:21:02.353Z", "start_date": "2024-06-05T23:20:57Z", "status": "Active" @@ -49,7 +49,7 @@ "fields": { "operation": "b65a3fbc-c81a-49c0-a43a-67bd3a0b488e", "operator": "4242ea9d-b917-4129-93c2-db00b7451051", - "created_by": "00000000-0000-0000-0000-000000000004", + "created_by": "00000000-0000-0000-0000-000000000023", "created_at": "2024-06-05T23:21:02.353Z", "start_date": "2024-06-05T23:20:57Z", "status": "Active" @@ -159,7 +159,7 @@ "fields": { "operation": "c5b3643b-c143-42f3-8a2b-03ccc7319cd9", "operator": "4242ea9d-b917-4129-93c2-db00b7451051", - "created_by": "00000000-0000-0000-0000-000000000004", + "created_by": "00000000-0000-0000-0000-000000000023", "created_at": "2024-06-05T23:21:02.353Z", "start_date": "2024-06-05T23:20:57Z", "status": "Active" @@ -170,7 +170,7 @@ "fields": { "operation": "954c0382-ff61-4e87-a8a0-873586534b54", "operator": "4242ea9d-b917-4129-93c2-db00b7451051", - "created_by": "00000000-0000-0000-0000-000000000004", + "created_by": "00000000-0000-0000-0000-000000000023", "created_at": "2024-06-05T23:21:02.353Z", "start_date": "2024-06-05T23:20:57Z", "status": "Active" @@ -181,7 +181,7 @@ "fields": { "operation": "6d07d02a-1ad2-46ed-ad56-2f84313e98bf", "operator": "4242ea9d-b917-4129-93c2-db00b7451051", - "created_by": "00000000-0000-0000-0000-000000000004", + "created_by": "00000000-0000-0000-0000-000000000001", "created_at": "2024-06-05T23:21:02.353Z", "start_date": "2024-06-05T23:20:57Z", "status": "Active" @@ -192,7 +192,7 @@ "fields": { "operation": "59d95661-c752-489b-9fd1-0c3fa3454dda", "operator": "4242ea9d-b917-4129-93c2-db00b7451051", - "created_by": "00000000-0000-0000-0000-000000000004", + "created_by": "00000000-0000-0000-0000-000000000001", "created_at": "2024-06-05T23:21:02.353Z", "start_date": "2024-06-05T23:20:57Z", "status": "Active" @@ -203,7 +203,7 @@ "fields": { "operation": "1bd04128-d070-4d3a-940a-0874c4956181", "operator": "4242ea9d-b917-4129-93c2-db00b7451051", - "created_by": "00000000-0000-0000-0000-000000000004", + "created_by": "00000000-0000-0000-0000-000000000001", "created_at": "2024-06-05T23:21:02.353Z", "start_date": "2024-06-05T23:20:57Z", "status": "Active" @@ -214,7 +214,7 @@ "fields": { "operation": "17f13f4d-29b4-45f4-b025-b21f2e126771", "operator": "4242ea9d-b917-4129-93c2-db00b7451051", - "created_by": "00000000-0000-0000-0000-000000000004", + "created_by": "00000000-0000-0000-0000-000000000023", "created_at": "2024-06-05T23:21:02.353Z", "start_date": "2024-06-05T23:20:57Z", "status": "Active" @@ -225,7 +225,7 @@ "fields": { "operation": "ef9044dd-2a27-4d26-86fe-02e51e0755f7", "operator": "4242ea9d-b917-4129-93c2-db00b7451051", - "created_by": "00000000-0000-0000-0000-000000000004", + "created_by": "00000000-0000-0000-0000-000000000001", "created_at": "2024-06-05T23:21:02.353Z", "start_date": "2024-06-05T23:20:57Z", "status": "Active" @@ -236,7 +236,7 @@ "fields": { "operation": "aeeb781e-a97b-4ab2-9a6e-02e4522add1a", "operator": "4242ea9d-b917-4129-93c2-db00b7451051", - "created_by": "00000000-0000-0000-0000-000000000004", + "created_by": "00000000-0000-0000-0000-000000000001", "created_at": "2024-06-05T23:21:02.353Z", "start_date": "2024-06-05T23:20:57Z", "status": "Active" @@ -247,7 +247,7 @@ "fields": { "operation": "02a3ab84-26c6-4a79-bf89-72f877ceef8e", "operator": "4242ea9d-b917-4129-93c2-db00b7451051", - "created_by": "00000000-0000-0000-0000-000000000004", + "created_by": "00000000-0000-0000-0000-000000000001", "created_at": "2024-06-05T23:21:02.353Z", "start_date": "2024-06-05T23:20:57Z", "status": "Active" @@ -258,7 +258,7 @@ "fields": { "operation": "0ac72fa9-2636-4f54-b378-af6b1a070787", "operator": "4242ea9d-b917-4129-93c2-db00b7451051", - "created_by": "00000000-0000-0000-0000-000000000004", + "created_by": "00000000-0000-0000-0000-000000000023", "created_at": "2024-06-05T23:21:02.353Z", "start_date": "2024-06-05T23:20:57Z", "status": "Active" @@ -281,7 +281,7 @@ "fields": { "operation": "556ceeb0-7e24-4d89-b639-61f625f82084", "operator": "4242ea9d-b917-4129-93c2-db00b7451051", - "created_by": "00000000-0000-0000-0000-000000000004", + "created_by": "ba2ba62a121842e0942aab9e92ce8822", "created_at": "2024-06-05T23:21:02.353Z", "start_date": "2024-06-05T23:20:57Z", "status": "Active" @@ -303,7 +303,7 @@ "fields": { "operation": "1d59cb82-2776-4785-a8f7-4b13bc9b4579", "operator": "7e8b72dc-4196-427f-a553-7879748139e1", - "created_by": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "created_by": "00000000-0000-0000-0000-000000000029", "created_at": "2024-06-05T23:21:02.353Z", "start_date": "2024-06-05T23:21:02.353Z", "status": "Active" @@ -413,8 +413,10 @@ "fields": { "operation": "84d4c8b7-55b5-4700-90ad-fb1c169d4e1f", "operator": "5c847c75-3b17-414c-97f8-88ba81cb3821", - "status": "Active", - "start_date": "2024-12-06T21:09:07Z" + "created_by": "00000000-0000-0000-0000-000000000030", + "created_at": "2024-12-06T21:09:07Z", + "start_date": "2024-12-06T21:09:07Z", + "status": "Active" } }, { diff --git a/bc_obps/registration/fixtures/mock/user_operator.json b/bc_obps/registration/fixtures/mock/user_operator.json index 081906d99e..e79119180a 100644 --- a/bc_obps/registration/fixtures/mock/user_operator.json +++ b/bc_obps/registration/fixtures/mock/user_operator.json @@ -52,8 +52,8 @@ "fields": { "user": "00000000-0000-0000-0000-000000000002", "operator": "4c1010c1-55ca-485d-84bd-6d975fd0af90", - "role": "pending", - "status": "Pending", + "role": "admin", + "status": "Approved", "verified_at": null, "verified_by": null, "user_friendly_id": 5 @@ -76,8 +76,8 @@ "fields": { "user": "00000000-0000-0000-0000-000000000004", "operator": "685d581b-5698-411f-ae00-de1d97334a71", - "role": "pending", - "status": "Pending", + "role": "admin", + "status": "Approved", "verified_at": null, "verified_by": null, "user_friendly_id": 7 @@ -100,8 +100,8 @@ "fields": { "user": "00000000-0000-0000-0000-000000000006", "operator": "04384911-264a-4510-b582-11ee704b8e41", - "role": "pending", - "status": "Pending", + "role": "admin", + "status": "Approved", "verified_at": null, "verified_by": null, "user_friendly_id": 9 @@ -113,7 +113,7 @@ "user": "00000000-0000-0000-0000-000000000007", "operator": "5712ee05-5f3b-4822-825d-6fffddafda4c", "role": "admin", - "status": "Pending", + "status": "Approved", "verified_at": null, "verified_by": null, "user_friendly_id": 10 @@ -124,8 +124,8 @@ "fields": { "user": "00000000-0000-0000-0000-000000000008", "operator": "ea4314ea-1974-465a-a851-278c8f9c8daa", - "role": "pending", - "status": "Pending", + "role": "admin", + "status": "Approved", "verified_at": null, "verified_by": null, "user_friendly_id": 11 @@ -160,8 +160,8 @@ "fields": { "user": "00000000-0000-0000-0000-000000000011", "operator": "f209ef09-dfe6-42a1-ac4c-7689897f1b51", - "role": "pending", - "status": "Pending", + "role": "admin", + "status": "Approved", "verified_at": null, "verified_by": null, "user_friendly_id": 14 @@ -172,8 +172,8 @@ "fields": { "user": "00000000-0000-0000-0000-000000000012", "operator": "bb979661-0782-49b2-9c64-acd8424b692b", - "role": "pending", - "status": "Pending", + "role": "admin", + "status": "Approved", "verified_at": null, "verified_by": null, "user_friendly_id": 15 @@ -184,8 +184,8 @@ "fields": { "user": "00000000-0000-0000-0000-000000000013", "operator": "bb702949-e303-4788-9ba9-806232a5f711", - "role": "pending", - "status": "Pending", + "role": "admin", + "status": "Approved", "verified_at": null, "verified_by": null, "user_friendly_id": 16 @@ -244,8 +244,8 @@ "fields": { "user": "00000000-0000-0000-0000-000000000018", "operator": "a35fb5ad-edd9-4465-982e-81b824644d07", - "role": "pending", - "status": "Pending", + "role": "admin", + "status": "Approved", "verified_at": null, "verified_by": null, "user_friendly_id": 21 @@ -328,8 +328,8 @@ "fields": { "user": "00000000-0000-0000-0000-000000000025", "operator": "edb1aff1-f888-4199-ab88-068364496347", - "role": "pending", - "status": "Pending", + "role": "admin", + "status": "Approved", "verified_at": null, "verified_by": null, "user_friendly_id": 28 @@ -340,8 +340,8 @@ "fields": { "user": "00000000-0000-0000-0000-000000000026", "operator": "4a792f0f-cf9d-48c8-9a95-f504c5f84b12", - "role": "pending", - "status": "Pending", + "role": "admin", + "status": "Approved", "verified_at": null, "verified_by": null, "user_friendly_id": 29