diff --git a/bc_obps/registration/fixtures/mock/bc_greenhouse_gas_id.json b/bc_obps/registration/fixtures/mock/bc_greenhouse_gas_id.json index 0313f27bc9..fa9a01def3 100644 --- a/bc_obps/registration/fixtures/mock/bc_greenhouse_gas_id.json +++ b/bc_obps/registration/fixtures/mock/bc_greenhouse_gas_id.json @@ -351,5 +351,138 @@ "id": "13219990999", "issued_at": "2024-10-31T15:27:00.000Z" } + }, + { + "model": "registration.bcgreenhousegasid", + "fields": { + "id": "13219990028", + "issued_at": "2024-10-31T15:27:00.000Z" + } + }, + { + "model": "registration.bcgreenhousegasid", + "fields": { + "id": "13219990029", + "issued_at": "2024-10-31T15:27:00.000Z" + } + }, + { + "model": "registration.bcgreenhousegasid", + "fields": { + "id": "13219990030", + "issued_at": "2024-10-31T15:27:00.000Z" + } + }, + { + "model": "registration.bcgreenhousegasid", + "fields": { + "id": "13219990031", + "issued_at": "2024-10-31T15:27:00.000Z" + } + }, + { + "model": "registration.bcgreenhousegasid", + "fields": { + "id": "13219990032", + "issued_at": "2024-10-31T15:27:00.000Z" + } + }, + { + "model": "registration.bcgreenhousegasid", + "fields": { + "id": "13219990033", + "issued_at": "2024-10-31T15:27:00.000Z" + } + }, + { + "model": "registration.bcgreenhousegasid", + "fields": { + "id": "13219990034", + "issued_at": "2024-10-31T15:27:00.000Z" + } + }, + { + "model": "registration.bcgreenhousegasid", + "fields": { + "id": "13219990035", + "issued_at": "2024-10-31T15:27:00.000Z" + } + }, + { + "model": "registration.bcgreenhousegasid", + "fields": { + "id": "13219990036", + "issued_at": "2024-10-31T15:27:00.000Z" + } + }, + { + "model": "registration.bcgreenhousegasid", + "fields": { + "id": "13219990037", + "issued_at": "2024-10-31T15:27:00.000Z" + } + }, + { + "model": "registration.bcgreenhousegasid", + "fields": { + "id": "13219990038", + "issued_at": "2024-10-31T15:27:00.000Z" + } + }, + { + "model": "registration.bcgreenhousegasid", + "fields": { + "id": "13219990039", + "issued_at": "2024-10-31T15:27:00.000Z" + } + }, + { + "model": "registration.bcgreenhousegasid", + "fields": { + "id": "13219990040", + "issued_at": "2024-10-31T15:27:00.000Z" + } + }, + { + "model": "registration.bcgreenhousegasid", + "fields": { + "id": "13219990041", + "issued_at": "2024-10-31T15:27:00.000Z" + } + }, + { + "model": "registration.bcgreenhousegasid", + "fields": { + "id": "13219990042", + "issued_at": "2024-10-31T15:27:00.000Z" + } + }, + { + "model": "registration.bcgreenhousegasid", + "fields": { + "id": "13219990043", + "issued_at": "2024-10-31T15:27:00.000Z" + } + }, + { + "model": "registration.bcgreenhousegasid", + "fields": { + "id": "13219990044", + "issued_at": "2024-10-31T15:27:00.000Z" + } + }, + { + "model": "registration.bcgreenhousegasid", + "fields": { + "id": "13219990045", + "issued_at": "2024-10-31T15:27:00.000Z" + } + }, + { + "model": "registration.bcgreenhousegasid", + "fields": { + "id": "13219990046", + "issued_at": "2024-10-31T15:27:00.000Z" + } } ] 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 ebbda47cea..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,9 +10,137 @@ { "model": "registration.bcobpsregulatedoperation", "fields": { - "id": "21-0002", + "id": "23-0002", "issued_at": "2023-10-13T15:27:00.000Z", "comments": "Test comment" } + }, + { + "model": "registration.bcobpsregulatedoperation", + "fields": { + "id": "24-0003", + "issued_at": "2024-10-13T15:27:00.000Z", + "comments": "Test comment" + } + }, + { + "model": "registration.bcobpsregulatedoperation", + "fields": { + "id": "24-0004", + "issued_at": "2024-10-13T15:27:00.000Z", + "comments": "Test comment" + } + }, + { + "model": "registration.bcobpsregulatedoperation", + "fields": { + "id": "24-0005", + "issued_at": "2024-10-13T15:27:00.000Z", + "comments": "Test comment" + } + }, + { + "model": "registration.bcobpsregulatedoperation", + "fields": { + "id": "24-0006", + "issued_at": "2024-10-13T15:27:00.000Z", + "comments": "Test comment" + } + }, + { + "model": "registration.bcobpsregulatedoperation", + "fields": { + "id": "24-0007", + "issued_at": "2024-10-13T15:27:00.000Z", + "comments": "Test comment" + } + }, + { + "model": "registration.bcobpsregulatedoperation", + "fields": { + "id": "24-0008", + "issued_at": "2024-10-13T15:27:00.000Z", + "comments": "Test comment" + } + }, + { + "model": "registration.bcobpsregulatedoperation", + "fields": { + "id": "24-0009", + "issued_at": "2024-10-13T15:27:00.000Z", + "comments": "Test comment" + } + }, + { + "model": "registration.bcobpsregulatedoperation", + "fields": { + "id": "24-0010", + "issued_at": "2024-10-13T15:27:00.000Z", + "comments": "Test comment" + } + }, + { + "model": "registration.bcobpsregulatedoperation", + "fields": { + "id": "24-0011", + "issued_at": "2024-10-13T15:27:00.000Z", + "comments": "Test comment" + } + }, + { + "model": "registration.bcobpsregulatedoperation", + "fields": { + "id": "24-0012", + "issued_at": "2024-10-13T15:27:00.000Z", + "comments": "Test comment" + } + }, + { + "model": "registration.bcobpsregulatedoperation", + "fields": { + "id": "24-0013", + "issued_at": "2024-10-13T15:27:00.000Z", + "comments": "Test comment" + } + }, + { + "model": "registration.bcobpsregulatedoperation", + "fields": { + "id": "24-0014", + "issued_at": "2024-10-13T15:27:00.000Z", + "comments": "Test comment" + } + }, + { + "model": "registration.bcobpsregulatedoperation", + "fields": { + "id": "24-0015", + "issued_at": "2024-10-13T15:27:00.000Z", + "comments": "Test comment" + } + }, + { + "model": "registration.bcobpsregulatedoperation", + "fields": { + "id": "24-0016", + "issued_at": "2024-10-13T15:27:00.000Z", + "comments": "Test comment" + } + }, + { + "model": "registration.bcobpsregulatedoperation", + "fields": { + "id": "24-0017", + "issued_at": "2024-10-13T15:27:00.000Z", + "comments": "Test comment" + } + }, + { + "model": "registration.bcobpsregulatedoperation", + "fields": { + "id": "24-0018", + "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 742416edd1..d04185491b 100644 --- a/bc_obps/registration/fixtures/mock/facility.json +++ b/bc_obps/registration/fixtures/mock/facility.json @@ -3,7 +3,7 @@ "model": "registration.facility", "pk": "f486f2fb-62ed-438d-bb3e-0819b51e3aeb", "fields": { - "created_by": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "created_by": "00000000-0000-0000-0000-000000000001", "created_at": "2024-06-05T23:18:07.664Z", "name": "Facility 1", "type": "Large Facility", @@ -15,7 +15,7 @@ "model": "registration.facility", "pk": "459b80f9-b5f3-48aa-9727-90c30eaf3a58", "fields": { - "created_by": "00000000-0000-0000-0000-000000000001", + "created_by": "00000000-0000-0000-0000-000000000004", "created_at": "2024-06-05T23:18:59.623Z", "name": "Facility 2", "type": "Large Facility", @@ -30,7 +30,7 @@ "model": "registration.facility", "pk": "f486f2fb-62ed-438d-bb3e-0819b51e3aec", "fields": { - "created_by": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "created_by": "00000000-0000-0000-0000-000000000001", "created_at": "2024-06-05T23:18:07.664Z", "name": "Facility 3", "type": "Medium Facility", @@ -44,24 +44,22 @@ "model": "registration.facility", "pk": "f486f2fb-62ed-438d-bb3e-0819b51e3aed", "fields": { - "created_by": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "created_by": "00000000-0000-0000-0000-000000000001", "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 } }, { "model": "registration.facility", "pk": "f486f2fb-62ed-438d-bb3e-0819b51e3aee", "fields": { - "created_by": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "created_by": "00000000-0000-0000-0000-000000000001", "created_at": "2024-06-05T23:18:07.664Z", "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 } @@ -70,12 +68,11 @@ "model": "registration.facility", "pk": "f486f2fb-62ed-438d-bb3e-0819b51e3aef", "fields": { - "created_by": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "created_by": "00000000-0000-0000-0000-000000000001", "created_at": "2024-06-05T23:18:07.664Z", "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 } @@ -84,12 +81,11 @@ "model": "registration.facility", "pk": "f486f2fb-62ed-438d-bb3e-0819b51e3af0", "fields": { - "created_by": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "created_by": "00000000-0000-0000-0000-000000000001", "created_at": "2024-06-05T23:18:07.664Z", "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 } @@ -98,7 +94,7 @@ "model": "registration.facility", "pk": "f486f2fb-62ed-438d-bb3e-0819b51e3af1", "fields": { - "created_by": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "created_by": "00000000-0000-0000-0000-000000000001", "created_at": "2024-06-05T23:18:07.664Z", "name": "Facility 8", "type": "Large Facility", @@ -112,7 +108,7 @@ "model": "registration.facility", "pk": "f486f2fb-62ed-438d-bb3e-0819b51e3af2", "fields": { - "created_by": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "created_by": "00000000-0000-0000-0000-000000000001", "created_at": "2024-06-05T23:18:07.664Z", "name": "Facility 9", "type": "Large Facility", @@ -126,7 +122,7 @@ "model": "registration.facility", "pk": "f486f2fb-62ed-438d-bb3e-0819b51e3af3", "fields": { - "created_by": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "created_by": "00000000-0000-0000-0000-000000000001", "created_at": "2024-06-05T23:18:07.664Z", "name": "Facility 10", "type": "Large Facility", @@ -140,7 +136,7 @@ "model": "registration.facility", "pk": "f486f2fb-62ed-438d-bb3e-0819b51e3af4", "fields": { - "created_by": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "created_by": "00000000-0000-0000-0000-000000000001", "created_at": "2024-06-05T23:18:07.664Z", "name": "Facility 11", "type": "Large Facility", @@ -154,7 +150,7 @@ "model": "registration.facility", "pk": "f486f2fb-62ed-438d-bb3e-0819b51e3af5", "fields": { - "created_by": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "created_by": "00000000-0000-0000-0000-000000000001", "created_at": "2024-06-05T23:18:07.664Z", "name": "Facility 12", "type": "Large Facility", @@ -168,7 +164,7 @@ "model": "registration.facility", "pk": "f486f2fb-62ed-438d-bb3e-0819b51e3af6", "fields": { - "created_by": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "created_by": "00000000-0000-0000-0000-000000000001", "created_at": "2024-06-05T23:18:07.664Z", "name": "Facility 13", "type": "Large Facility", @@ -182,7 +178,7 @@ "model": "registration.facility", "pk": "f486f2fb-62ed-438d-bb3e-0819b51e3af7", "fields": { - "created_by": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "created_by": "00000000-0000-0000-0000-000000000001", "created_at": "2024-06-05T23:18:07.664Z", "name": "Facility 14", "type": "Large Facility", @@ -196,7 +192,7 @@ "model": "registration.facility", "pk": "f486f2fb-62ed-438d-bb3e-0819b51e3af8", "fields": { - "created_by": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "created_by": "00000000-0000-0000-0000-000000000001", "created_at": "2024-06-05T23:18:07.664Z", "name": "Facility 15", "type": "Large Facility", @@ -210,7 +206,7 @@ "model": "registration.facility", "pk": "f486f2fb-62ed-438d-bb3e-0819b51e3af9", "fields": { - "created_by": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "created_by": "00000000-0000-0000-0000-000000000001", "created_at": "2024-06-05T23:18:07.664Z", "name": "Facility 16", "type": "Large Facility", @@ -224,7 +220,7 @@ "model": "registration.facility", "pk": "f486f2fb-62ed-438d-bb3e-0819b51e3afa", "fields": { - "created_by": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "created_by": "00000000-0000-0000-0000-000000000001", "created_at": "2024-06-05T23:18:07.664Z", "name": "Facility 17", "type": "Large Facility", @@ -238,12 +234,11 @@ "model": "registration.facility", "pk": "f486f2fb-62ed-438d-bb3e-0819b51e3afb", "fields": { - "created_by": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "created_by": "00000000-0000-0000-0000-000000000001", "created_at": "2024-06-05T23:18:07.664Z", "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 } @@ -252,7 +247,7 @@ "model": "registration.facility", "pk": "f486f2fb-62ed-438d-bb3e-0819b51e3afc", "fields": { - "created_by": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "created_by": "00000000-0000-0000-0000-000000000001", "created_at": "2024-06-05T23:18:07.664Z", "name": "Facility 19", "type": "Large Facility", @@ -266,12 +261,11 @@ "model": "registration.facility", "pk": "f486f2fb-62ed-438d-bb3e-0819b51e3afd", "fields": { - "created_by": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "created_by": "00000000-0000-0000-0000-000000000001", "created_at": "2024-06-05T23:18:07.664Z", "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 } @@ -280,12 +274,11 @@ "model": "registration.facility", "pk": "f486f2fb-62ed-438d-bb3e-0819b51e3afe", "fields": { - "created_by": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "created_by": "00000000-0000-0000-0000-000000000001", "created_at": "2024-06-05T23:18:07.664Z", "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 } @@ -294,7 +287,7 @@ "model": "registration.facility", "pk": "f486f2fb-62ed-438d-bb3e-0819b51e3aff", "fields": { - "created_by": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "created_by": "00000000-0000-0000-0000-000000000001", "created_at": "2024-06-05T23:18:07.664Z", "name": "Facility 22", "type": "Single Facility", @@ -323,7 +316,7 @@ "model": "registration.facility", "pk": "4486f2fb-62ed-438d-bb3e-0819b51e3aff", "fields": { - "created_by": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "created_by": "00000000-0000-0000-0000-000000000001", "created_at": "2024-06-05T23:18:07.664Z", "name": "Facility 24", "type": "Single Facility", @@ -332,5 +325,257 @@ "latitude_of_largest_emissions": 43.5, "longitude_of_largest_emissions": -123.5 } + }, + { + "model": "registration.facility", + "pk": "67fd8288-422b-43d3-a9b1-e4ddc54e2139", + "fields": { + "created_by": "00000000-0000-0000-0000-000000000001", + "created_at": "2024-06-05T23:18:07.664Z", + "name": "Facility 25", + "type": "Single Facility", + "swrs_facility_id": 1025, + "latitude_of_largest_emissions": 43.5, + "longitude_of_largest_emissions": -123.5 + } + }, + { + "model": "registration.facility", + "pk": "9f7b0848-021e-4d08-9852-10524c4e5456", + "fields": { + "created_by": "00000000-0000-0000-0000-000000000001", + "created_at": "2024-06-05T23:18:07.664Z", + "name": "Facility 26", + "type": "Single Facility", + "swrs_facility_id": 1026, + "latitude_of_largest_emissions": 43.5, + "longitude_of_largest_emissions": -123.5 + } + }, + { + "model": "registration.facility", + "pk": "f4eb89dd-e081-4576-8663-b789c4a20478", + "fields": { + "created_by": "00000000-0000-0000-0000-000000000004", + "created_at": "2024-06-05T23:18:07.664Z", + "name": "Facility 27", + "type": "Single Facility", + "swrs_facility_id": 1027, + "latitude_of_largest_emissions": 43.5, + "longitude_of_largest_emissions": -123.5 + } + }, + { + "model": "registration.facility", + "pk": "6d564423-abfe-4579-ba92-2c6c71c37bb9", + "fields": { + "created_by": "00000000-0000-0000-0000-000000000004", + "created_at": "2024-06-05T23:18:07.664Z", + "name": "Facility 28", + "type": "Single Facility", + "swrs_facility_id": 1028, + "latitude_of_largest_emissions": 43.5, + "longitude_of_largest_emissions": -123.5 + } + }, + { + "model": "registration.facility", + "pk": "f466e6fc-f338-4cf7-89b0-0211bd2be8b7", + "fields": { + "created_by": "00000000-0000-0000-0000-000000000004", + "created_at": "2024-06-05T23:18:07.664Z", + "name": "Facility 29", + "type": "Single Facility", + "swrs_facility_id": 1029, + "latitude_of_largest_emissions": 43.5, + "longitude_of_largest_emissions": -123.5 + } + }, + { + "model": "registration.facility", + "pk": "f2461804-f38a-4fcc-8586-7ee6eaefa830", + "fields": { + "created_by": "00000000-0000-0000-0000-000000000004", + "created_at": "2024-06-05T23:18:07.664Z", + "name": "Facility 30", + "type": "Single Facility", + "swrs_facility_id": 1030, + "latitude_of_largest_emissions": 43.5, + "longitude_of_largest_emissions": -123.5 + } + }, + { + "model": "registration.facility", + "pk": "fab6a6a7-3c9b-426f-88fb-a9c06474fe51", + "fields": { + "created_by": "00000000-0000-0000-0000-000000000004", + "created_at": "2024-06-05T23:18:07.664Z", + "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 + } + }, + { + "model": "registration.facility", + "pk": "80db5b3a-b06b-4c06-b257-edaa4e873160", + "fields": { + "created_by": "00000000-0000-0000-0000-000000000004", + "created_at": "2024-06-05T23:18:07.664Z", + "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 + } + }, + { + "model": "registration.facility", + "pk": "8d0777dd-b691-4079-9253-fca63df79300", + "fields": { + "created_by": "00000000-0000-0000-0000-000000000004", + "created_at": "2024-06-05T23:18:07.664Z", + "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 + } + }, + { + "model": "registration.facility", + "pk": "e5ade67f-f9ce-496c-b0ad-b8edcd7ecd08", + "fields": { + "created_by": "00000000-0000-0000-0000-000000000004", + "created_at": "2024-06-05T23:18:07.664Z", + "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 + } + }, + { + "model": "registration.facility", + "pk": "5ee7a6b1-e82a-4a6d-90d1-9a8bbf2017a8", + "fields": { + "created_by": "00000000-0000-0000-0000-000000000004", + "created_at": "2024-06-05T23:18:07.664Z", + "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 + } + }, + { + "model": "registration.facility", + "pk": "d844683d-e894-4dfe-9d2d-49944ec86005", + "fields": { + "created_by": "00000000-0000-0000-0000-000000000023", + "created_at": "2024-06-05T23:18:07.664Z", + "name": "Facility 36", + "type": "Single Facility", + "swrs_facility_id": 1036, + "latitude_of_largest_emissions": 43.5, + "longitude_of_largest_emissions": -123.5 + } + }, + { + "model": "registration.facility", + "pk": "c27356fe-c1b1-42df-8845-246ad057f43d", + "fields": { + "created_by": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "created_at": "2024-06-05T23:18:07.664Z", + "name": "Facility 37", + "type": "Single Facility", + "swrs_facility_id": 1037, + "latitude_of_largest_emissions": 43.5, + "longitude_of_largest_emissions": -123.5 + } + }, + { + "model": "registration.facility", + "pk": "d477f3d9-2917-4f36-b5ae-166d47dc8172", + "fields": { + "created_by": "00000000-0000-0000-0000-000000000001", + "created_at": "2024-06-05T23:18:07.664Z", + "name": "Facility 38", + "type": "Single Facility", + "swrs_facility_id": 1038, + "latitude_of_largest_emissions": 43.5, + "longitude_of_largest_emissions": -123.5 + } + }, + { + "model": "registration.facility", + "pk": "80ccea58-1920-46ea-8260-23bfe9b4fef0", + "fields": { + "created_by": "00000000-0000-0000-0000-000000000001", + "created_at": "2024-06-05T23:18:07.664Z", + "name": "Facility 39", + "type": "Single Facility", + "swrs_facility_id": 1039, + "latitude_of_largest_emissions": 43.5, + "longitude_of_largest_emissions": -123.5 + } + }, + { + "model": "registration.facility", + "pk": "b66d0364-ad1d-42f4-93d9-82bf185c4304", + "fields": { + "created_by": "00000000-0000-0000-0000-000000000023", + "created_at": "2024-06-05T23:18:07.664Z", + "name": "Facility 40", + "type": "Single Facility", + "swrs_facility_id": 1040, + "latitude_of_largest_emissions": 43.5, + "longitude_of_largest_emissions": -123.5 + } + }, + { + "model": "registration.facility", + "pk": "fdd723fe-88f5-46fb-af50-c19f1407e46d", + "fields": { + "created_by": "00000000-0000-0000-0000-000000000001", + "created_at": "2024-06-05T23:18:07.664Z", + "name": "Facility 41", + "type": "Single Facility", + "swrs_facility_id": 1041, + "latitude_of_largest_emissions": 43.5, + "longitude_of_largest_emissions": -123.5 + } + }, + { + "model": "registration.facility", + "pk": "a4ffa43d-3f47-4f0f-a423-fde5d91e9d87", + "fields": { + "created_by": "00000000-0000-0000-0000-000000000001", + "created_at": "2024-06-05T23:18:07.664Z", + "name": "Facility 42", + "type": "Single Facility", + "swrs_facility_id": 1042, + "latitude_of_largest_emissions": 43.5, + "longitude_of_largest_emissions": -123.5 + } + }, + { + "model": "registration.facility", + "pk": "f6f58bf4-2dd1-4669-b432-50281c6fdff6", + "fields": { + "created_by": "00000000-0000-0000-0000-000000000001", + "created_at": "2024-06-05T23:18:07.664Z", + "name": "Facility 43", + "type": "Single Facility", + "swrs_facility_id": 1043, + "latitude_of_largest_emissions": 43.5, + "longitude_of_largest_emissions": -123.5 + } } ] diff --git a/bc_obps/registration/fixtures/mock/facility_designated_operation_timeline.json b/bc_obps/registration/fixtures/mock/facility_designated_operation_timeline.json index 7af437d129..952d210cad 100644 --- a/bc_obps/registration/fixtures/mock/facility_designated_operation_timeline.json +++ b/bc_obps/registration/fixtures/mock/facility_designated_operation_timeline.json @@ -2,7 +2,7 @@ { "model": "registration.facilitydesignatedoperationtimeline", "fields": { - "created_by": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "created_by": "00000000-0000-0000-0000-000000000001", "created_at": "2024-06-05T23:19:34.959Z", "facility": "f486f2fb-62ed-438d-bb3e-0819b51e3aeb", "operation": "002d5a9e-32a6-4191-938c-2c02bfec592d", @@ -25,7 +25,7 @@ { "model": "registration.facilitydesignatedoperationtimeline", "fields": { - "created_by": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "created_by": "00000000-0000-0000-0000-000000000001", "created_at": "2024-06-05T23:19:58.000Z", "facility": "f486f2fb-62ed-438d-bb3e-0819b51e3aec", "operation": "002d5a9e-32a6-4191-938c-2c02bfec592d", @@ -36,7 +36,7 @@ { "model": "registration.facilitydesignatedoperationtimeline", "fields": { - "created_by": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "created_by": "00000000-0000-0000-0000-000000000001", "created_at": "2024-06-05T23:19:58.500Z", "facility": "f486f2fb-62ed-438d-bb3e-0819b51e3aed", "operation": "002d5a9e-32a6-4191-938c-2c02bfec592d", @@ -46,7 +46,7 @@ { "model": "registration.facilitydesignatedoperationtimeline", "fields": { - "created_by": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "created_by": "00000000-0000-0000-0000-000000000001", "created_at": "2024-06-05T23:19:59.000Z", "facility": "f486f2fb-62ed-438d-bb3e-0819b51e3aee", "operation": "002d5a9e-32a6-4191-938c-2c02bfec592d", @@ -56,7 +56,7 @@ { "model": "registration.facilitydesignatedoperationtimeline", "fields": { - "created_by": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "created_by": "00000000-0000-0000-0000-000000000001", "created_at": "2024-06-05T23:19:59.500Z", "facility": "f486f2fb-62ed-438d-bb3e-0819b51e3aef", "operation": "002d5a9e-32a6-4191-938c-2c02bfec592d", @@ -66,7 +66,7 @@ { "model": "registration.facilitydesignatedoperationtimeline", "fields": { - "created_by": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "created_by": "00000000-0000-0000-0000-000000000001", "created_at": "2024-06-05T23:20:00.000Z", "facility": "f486f2fb-62ed-438d-bb3e-0819b51e3af0", "operation": "002d5a9e-32a6-4191-938c-2c02bfec592d", @@ -76,7 +76,7 @@ { "model": "registration.facilitydesignatedoperationtimeline", "fields": { - "created_by": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "created_by": "00000000-0000-0000-0000-000000000001", "created_at": "2024-06-05T23:20:00.500Z", "facility": "f486f2fb-62ed-438d-bb3e-0819b51e3af1", "operation": "002d5a9e-32a6-4191-938c-2c02bfec592d", @@ -86,7 +86,7 @@ { "model": "registration.facilitydesignatedoperationtimeline", "fields": { - "created_by": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "created_by": "00000000-0000-0000-0000-000000000001", "created_at": "2024-06-05T23:20:01.000Z", "facility": "f486f2fb-62ed-438d-bb3e-0819b51e3af2", "operation": "002d5a9e-32a6-4191-938c-2c02bfec592d", @@ -96,7 +96,7 @@ { "model": "registration.facilitydesignatedoperationtimeline", "fields": { - "created_by": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "created_by": "00000000-0000-0000-0000-000000000001", "created_at": "2024-06-05T23:20:01.500Z", "facility": "f486f2fb-62ed-438d-bb3e-0819b51e3af3", "operation": "002d5a9e-32a6-4191-938c-2c02bfec592d", @@ -106,7 +106,7 @@ { "model": "registration.facilitydesignatedoperationtimeline", "fields": { - "created_by": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "created_by": "00000000-0000-0000-0000-000000000001", "created_at": "2024-06-05T23:20:02.000Z", "facility": "f486f2fb-62ed-438d-bb3e-0819b51e3af4", "operation": "002d5a9e-32a6-4191-938c-2c02bfec592d", @@ -116,7 +116,7 @@ { "model": "registration.facilitydesignatedoperationtimeline", "fields": { - "created_by": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "created_by": "00000000-0000-0000-0000-000000000001", "created_at": "2024-06-05T23:20:02.500Z", "facility": "f486f2fb-62ed-438d-bb3e-0819b51e3af5", "operation": "002d5a9e-32a6-4191-938c-2c02bfec592d", @@ -126,7 +126,7 @@ { "model": "registration.facilitydesignatedoperationtimeline", "fields": { - "created_by": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "created_by": "00000000-0000-0000-0000-000000000001", "created_at": "2024-06-05T23:20:03.000Z", "facility": "f486f2fb-62ed-438d-bb3e-0819b51e3af6", "operation": "002d5a9e-32a6-4191-938c-2c02bfec592d", @@ -136,7 +136,7 @@ { "model": "registration.facilitydesignatedoperationtimeline", "fields": { - "created_by": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "created_by": "00000000-0000-0000-0000-000000000001", "created_at": "2024-06-05T23:20:03.500Z", "facility": "f486f2fb-62ed-438d-bb3e-0819b51e3af7", "operation": "002d5a9e-32a6-4191-938c-2c02bfec592d", @@ -146,7 +146,7 @@ { "model": "registration.facilitydesignatedoperationtimeline", "fields": { - "created_by": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "created_by": "00000000-0000-0000-0000-000000000001", "created_at": "2024-06-05T23:20:04.000Z", "facility": "f486f2fb-62ed-438d-bb3e-0819b51e3af8", "operation": "002d5a9e-32a6-4191-938c-2c02bfec592d", @@ -156,7 +156,7 @@ { "model": "registration.facilitydesignatedoperationtimeline", "fields": { - "created_by": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "created_by": "00000000-0000-0000-0000-000000000001", "created_at": "2024-06-05T23:20:04.500Z", "facility": "f486f2fb-62ed-438d-bb3e-0819b51e3af9", "operation": "002d5a9e-32a6-4191-938c-2c02bfec592d", @@ -166,7 +166,7 @@ { "model": "registration.facilitydesignatedoperationtimeline", "fields": { - "created_by": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "created_by": "00000000-0000-0000-0000-000000000001", "created_at": "2024-06-05T23:20:05.000Z", "facility": "f486f2fb-62ed-438d-bb3e-0819b51e3afa", "operation": "002d5a9e-32a6-4191-938c-2c02bfec592d", @@ -176,13 +176,23 @@ { "model": "registration.facilitydesignatedoperationtimeline", "fields": { - "created_by": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "created_by": "00000000-0000-0000-0000-000000000001", "created_at": "2024-06-05T23:20:05.500Z", "facility": "f486f2fb-62ed-438d-bb3e-0819b51e3afb", "operation": "002d5a9e-32a6-4191-938c-2c02bfec592d", "start_date": "2024-06-05T23:20:05Z" } }, + { + "model": "registration.facilitydesignatedoperationtimeline", + "fields": { + "created_by": "00000000-0000-0000-0000-000000000001", + "created_at": "2024-06-05T23:20:05.500Z", + "facility": "f486f2fb-62ed-438d-bb3e-0819b51e3afc", + "operation": "002d5a9e-32a6-4191-938c-2c02bfec592d", + "start_date": "2024-06-05T23:20:05Z" + } + }, { "model": "registration.facilitydesignatedoperationtimeline", "fields": { @@ -217,6 +227,16 @@ "model": "registration.facilitydesignatedoperationtimeline", "fields": { "created_by": "00000000-0000-0000-0000-000000000001", + "created_at": "2024-06-05T23:20:07.000Z", + "facility": "459b80f9-b5f3-48aa-9727-90c30eaf3a59", + "operation": "3b5b95ea-2a1a-450d-8e2e-2e15feed96c9", + "start_date": "2024-06-05T23:20:07Z" + } + }, + { + "model": "registration.facilitydesignatedoperationtimeline", + "fields": { + "created_by": "00000000-0000-0000-0000-000000000004", "created_at": "2024-06-20T23:20:02Z", "facility": "459b80f9-b5f3-48aa-9727-90c30eaf3a58", "operation": "e1300fd7-2dee-47d1-b655-2ad3fd10f052", @@ -232,5 +252,195 @@ "operation": "1bd04128-d070-4d3a-940a-0874c4956181", "start_date": "2024-06-28T23:20:02Z" } + }, + { + "model": "registration.facilitydesignatedoperationtimeline", + "fields": { + "created_by": "00000000-0000-0000-0000-000000000001", + "created_at": "2024-06-20T23:20:02Z", + "facility": "67fd8288-422b-43d3-a9b1-e4ddc54e2139", + "operation": "df62d793-8cfe-4272-a93e-ea9c9139ff82", + "start_date": "2024-06-28T23:20:02Z" + } + }, + { + "model": "registration.facilitydesignatedoperationtimeline", + "fields": { + "created_by": "00000000-0000-0000-0000-000000000001", + "created_at": "2024-06-20T23:20:02Z", + "facility": "9f7b0848-021e-4d08-9852-10524c4e5456", + "operation": "b65a3fbc-c81a-49c0-a43a-67bd3a0b488e", + "start_date": "2024-06-28T23:20:02Z" + } + }, + { + "model": "registration.facilitydesignatedoperationtimeline", + "fields": { + "created_by": "00000000-0000-0000-0000-000000000004", + "created_at": "2024-06-20T23:20:02Z", + "facility": "f4eb89dd-e081-4576-8663-b789c4a20478", + "operation": "d99725a7-1c3a-47cb-a59b-e2388ce0fa18", + "start_date": "2024-06-28T23:20:02Z" + } + }, + { + "model": "registration.facilitydesignatedoperationtimeline", + "fields": { + "created_by": "00000000-0000-0000-0000-000000000004", + "created_at": "2024-06-20T23:20:02Z", + "facility": "6d564423-abfe-4579-ba92-2c6c71c37bb9", + "operation": "436dd99a-cb41-4494-91c9-98ab149b557d", + "start_date": "2024-06-28T23:20:02Z" + } + }, + { + "model": "registration.facilitydesignatedoperationtimeline", + "fields": { + "created_by": "00000000-0000-0000-0000-000000000004", + "created_at": "2024-06-20T23:20:02Z", + "facility": "f466e6fc-f338-4cf7-89b0-0211bd2be8b7", + "operation": "a47b5fb6-1e10-401a-b70e-574bd925db99", + "start_date": "2024-06-28T23:20:02Z" + } + }, + { + "model": "registration.facilitydesignatedoperationtimeline", + "fields": { + "created_by": "00000000-0000-0000-0000-000000000004", + "created_at": "2024-06-20T23:20:02Z", + "facility": "f2461804-f38a-4fcc-8586-7ee6eaefa830", + "operation": "21e70498-c4b0-4525-8443-86faa96206e3", + "start_date": "2024-06-28T23:20:02Z" + } + }, + { + "model": "registration.facilitydesignatedoperationtimeline", + "fields": { + "created_by": "00000000-0000-0000-0000-000000000004", + "created_at": "2024-06-20T23:20:02Z", + "facility": "fab6a6a7-3c9b-426f-88fb-a9c06474fe51", + "operation": "17550cd8-3e73-4e52-aa91-ab90cb3b62b0", + "start_date": "2024-06-28T23:20:02Z" + } + }, + { + "model": "registration.facilitydesignatedoperationtimeline", + "fields": { + "created_by": "00000000-0000-0000-0000-000000000004", + "created_at": "2024-06-20T23:20:02Z", + "facility": "80db5b3a-b06b-4c06-b257-edaa4e873160", + "operation": "7d3fc7d1-0504-4ee4-a9c5-447f4b324b57", + "start_date": "2024-06-28T23:20:02Z" + } + }, + { + "model": "registration.facilitydesignatedoperationtimeline", + "fields": { + "created_by": "00000000-0000-0000-0000-000000000004", + "created_at": "2024-06-20T23:20:02Z", + "facility": "8d0777dd-b691-4079-9253-fca63df79300", + "operation": "acf5811e-d521-43f7-a5c7-a6d6dd47bb31", + "start_date": "2024-06-28T23:20:02Z" + } + }, + { + "model": "registration.facilitydesignatedoperationtimeline", + "fields": { + "created_by": "00000000-0000-0000-0000-000000000004", + "created_at": "2024-06-20T23:20:02Z", + "facility": "e5ade67f-f9ce-496c-b0ad-b8edcd7ecd08", + "operation": "8563da83-0762-4d29-9b22-da5b52ef0f24", + "start_date": "2024-06-28T23:20:02Z" + } + }, + { + "model": "registration.facilitydesignatedoperationtimeline", + "fields": { + "created_by": "00000000-0000-0000-0000-000000000004", + "created_at": "2024-06-20T23:20:02Z", + "facility": "5ee7a6b1-e82a-4a6d-90d1-9a8bbf2017a8", + "operation": "8563da83-0762-4d29-9b22-da5b52ef0f24", + "start_date": "2024-06-28T23:20:02Z" + } + }, + { + "model": "registration.facilitydesignatedoperationtimeline", + "fields": { + "created_by": "00000000-0000-0000-0000-000000000023", + "created_at": "2024-06-20T23:20:02Z", + "facility": "d844683d-e894-4dfe-9d2d-49944ec86005", + "operation": "c5b3643b-c143-42f3-8a2b-03ccc7319cd9", + "start_date": "2024-06-28T23:20:02Z" + } + }, + { + "model": "registration.facilitydesignatedoperationtimeline", + "fields": { + "created_by": "00000000-0000-0000-0000-000000000001", + "created_at": "2024-06-20T23:20:02Z", + "facility": "c27356fe-c1b1-42df-8845-246ad057f43d", + "operation": "954c0382-ff61-4e87-a8a0-873586534b54", + "start_date": "2024-06-28T23:20:02Z" + } + }, + { + "model": "registration.facilitydesignatedoperationtimeline", + "fields": { + "created_by": "00000000-0000-0000-0000-000000000001", + "created_at": "2024-06-20T23:20:02Z", + "facility": "d477f3d9-2917-4f36-b5ae-166d47dc8172", + "operation": "6d07d02a-1ad2-46ed-ad56-2f84313e98bf", + "start_date": "2024-06-28T23:20:02Z" + } + }, + { + "model": "registration.facilitydesignatedoperationtimeline", + "fields": { + "created_by": "00000000-0000-0000-0000-000000000001", + "created_at": "2024-06-20T23:20:02Z", + "facility": "80ccea58-1920-46ea-8260-23bfe9b4fef0", + "operation": "59d95661-c752-489b-9fd1-0c3fa3454dda", + "start_date": "2024-06-28T23:20:02Z" + } + }, + { + "model": "registration.facilitydesignatedoperationtimeline", + "fields": { + "created_by": "00000000-0000-0000-0000-000000000023", + "created_at": "2024-06-20T23:20:02Z", + "facility": "b66d0364-ad1d-42f4-93d9-82bf185c4304", + "operation": "17f13f4d-29b4-45f4-b025-b21f2e126771", + "start_date": "2024-06-28T23:20:02Z" + } + }, + { + "model": "registration.facilitydesignatedoperationtimeline", + "fields": { + "created_by": "00000000-0000-0000-0000-000000000001", + "created_at": "2024-06-20T23:20:02Z", + "facility": "fdd723fe-88f5-46fb-af50-c19f1407e46d", + "operation": "ef9044dd-2a27-4d26-86fe-02e51e0755f7", + "start_date": "2024-06-28T23:20:02Z" + } + }, + { + "model": "registration.facilitydesignatedoperationtimeline", + "fields": { + "created_by": "00000000-0000-0000-0000-000000000001", + "created_at": "2024-06-20T23:20:02Z", + "facility": "a4ffa43d-3f47-4f0f-a423-fde5d91e9d87", + "operation": "aeeb781e-a97b-4ab2-9a6e-02e4522add1a", + "start_date": "2024-06-28T23:20:02Z" + } + }, + { + "model": "registration.facilitydesignatedoperationtimeline", + "fields": { + "created_by": "00000000-0000-0000-0000-000000000001", + "created_at": "2024-06-20T23:20:02Z", + "facility": "f6f58bf4-2dd1-4669-b432-50281c6fdff6", + "operation": "02a3ab84-26c6-4a79-bf89-72f877ceef8e", + "start_date": "2024-06-28T23:20:02Z" + } } ] diff --git a/bc_obps/registration/fixtures/mock/operation.json b/bc_obps/registration/fixtures/mock/operation.json index 7fd55ef193..bf010d645a 100644 --- a/bc_obps/registration/fixtures/mock/operation.json +++ b/bc_obps/registration/fixtures/mock/operation.json @@ -3,17 +3,15 @@ "model": "registration.operation", "pk": "e1300fd7-2dee-47d1-b655-2ad3fd10f052", "fields": { + "point_of_contact": 1, "operator": "685d581b-5698-411f-ae00-de1d97334a71", - "verified_at": "2023-10-13T15:27:00.000Z", - "verified_by": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "documents": [], - "point_of_contact": 1, - "name": "Operation 1", + "name": "Apple LFO - Registered", "type": "Linear Facility Operation", "naics_code": 19, "swrs_facility_id": 1001, - "regulated_products": [], - "status": "Not Started", + "status": "Registered", + "bc_obps_regulated_operation": "24-0014", "created_at": "2024-2-01T15:27:00.000Z", "activities": [1, 5], "registration_purpose": "Reporting Operation" @@ -23,16 +21,17 @@ "model": "registration.operation", "pk": "002d5a9e-32a6-4191-938c-2c02bfec592d", "fields": { - "operator": "4242ea9d-b917-4129-93c2-db00b7451051", "point_of_contact": 1, + "operator": "4242ea9d-b917-4129-93c2-db00b7451051", "documents": [], - "name": "Operation 2", + "name": "Banana LFO - Registered", "type": "Linear Facility Operation", "naics_code": 20, "opt_in": false, "bcghg_id": "23219990004", - "regulated_products": [], - "status": "Not Started", + "regulated_products": [1], + "status": "Registered", + "bc_obps_regulated_operation": "24-0015", "created_at": "2024-2-02T15:27:00.000Z", "activities": [1, 5], "contacts": [10], @@ -41,12 +40,31 @@ }, { "model": "registration.operation", - "pk": "3b5b95ea-2a1a-450d-8e2e-2e15feed96c9", + "pk": "556ceeb0-7e24-4d89-b639-61f625f82084", "fields": { + "point_of_contact": 1, "operator": "4242ea9d-b917-4129-93c2-db00b7451051", "documents": [], + "name": "Charlie LFO - Draft -- no facility", + "type": "Linear Facility Operation", + "naics_code": 20, + "opt_in": false, + "regulated_products": [1], + "status": "Draft", + "created_at": "2024-2-02T15:27:00.000Z", + "activities": [1, 5], + "contacts": [10], + "registration_purpose": "OBPS Regulated Operation" + } + }, + { + "model": "registration.operation", + "pk": "3b5b95ea-2a1a-450d-8e2e-2e15feed96c9", + "fields": { "point_of_contact": 1, - "name": "Operation 3", + "operator": "4242ea9d-b917-4129-93c2-db00b7451051", + "documents": [], + "name": "Bugle SFO - Registered", "submission_date": "2023-12-16T15:27:00.000Z", "type": "Single Facility Operation", "naics_code": 21, @@ -54,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], @@ -65,18 +83,18 @@ "model": "registration.operation", "pk": "c0743c09-82fa-4186-91aa-4b5412e3415c", "fields": { + "point_of_contact": 1, "operator": "685d581b-5698-411f-ae00-de1d97334a71", "documents": [], "submission_date": "2024-01-12T15:27:00.000Z", - "bc_obps_regulated_operation": "21-0002", - "status": "Registered", - "point_of_contact": 1, - "name": "Operation 4", + "name": "Alien SFO - Registered", "type": "Single Facility Operation", "naics_code": 21, "opt_in": false, "bcghg_id": "23219990002", - "regulated_products": [], + "regulated_products": [1], + "status": "Registered", + "bc_obps_regulated_operation": "23-0002", "created_at": "2024-1-30T15:27:00.000Z", "activities": [1, 5], "contacts": [10, 11, 12], @@ -87,18 +105,19 @@ "model": "registration.operation", "pk": "b65a3fbc-c81a-49c0-a43a-67bd3a0b488e", "fields": { + "point_of_contact": 1, "operator": "4242ea9d-b917-4129-93c2-db00b7451051", "documents": [], "submission_date": null, - "point_of_contact": 1, - "name": "Operation 5", + "name": "Bangles SFO - Registered - has Multiple Operators", "type": "Single Facility Operation", "naics_code": 21, "opt_in": false, "bcghg_id": "23219990001", "regulated_products": [1, 2], "registration_purpose": "OBPS Regulated Operation", - "status": "Draft", + "status": "Registered", + "bc_obps_regulated_operation": "24-0003", "created_at": "2024-1-29T15:27:00.000Z", "activities": [1, 5], "operation_has_multiple_operators": true @@ -106,20 +125,20 @@ }, { "model": "registration.operation", - "pk": "d99725a7-1c3a-47cb-a59b-e2388ce0fa18", "fields": { + "point_of_contact": 1, "operator": "685d581b-5698-411f-ae00-de1d97334a71", "documents": [], "submission_date": "2024-01-14T15:27:00.000Z", - "point_of_contact": 1, - "name": "Operation 6", + "name": "Alligator SFO - Registered", "type": "Single Facility Operation", "naics_code": 21, "opt_in": false, "bcghg_id": "23219999999", - "regulated_products": [], - "status": "Draft", + "regulated_products": [1], + "status": "Registered", + "bc_obps_regulated_operation": "24-0004", "created_at": "2024-1-28T15:27:00.000Z", "activities": [1, 5], "registration_purpose": "Opted-in Operation" @@ -129,17 +148,17 @@ "model": "registration.operation", "pk": "436dd99a-cb41-4494-91c9-98ab149b557d", "fields": { + "point_of_contact": 1, "operator": "685d581b-5698-411f-ae00-de1d97334a71", "documents": [], "submission_date": "2024-01-15T15:27:00.000Z", - "point_of_contact": 1, - "name": "Operation 7", + "name": "Anteater SFO - Registered", "type": "Single Facility Operation", "naics_code": 21, "opt_in": false, "bcghg_id": "23219990006", - "regulated_products": [], - "status": "Draft", + "status": "Registered", + "bc_obps_regulated_operation": "24-0005", "created_at": "2024-1-27T15:27:00.000Z", "activities": [1, 5], "registration_purpose": "Potential Reporting Operation" @@ -149,17 +168,17 @@ "model": "registration.operation", "pk": "a47b5fb6-1e10-401a-b70e-574bd925db99", "fields": { + "point_of_contact": 1, "operator": "685d581b-5698-411f-ae00-de1d97334a71", "documents": [], "submission_date": "2024-01-16T15:27:00.000Z", - "point_of_contact": 1, - "name": "Operation 8", + "name": "Arctic SFO - Registered", "type": "Single Facility Operation", "naics_code": 21, "opt_in": false, "bcghg_id": "23219990007", - "regulated_products": [], - "status": "Draft", + "status": "Registered", + "bc_obps_regulated_operation": "24-0006", "created_at": "2024-1-26T15:27:00.000Z", "activities": [1, 5], "registration_purpose": "Electricity Import Operation" @@ -169,17 +188,18 @@ "model": "registration.operation", "pk": "21e70498-c4b0-4525-8443-86faa96206e3", "fields": { + "point_of_contact": 1, "operator": "685d581b-5698-411f-ae00-de1d97334a71", "documents": [], "submission_date": "2024-01-17T15:27:00.000Z", - "point_of_contact": 1, - "name": "Operation 9", + "name": "Arguement SFO - Registered", "type": "Single Facility Operation", "naics_code": 21, "opt_in": false, "bcghg_id": "23219990008", - "regulated_products": [], - "status": "Draft", + "regulated_products": [2], + "status": "Registered", + "bc_obps_regulated_operation": "24-0007", "created_at": "2024-1-25T15:27:00.000Z", "activities": [1, 5], "registration_purpose": "New Entrant Operation" @@ -189,17 +209,16 @@ "model": "registration.operation", "pk": "17550cd8-3e73-4e52-aa91-ab90cb3b62b0", "fields": { + "point_of_contact": 1, "operator": "685d581b-5698-411f-ae00-de1d97334a71", "documents": [], "submission_date": "2024-01-18T15:27:00.000Z", - "point_of_contact": 1, - "name": "Operation 10", + "name": "Art SFO - Registered", "type": "Single Facility Operation", "naics_code": 21, "opt_in": false, - "bcghg_id": "23219990009", - "regulated_products": [], - "status": "Draft", + "status": "Registered", + "bc_obps_regulated_operation": "24-0008", "created_at": "2024-1-24T15:27:00.000Z", "activities": [1, 5], "registration_purpose": "Reporting Operation" @@ -209,17 +228,18 @@ "model": "registration.operation", "pk": "7d3fc7d1-0504-4ee4-a9c5-447f4b324b57", "fields": { + "point_of_contact": 1, "operator": "685d581b-5698-411f-ae00-de1d97334a71", "documents": [], "submission_date": "2024-01-19T15:27:00.000Z", - "point_of_contact": 1, - "name": "Operation 11", + "name": "SFO 11 - Registered", "type": "Single Facility Operation", "naics_code": 21, "opt_in": false, "bcghg_id": "23219990010", - "regulated_products": [], - "status": "Draft", + "regulated_products": [3], + "status": "Registered", + "bc_obps_regulated_operation": "24-0009", "created_at": "2024-1-23T15:27:00.000Z", "activities": [1, 5], "registration_purpose": "OBPS Regulated Operation" @@ -229,17 +249,17 @@ "model": "registration.operation", "pk": "acf5811e-d521-43f7-a5c7-a6d6dd47bb31", "fields": { + "point_of_contact": 1, "operator": "685d581b-5698-411f-ae00-de1d97334a71", "documents": [], "submission_date": "2024-01-20T15:27:00.000Z", - "point_of_contact": 1, - "name": "Operation 12", + "name": "SFO 12 - Registered", "type": "Single Facility Operation", "naics_code": 21, "opt_in": false, "bcghg_id": "23219990011", - "regulated_products": [], - "status": "Draft", + "status": "Registered", + "bc_obps_regulated_operation": "24-0010", "created_at": "2024-1-22T15:27:00.000Z", "activities": [1, 5], "registration_purpose": "Reporting Operation" @@ -249,17 +269,17 @@ "model": "registration.operation", "pk": "8563da83-0762-4d29-9b22-da5b52ef0f24", "fields": { + "point_of_contact": 1, "operator": "685d581b-5698-411f-ae00-de1d97334a71", "documents": [], "submission_date": "2024-01-21T15:27:00.000Z", - "point_of_contact": 1, - "name": "Operation 13", + "name": "SFO 13 - Registered", "type": "Single Facility Operation", "naics_code": 21, "opt_in": false, - "bcghg_id": "23219990012", - "regulated_products": [], - "status": "Draft", + "regulated_products": [3, 4], + "status": "Registered", + "bc_obps_regulated_operation": "24-0011", "created_at": "2024-1-21T15:27:00.000Z", "activities": [1, 5], "registration_purpose": "OBPS Regulated Operation" @@ -269,17 +289,16 @@ "model": "registration.operation", "pk": "df62d793-8cfe-4272-a93e-ea9c9139ff82", "fields": { + "point_of_contact": 1, "operator": "4242ea9d-b917-4129-93c2-db00b7451051", "documents": [], "submission_date": "2024-01-22T15:27:00.000Z", - "point_of_contact": 2, - "name": "Operation 14", + "name": "Bojangles SFO - Not Started", "type": "Single Facility Operation", "naics_code": 21, "opt_in": false, "bcghg_id": "23219990013", "created_at": "2024-1-20T15:27:00.000Z", - "regulated_products": [1, 2, 3, 4], "status": "Not Started", "registration_purpose": "Electricity Import Operation" } @@ -288,16 +307,16 @@ "model": "registration.operation", "pk": "c5b3643b-c143-42f3-8a2b-03ccc7319cd9", "fields": { + "point_of_contact": 1, "operator": "4242ea9d-b917-4129-93c2-db00b7451051", "documents": [], "submission_date": "2024-01-23T15:27:00.000Z", - "point_of_contact": 3, - "name": "Operation 15", + "name": "Brine SFO - Not Started", "type": "Single Facility Operation", "naics_code": 21, "opt_in": false, "bcghg_id": "23219990014", - "regulated_products": [], + "regulated_products": [3], "status": "Not Started", "created_at": "2024-1-19T15:27:00.000Z", "activities": [1, 5], @@ -308,16 +327,15 @@ "model": "registration.operation", "pk": "954c0382-ff61-4e87-a8a0-873586534b54", "fields": { + "point_of_contact": 1, "operator": "4242ea9d-b917-4129-93c2-db00b7451051", "documents": [], "submission_date": "2024-01-24T15:27:00.000Z", - "point_of_contact": 1, - "name": "Operation 16", + "name": "Bling SFO - Draft", "type": "Single Facility Operation", "naics_code": 21, "opt_in": false, "bcghg_id": "23219990015", - "regulated_products": [], "status": "Draft", "created_at": "2024-1-18T15:27:00.000Z", "activities": [1, 5], @@ -328,17 +346,18 @@ "model": "registration.operation", "pk": "6d07d02a-1ad2-46ed-ad56-2f84313e98bf", "fields": { + "point_of_contact": 1, "operator": "4242ea9d-b917-4129-93c2-db00b7451051", "documents": [], "submission_date": "2024-01-25T15:27:00.000Z", - "point_of_contact": 4, - "name": "Operation 17", + "name": "Bees SFO - Registered", "type": "Single Facility Operation", "naics_code": 21, "opt_in": false, "bcghg_id": "23219990016", - "regulated_products": [], - "status": "Draft", + "regulated_products": [5], + "status": "Registered", + "bc_obps_regulated_operation": "24-0012", "created_at": "2024-1-17T15:27:00.000Z", "activities": [1, 5], "registration_purpose": "OBPS Regulated Operation" @@ -348,17 +367,16 @@ "model": "registration.operation", "pk": "59d95661-c752-489b-9fd1-0c3fa3454dda", "fields": { + "point_of_contact": 1, "operator": "4242ea9d-b917-4129-93c2-db00b7451051", "documents": [], "submission_date": "2024-01-26T15:27:00.000Z", - "point_of_contact": 5, - "name": "Operation 18", + "name": "Blue SFO - Draft", "type": "Single Facility Operation", "naics_code": 21, "opt_in": false, "bcghg_id": "23219990017", - "regulated_products": [], - "status": "Registered", + "status": "Draft", "created_at": "2024-1-16T15:27:00.000Z", "activities": [1, 5] } @@ -367,17 +385,18 @@ "model": "registration.operation", "pk": "1bd04128-d070-4d3a-940a-0874c4956181", "fields": { + "point_of_contact": 1, "operator": "4242ea9d-b917-4129-93c2-db00b7451051", "documents": [], "submission_date": "2024-01-27T15:27:00.000Z", - "point_of_contact": 6, - "name": "Operation 19", + "name": "Bullet SFO - Registered", "type": "Single Facility Operation", "naics_code": 21, "opt_in": false, "bcghg_id": "23219990018", - "regulated_products": [], + "regulated_products": [3], "status": "Registered", + "bc_obps_regulated_operation": "24-0013", "registration_purpose": "New Entrant Operation", "created_at": "2024-1-15T15:27:00.000Z", "activities": [1, 3] @@ -387,17 +406,19 @@ "model": "registration.operation", "pk": "17f13f4d-29b4-45f4-b025-b21f2e126771", "fields": { + "point_of_contact": 1, "operator": "4242ea9d-b917-4129-93c2-db00b7451051", "documents": [], "submission_date": "2024-01-28T15:27:00.000Z", - "name": "Operation 20", + "name": "Bat SFO - Registered", "type": "Single Facility Operation", "naics_code": 21, "opt_in": false, "bcghg_id": "23219990019", - "regulated_products": [], - "status": "Draft", + "status": "Registered", + "bc_obps_regulated_operation": "24-0016", "created_at": "2024-1-14T15:27:00.000Z", + "registration_purpose": "Reporting Operation", "activities": [1, 5] } }, @@ -405,16 +426,18 @@ "model": "registration.operation", "pk": "ef9044dd-2a27-4d26-86fe-02e51e0755f7", "fields": { + "point_of_contact": 1, "operator": "4242ea9d-b917-4129-93c2-db00b7451051", "documents": [], - "name": "Operation 21", + "name": "Bin SFO - Registered", "type": "Single Facility Operation", "naics_code": 21, "opt_in": false, "bcghg_id": "23219990020", - "regulated_products": [], - "status": "Draft", + "status": "Registered", + "bc_obps_regulated_operation": "24-0017", "created_at": "2024-1-13T15:27:00.000Z", + "registration_purpose": "Reporting Operation", "activities": [1, 5] } }, @@ -422,16 +445,18 @@ "model": "registration.operation", "pk": "aeeb781e-a97b-4ab2-9a6e-02e4522add1a", "fields": { + "point_of_contact": 1, "operator": "4242ea9d-b917-4129-93c2-db00b7451051", "documents": [], - "name": "Operation 22", + "name": "Bark SFO - Registered", "type": "Single Facility Operation", "naics_code": 21, "opt_in": false, "bcghg_id": "23219990021", - "regulated_products": [], - "status": "Draft", + "status": "Registered", + "bc_obps_regulated_operation": "24-0018", "created_at": "2024-1-12T15:27:00.000Z", + "registration_purpose": "Reporting Operation", "activities": [1, 5] } }, @@ -439,14 +464,13 @@ "model": "registration.operation", "pk": "02a3ab84-26c6-4a79-bf89-72f877ceef8e", "fields": { + "point_of_contact": 1, "operator": "4242ea9d-b917-4129-93c2-db00b7451051", "documents": [], - "name": "Operation 23", + "name": "Blight SFO - Draft", "type": "Single Facility Operation", "naics_code": 21, "opt_in": false, - "bcghg_id": "23219990022", - "regulated_products": [], "status": "Draft", "created_at": "2024-1-11T15:27:00.000Z", "activities": [1, 5] @@ -456,17 +480,185 @@ "model": "registration.operation", "pk": "0ac72fa9-2636-4f54-b378-af6b1a070787", "fields": { + "point_of_contact": 1, "operator": "4242ea9d-b917-4129-93c2-db00b7451051", "documents": [], - "name": "Operation 24", + "name": "Brown SFO - Draft -- no facility", "type": "Single Facility Operation", "naics_code": 21, "opt_in": false, - "bcghg_id": "23219990023", - "regulated_products": [], "status": "Draft", "created_at": "2024-1-10T15:27:00.000Z", "activities": [1, 3] } + }, + { + "pk": "b35a2095-80e6-4b75-990e-ccf19a57edfa", + "model": "registration.operation", + "fields": { + "operator": "438eff6c-d2e7-40ab-8220-29d3a86ef314", + "point_of_contact": 1, + "name": "Cat SFO - Draft", + "type": "Single Facility Operation", + "naics_code": 20, + "status": "Draft", + "activities": [1, 5] + } + }, + { + "pk": "1d59cb82-2776-4785-a8f7-4b13bc9b4579", + "model": "registration.operation", + "fields": { + "operator": "7e8b72dc-4196-427f-a553-7879748139e1", + "point_of_contact": 1, + "name": "Dog SFO - Draft", + "type": "Single Facility Operation", + "naics_code": 20, + "status": "Draft", + "activities": [1, 5] + } + }, + { + "pk": "82e6ac8f-42f2-42a7-b179-132a3488b2e1", + "model": "registration.operation", + "fields": { + "operator": "4c1010c1-55ca-485d-84bd-6d975fd0af90", + "point_of_contact": 1, + "name": "Elephant SFO - Draft", + "type": "Single Facility Operation", + "naics_code": 20, + "status": "Draft", + "activities": [1, 5] + } + }, + { + "pk": "95f6ec29-4b5b-42a2-9759-d4e9c99738d7", + "model": "registration.operation", + "fields": { + "operator": "5712ee05-5f3b-4822-825d-6fffddafda4c", + "point_of_contact": 1, + "name": "Fox SFO - Draft", + "type": "Single Facility Operation", + "naics_code": 20, + "status": "Draft", + "activities": [1, 5] + } + }, + { + "pk": "1b21579c-87f9-452f-b9c1-c784cb96f62e", + "model": "registration.operation", + "fields": { + "operator": "edb1aff1-f888-4199-ab88-068364496347", + "point_of_contact": 1, + "name": "Giraffe SFO - Draft", + "type": "Single Facility Operation", + "naics_code": 20, + "status": "Draft", + "activities": [1, 5] + } + }, + { + "pk": "4623c545-ef99-464a-bd8b-bb96ffb57e8e", + "model": "registration.operation", + "fields": { + "operator": "ea4314ea-1974-465a-a851-278c8f9c8daa", + "point_of_contact": 1, + "name": "Horse SFO - Draft", + "type": "Single Facility Operation", + "naics_code": 20, + "status": "Draft", + "activities": [1, 5] + } + }, + { + "pk": "f82c2a59-0f3a-4a89-b7d7-9fcd7a7ecb77", + "model": "registration.operation", + "fields": { + "operator": "04384911-264a-4510-b582-11ee704b8e41", + "point_of_contact": 1, + "name": "Iguana SFO - Draft", + "type": "Single Facility Operation", + "naics_code": 20, + "status": "Draft", + "activities": [1, 5] + } + }, + { + "pk": "3182c8a4-22ff-4ca9-9f91-093c8888fd7c", + "model": "registration.operation", + "fields": { + "operator": "f209ef09-dfe6-42a1-ac4c-7689897f1b51", + "point_of_contact": 1, + "name": "Jaguar SFO - Draft", + "type": "Single Facility Operation", + "naics_code": 20, + "status": "Draft", + "activities": [1, 5] + } + }, + { + "pk": "68f0b68a-c6b5-4c4e-82a6-d7fbd690f55e", + "model": "registration.operation", + "fields": { + "operator": "bb979661-0782-49b2-9c64-acd8424b692b", + "point_of_contact": 1, + "name": "Kangaroo SFO - Draft", + "type": "Single Facility Operation", + "naics_code": 20, + "status": "Draft", + "activities": [1, 5] + } + }, + { + "pk": "a5f7f5b3-fb56-4377-ae6c-b11c8b6d0041", + "model": "registration.operation", + "fields": { + "operator": "bb702949-e303-4788-9ba9-806232a5f711", + "point_of_contact": 1, + "name": "Lion SFO - Draft", + "type": "Single Facility Operation", + "naics_code": 20, + "status": "Draft", + "activities": [1, 5] + } + }, + { + "pk": "8494e89c-489b-441b-a05d-e935b1d82487", + "model": "registration.operation", + "fields": { + "operator": "a35fb5ad-edd9-4465-982e-81b824644d07", + "point_of_contact": 1, + "name": "Monkey SFO - Draft", + "type": "Single Facility Operation", + "naics_code": 20, + "status": "Draft", + "activities": [1, 5] + } + }, + { + "pk": "84d4c8b7-55b5-4700-90ad-fb1c169d4e1f", + "model": "registration.operation", + "fields": { + "operator": "5c847c75-3b17-414c-97f8-88ba81cb3821", + "point_of_contact": 1, + "name": "Narwhal SFO - Draft", + "type": "Single Facility Operation", + "naics_code": 20, + "status": "Draft", + "activities": [1, 5] + } + }, + { + "pk": "62d5d8ea-b163-4a83-95a4-bfadbb6b21f7", + "model": "registration.operation", + "fields": { + "operator": "4a792f0f-cf9d-48c8-9a95-f504c5f84b12", + "point_of_contact": 1, + "name": "Ostrich SFO - Draft", + "type": "Single Facility Operation", + "naics_code": 20, + "status": "Draft", + "activities": [1, 5] + } } ] 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 94b6f2d019..f0203c37af 100644 --- a/bc_obps/registration/fixtures/mock/operation_designated_operator_timeline.json +++ b/bc_obps/registration/fixtures/mock/operation_designated_operator_timeline.json @@ -4,7 +4,7 @@ "fields": { "operation": "e1300fd7-2dee-47d1-b655-2ad3fd10f052", "operator": "685d581b-5698-411f-ae00-de1d97334a71", - "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", "end_date": "2024-06-28T23:21:01Z", @@ -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,13 +27,12 @@ "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" } }, - { "model": "registration.operationdesignatedoperatortimeline", "fields": { @@ -50,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" @@ -58,7 +57,6 @@ }, { "model": "registration.operationdesignatedoperatortimeline", - "fields": { "operation": "d99725a7-1c3a-47cb-a59b-e2388ce0fa18", "operator": "685d581b-5698-411f-ae00-de1d97334a71", @@ -150,7 +148,7 @@ "fields": { "operation": "df62d793-8cfe-4272-a93e-ea9c9139ff82", "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" @@ -161,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" @@ -172,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" @@ -183,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" @@ -194,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" @@ -205,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" @@ -216,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" @@ -227,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" @@ -238,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" @@ -249,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" @@ -260,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" @@ -277,5 +275,159 @@ "end_date": "2024-06-05T23:20:57Z", "status": "Transferred" } + }, + { + "model": "registration.operationdesignatedoperatortimeline", + "fields": { + "operation": "556ceeb0-7e24-4d89-b639-61f625f82084", + "operator": "4242ea9d-b917-4129-93c2-db00b7451051", + "created_by": "ba2ba62a121842e0942aab9e92ce8822", + "created_at": "2024-06-05T23:21:02.353Z", + "start_date": "2024-06-05T23:20:57Z", + "status": "Active" + } + }, + { + "model": "registration.operationdesignatedoperatortimeline", + "fields": { + "operation": "b35a2095-80e6-4b75-990e-ccf19a57edfa", + "operator": "438eff6c-d2e7-40ab-8220-29d3a86ef314", + "created_by": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "created_at": "2024-06-05T23:21:02.353Z", + "start_date": "2024-06-05T23:21:02.353Z", + "status": "Active" + } + }, + { + "model": "registration.operationdesignatedoperatortimeline", + "fields": { + "operation": "1d59cb82-2776-4785-a8f7-4b13bc9b4579", + "operator": "7e8b72dc-4196-427f-a553-7879748139e1", + "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" + } + }, + { + "model": "registration.operationdesignatedoperatortimeline", + "fields": { + "operation": "82e6ac8f-42f2-42a7-b179-132a3488b2e1", + "operator": "4c1010c1-55ca-485d-84bd-6d975fd0af90", + "created_by": "00000000-0000-0000-0000-000000000002", + "created_at": "2024-12-06T21:09:07Z", + "start_date": "2024-12-06T21:09:07Z", + "status": "Active" + } + }, + { + "model": "registration.operationdesignatedoperatortimeline", + "fields": { + "operation": "95f6ec29-4b5b-42a2-9759-d4e9c99738d7", + "operator": "5712ee05-5f3b-4822-825d-6fffddafda4c", + "created_by": "00000000-0000-0000-0000-000000000007", + "created_at": "2024-12-06T21:09:07Z", + "start_date": "2024-12-06T21:09:07Z", + "status": "Active" + } + }, + { + "model": "registration.operationdesignatedoperatortimeline", + "fields": { + "operation": "1b21579c-87f9-452f-b9c1-c784cb96f62e", + "operator": "edb1aff1-f888-4199-ab88-068364496347", + "created_by": "00000000-0000-0000-0000-000000000025", + "created_at": "2024-12-06T21:09:07Z", + "start_date": "2024-12-06T21:09:07Z", + "status": "Active" + } + }, + { + "model": "registration.operationdesignatedoperatortimeline", + "fields": { + "operation": "4623c545-ef99-464a-bd8b-bb96ffb57e8e", + "operator": "ea4314ea-1974-465a-a851-278c8f9c8daa", + "created_by": "00000000-0000-0000-0000-000000000008", + "created_at": "2024-12-06T21:09:07Z", + "start_date": "2024-12-06T21:09:07Z", + "status": "Active" + } + }, + { + "model": "registration.operationdesignatedoperatortimeline", + "fields": { + "operation": "f82c2a59-0f3a-4a89-b7d7-9fcd7a7ecb77", + "operator": "04384911-264a-4510-b582-11ee704b8e41", + "created_by": "00000000-0000-0000-0000-000000000006", + "created_at": "2024-12-06T21:09:07Z", + "start_date": "2024-12-06T21:09:07Z", + "status": "Active" + } + }, + { + "model": "registration.operationdesignatedoperatortimeline", + "fields": { + "operation": "3182c8a4-22ff-4ca9-9f91-093c8888fd7c", + "operator": "f209ef09-dfe6-42a1-ac4c-7689897f1b51", + "created_by": "00000000-0000-0000-0000-000000000011", + "created_at": "2024-12-06T21:09:07Z", + "start_date": "2024-12-06T21:09:07Z", + "status": "Active" + } + }, + { + "model": "registration.operationdesignatedoperatortimeline", + "fields": { + "operation": "68f0b68a-c6b5-4c4e-82a6-d7fbd690f55e", + "operator": "bb979661-0782-49b2-9c64-acd8424b692b", + "created_by": "00000000-0000-0000-0000-000000000012", + "created_at": "2024-12-06T21:09:07Z", + "start_date": "2024-12-06T21:09:07Z", + "status": "Active" + } + }, + { + "model": "registration.operationdesignatedoperatortimeline", + "fields": { + "operation": "a5f7f5b3-fb56-4377-ae6c-b11c8b6d0041", + "operator": "bb702949-e303-4788-9ba9-806232a5f711", + "created_by": "00000000-0000-0000-0000-000000000013", + "created_at": "2024-12-06T21:09:07Z", + "start_date": "2024-12-06T21:09:07Z", + "status": "Active" + } + }, + { + "model": "registration.operationdesignatedoperatortimeline", + "fields": { + "operation": "8494e89c-489b-441b-a05d-e935b1d82487", + "operator": "a35fb5ad-edd9-4465-982e-81b824644d07", + "created_by": "00000000-0000-0000-0000-000000000018", + "created_at": "2024-12-06T21:09:07Z", + "start_date": "2024-12-06T21:09:07Z", + "status": "Active" + } + }, + { + "model": "registration.operationdesignatedoperatortimeline", + "fields": { + "operation": "84d4c8b7-55b5-4700-90ad-fb1c169d4e1f", + "operator": "5c847c75-3b17-414c-97f8-88ba81cb3821", + "created_by": "00000000-0000-0000-0000-000000000030", + "created_at": "2024-12-06T21:09:07Z", + "start_date": "2024-12-06T21:09:07Z", + "status": "Active" + } + }, + { + "model": "registration.operationdesignatedoperatortimeline", + "fields": { + "operation": "62d5d8ea-b163-4a83-95a4-bfadbb6b21f7", + "operator": "4a792f0f-cf9d-48c8-9a95-f504c5f84b12", + "created_by": "00000000-0000-0000-0000-000000000026", + "created_at": "2024-12-06T21:09:07Z", + "start_date": "2024-12-06T21:09:07Z", + "status": "Active" + } } ] diff --git a/bc_obps/registration/fixtures/mock/operator.json b/bc_obps/registration/fixtures/mock/operator.json index 3e40d9ac34..eb90f3358b 100644 --- a/bc_obps/registration/fixtures/mock/operator.json +++ b/bc_obps/registration/fixtures/mock/operator.json @@ -7,7 +7,6 @@ "cra_business_number": 123456789, "bc_corporate_registry_number": "abc1234567", "business_structure": "Sole Proprietorship", - "physical_address": 3, "status": "Approved", "is_new": false } @@ -16,280 +15,210 @@ "model": "registration.operator", "pk": "4242ea9d-b917-4129-93c2-db00b7451051", "fields": { - "legal_name": "Existing Operator 2 Legal Name", - "trade_name": "Existing Operator 2 Trade Name", + "legal_name": "Bravo Technologies - has parTNER operator", "cra_business_number": 987654321, "bc_corporate_registry_number": "def1234567", "business_structure": "General Partnership", - "physical_address": 4, "mailing_address": 3, - "website": "http://www.example2.com", - "documents": [], "contacts": [10, 11, 12, 13, 14, 15], "status": "Approved", - "is_new": false, - "verified_at": "2024-01-03 08:09:51.133556-08", - "verified_by": "00000000-0000-0000-0000-000000000002" + "is_new": false } }, { "model": "registration.operator", "pk": "438eff6c-d2e7-40ab-8220-29d3a86ef314", "fields": { - "legal_name": "New Operator 3 Legal Name", - "trade_name": "New Operator 3 Trade Name", + "legal_name": "Charlie Solutions", "cra_business_number": 987654322, "bc_corporate_registry_number": "ghi1234567", "business_structure": "BC Corporation", - "physical_address": 3, "mailing_address": 4, - "website": "http://www.example2.com", - "documents": [], "contacts": [1], "status": "Approved", - "is_new": false, - "verified_at": null, - "verified_by": null + "is_new": false } }, { "model": "registration.operator", "pk": "7e8b72dc-4196-427f-a553-7879748139e1", "fields": { - "legal_name": "Existing Operator 4 Legal Name", - "trade_name": "Existing Operator 4 Trade Name", + "legal_name": "Delta Innovations", "cra_business_number": 987654323, "bc_corporate_registry_number": "jkl1234567", "business_structure": "BC Corporation", - "physical_address": 3, "mailing_address": 4, - "website": "http://www.example2.com", - "documents": [], "contacts": [1, 2], "status": "Approved", - "is_new": false, - "verified_at": "2024-01-03 08:09:51.133556-08", - "verified_by": "00000000-0000-0000-0000-000000000002" + "is_new": false } }, { "model": "registration.operator", "pk": "4c1010c1-55ca-485d-84bd-6d975fd0af90", "fields": { - "legal_name": "New Operator 5 Legal Name", - "trade_name": "New Operator 5 Trade Name", + "legal_name": "Echo Systems", "cra_business_number": 987654324, "bc_corporate_registry_number": "mno1234567", "business_structure": "BC Corporation", - "physical_address": 3, "mailing_address": 4, - "website": "http://www.example2.com", - "documents": [], "contacts": [1], "status": "Approved", - "is_new": false, - "verified_at": null, - "verified_by": null + "is_new": false } }, { "model": "registration.operator", "pk": "5712ee05-5f3b-4822-825d-6fffddafda4c", "fields": { - "legal_name": "Existing Operator 6 Legal Name", - "trade_name": "Existing Operator 6 Trade Name", + "legal_name": "Foxtrot Enterprises - has parENT operator", "cra_business_number": 987654325, "bc_corporate_registry_number": "pqr1234567", "business_structure": "BC Corporation", - "physical_address": 3, "mailing_address": 4, - "website": "http://www.example2.com", - "documents": [], "contacts": [1], "status": "Approved", - "is_new": false, - "verified_at": null, - "verified_by": null + "is_new": false } }, { "model": "registration.operator", "pk": "edb1aff1-f888-4199-ab88-068364496347", "fields": { - "legal_name": "New Operator 6 Legal Name", - "trade_name": "New Operator 6 Trade Name", + "legal_name": "Golf Solutions", "cra_business_number": 987654326, "bc_corporate_registry_number": "stu1234567", "business_structure": "BC Corporation", - "physical_address": 3, "mailing_address": 4, - "website": "http://www.example2.com", - "documents": [], "contacts": [1], "status": "Approved", - "is_new": false, - "verified_at": null, - "verified_by": null + "is_new": false } }, { "model": "registration.operator", "pk": "ea4314ea-1974-465a-a851-278c8f9c8daa", "fields": { - "legal_name": "New Operator 7 Legal Name", - "trade_name": "New Operator 7 Trade Name", + "legal_name": "Hotel Ventures", "cra_business_number": 987654327, "bc_corporate_registry_number": "vwx1234567", "business_structure": "BC Corporation", - "physical_address": 3, "mailing_address": 4, - "website": "http://www.example2.com", - "documents": [], "contacts": [1], "status": "Approved", - "is_new": false, - "verified_at": null, - "verified_by": null + "is_new": false } }, { "model": "registration.operator", "pk": "04384911-264a-4510-b582-11ee704b8e41", "fields": { - "legal_name": "New Operator 8 Legal Name", - "trade_name": "New Operator 8 Trade Name", + "legal_name": "India Innovations", "cra_business_number": 987654328, "bc_corporate_registry_number": "yza1234567", "business_structure": "BC Corporation", - "physical_address": 3, "mailing_address": 4, - "website": "http://www.example2.com", - "documents": [], "contacts": [1], "status": "Approved", - "is_new": false, - "verified_at": null, - "verified_by": null + "is_new": false } }, { "model": "registration.operator", "pk": "f209ef09-dfe6-42a1-ac4c-7689897f1b51", "fields": { - "legal_name": "New Operator 9 Legal Name", - "trade_name": "New Operator 9 Trade Name", + "legal_name": "Juliet Enterprises", "cra_business_number": 987654329, "bc_corporate_registry_number": "bcd1234567", "business_structure": "BC Corporation", - "physical_address": 3, "mailing_address": 4, - "website": "http://www.example2.com", - "documents": [], "contacts": [1], "status": "Approved", - "is_new": false, - "verified_at": null, - "verified_by": null + "is_new": false } }, { "model": "registration.operator", "pk": "bb979661-0782-49b2-9c64-acd8424b692b", "fields": { - "legal_name": "New Operator 10 Legal Name", - "trade_name": "New Operator 10 Trade Name", + "legal_name": "Kilo Logistics", "cra_business_number": 987654330, "bc_corporate_registry_number": "efg1234567", "business_structure": "BC Corporation", - "physical_address": 3, "mailing_address": 4, - "website": "http://www.example2.com", - "documents": [], "contacts": [1], "status": "Approved", - "is_new": false, - "verified_at": null, - "verified_by": null + "is_new": false } }, { "model": "registration.operator", "pk": "bb702949-e303-4788-9ba9-806232a5f711", "fields": { - "legal_name": "New Operator 11 Legal Name", - "trade_name": "New Operator 11 Trade Name", + "legal_name": "Lima Enterprises", "cra_business_number": 987654331, "bc_corporate_registry_number": "hij1234567", "business_structure": "BC Corporation", - "physical_address": 3, "mailing_address": 4, - "website": "http://www.example2.com", - "documents": [], "contacts": [1], "status": "Approved", - "is_new": false, - "verified_at": null, - "verified_by": null + "is_new": false } }, { "model": "registration.operator", "pk": "a35fb5ad-edd9-4465-982e-81b824644d07", "fields": { - "legal_name": "New Operator 12 Legal Name", - "trade_name": "New Operator 12 Trade Name", + "legal_name": "Mike Ventures", "cra_business_number": 987654332, "bc_corporate_registry_number": "klm1234567", "business_structure": "BC Corporation", - "physical_address": 3, "mailing_address": 4, - "website": "http://www.example2.com", - "documents": [], "contacts": [1], "status": "Approved", - "is_new": false, - "verified_at": null, - "verified_by": null + "is_new": false } }, { "model": "registration.operator", "pk": "5c847c75-3b17-414c-97f8-88ba81cb3821", "fields": { - "legal_name": "New Operator 13 Legal Name", - "trade_name": "New Operator 13 Trade Name", + "legal_name": "November Solutions", "cra_business_number": 987654333, "bc_corporate_registry_number": "nop1234567", "business_structure": "BC Corporation", - "physical_address": 3, "mailing_address": 4, - "website": "http://www.example2.com", - "documents": [], "contacts": [1], "status": "Approved", - "is_new": false, - "verified_at": null, - "verified_by": null + "is_new": false } }, { "model": "registration.operator", "pk": "4a792f0f-cf9d-48c8-9a95-f504c5f84b12", "fields": { - "legal_name": "Existing Operator 14 Legal Name", - "trade_name": "Existing Operator 14 Trade Name", + "legal_name": "Oscar Enterprises", "cra_business_number": 987654334, - "bc_corporate_registry_number": "pqz1234567", + "bc_corporate_registry_number": "qrs1234567", "business_structure": "BC Corporation", - "physical_address": 3, "mailing_address": 4, - "website": "http://www.example2.com", - "documents": [], - "contacts": [], + "contacts": [1], "status": "Approved", - "is_new": false, - "verified_at": "2024-01-03 08:09:51.133556-08", - "verified_by": "00000000-0000-0000-0000-000000000002" + "is_new": false + } + }, + { + "model": "registration.operator", + "pk": "4a792f0f-cf9d-48c8-9a95-f504c5f84b12", + "fields": { + "legal_name": "Papa Enterprises - no associated operations", + "cra_business_number": 987654334, + "bc_corporate_registry_number": "qrs1234567", + "business_structure": "BC Corporation", + "mailing_address": 4, + "contacts": [1], + "status": "Approved", + "is_new": false } } ] diff --git a/bc_obps/registration/fixtures/mock/user.json b/bc_obps/registration/fixtures/mock/user.json index 1381433eb4..dd32437529 100644 --- a/bc_obps/registration/fixtures/mock/user.json +++ b/bc_obps/registration/fixtures/mock/user.json @@ -4,7 +4,7 @@ "fields": { "user_guid": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "business_guid": "efb76d57-88b7-4eb6-9f26-ec12b49c14c1", - "bceid_business_name": "New Operator 3 Legal Name", + "bceid_business_name": "Charlie Solutions", "first_name": "Michael", "last_name": "Johnson", "position_title": "Manager", @@ -18,7 +18,7 @@ "fields": { "user_guid": "00000000-0000-0000-0000-000000000001", "business_guid": "efb76d57-88b7-4eb6-9f26-ec12b49c14c1", - "bceid_business_name": "Existing Operator 2 Legal Name", + "bceid_business_name": "Bravo Technologies - has parTNER operator", "first_name": "Samantha", "last_name": "Garcia", "position_title": "CEO", @@ -46,7 +46,7 @@ "fields": { "user_guid": "ba2ba62a121842e0942aab9e92ce8822", "business_guid": "efb76d57-88b7-4eb6-9f26-ec12b49c14c1", - "bceid_business_name": "Existing Operator 2 Legal Name", + "bceid_business_name": "Bravo Technologies - has parTNER operator", "first_name": "bc-cas-dev", "last_name": "Industry User", "position_title": "Code Monkey", @@ -60,7 +60,7 @@ "fields": { "user_guid": "279c80cf57814c28872740a133d17c0d", "business_guid": "efb76d57-88b7-4eb6-9f26-ec12b49c14c1", - "bceid_business_name": "Example Business", + "bceid_business_name": "Bravo Technologies - has parTNER operator", "first_name": "bc-cas-dev-secondary", "last_name": "Industry User", "position_title": "Code Monkey", @@ -74,7 +74,7 @@ "fields": { "user_guid": "00000000-0000-0000-0000-000000000002", "business_guid": "efb76d57-88b7-4eb6-9f26-ec12b49c14c1", - "bceid_business_name": "New Operator 5 Legal Name", + "bceid_business_name": "Echo Systems", "first_name": "Jack", "last_name": "Sparrow", "position_title": "Captain", @@ -88,7 +88,7 @@ "fields": { "user_guid": "00000000-0000-0000-0000-000000000003", "business_guid": "efb76d57-88b7-4eb6-9f26-ec12b49c14c1", - "bceid_business_name": "Example Business", + "bceid_business_name": "Golf Solutions", "first_name": "User", "last_name": "3", "position_title": "Code Monkey", @@ -102,7 +102,7 @@ "fields": { "user_guid": "00000000-0000-0000-0000-000000000004", "business_guid": "efb76d57-88b7-4eb6-9f26-ec12b49c14c1", - "bceid_business_name": "Example Business", + "bceid_business_name": "Alpha Enterprises", "first_name": "User", "last_name": "4", "position_title": "Code Monkey", @@ -116,7 +116,7 @@ "fields": { "user_guid": "00000000-0000-0000-0000-000000000005", "business_guid": "efb76d57-88b7-4eb6-9f26-ec12b49c14c1", - "bceid_business_name": "Example Business", + "bceid_business_name": "Bravo Technologies - has parTNER operator", "first_name": "User", "last_name": "5", "position_title": "Code Monkey", @@ -130,7 +130,7 @@ "fields": { "user_guid": "00000000-0000-0000-0000-000000000006", "business_guid": "efb76d57-88b7-4eb6-9f26-ec12b49c14c1", - "bceid_business_name": "Example Business", + "bceid_business_name": "India Innovations", "first_name": "User", "last_name": "6", "position_title": "Code Monkey", @@ -144,7 +144,7 @@ "fields": { "user_guid": "00000000-0000-0000-0000-000000000007", "business_guid": "efb76d57-88b7-4eb6-9f26-ec12b49c14c1", - "bceid_business_name": "Example Business", + "bceid_business_name": "Foxtrot Enterprises - has parENT operator", "first_name": "User", "last_name": "7", "position_title": "Code Monkey", @@ -158,7 +158,7 @@ "fields": { "user_guid": "00000000-0000-0000-0000-000000000008", "business_guid": "efb76d57-88b7-4eb6-9f26-ec12b49c14c1", - "bceid_business_name": "Example Business", + "bceid_business_name": "Hotel Ventures", "first_name": "User", "last_name": "8", "position_title": "Code Monkey", @@ -172,7 +172,7 @@ "fields": { "user_guid": "00000000-0000-0000-0000-000000000009", "business_guid": "efb76d57-88b7-4eb6-9f26-ec12b49c14c1", - "bceid_business_name": "Example Business", + "bceid_business_name": "Alpha Enterprises", "first_name": "User", "last_name": "9", "position_title": "Code Monkey", @@ -186,7 +186,7 @@ "fields": { "user_guid": "00000000-0000-0000-0000-000000000010", "business_guid": "efb76d57-88b7-4eb6-9f26-ec12b49c14c1", - "bceid_business_name": "Example Business", + "bceid_business_name": "Bravo Technologies - has parTNER operator", "first_name": "User", "last_name": "10", "position_title": "Code Monkey", @@ -200,7 +200,7 @@ "fields": { "user_guid": "00000000-0000-0000-0000-000000000011", "business_guid": "efb76d57-88b7-4eb6-9f26-ec12b49c14c1", - "bceid_business_name": "Example Business", + "bceid_business_name": "Juliet Enterprises", "first_name": "User", "last_name": "11", "position_title": "Code Monkey", @@ -214,7 +214,7 @@ "fields": { "user_guid": "00000000-0000-0000-0000-000000000012", "business_guid": "efb76d57-88b7-4eb6-9f26-ec12b49c14c1", - "bceid_business_name": "Example Business", + "bceid_business_name": "Kilo Logistics", "first_name": "User", "last_name": "12", "position_title": "Code Monkey", @@ -228,7 +228,7 @@ "fields": { "user_guid": "00000000-0000-0000-0000-000000000013", "business_guid": "efb76d57-88b7-4eb6-9f26-ec12b49c14c1", - "bceid_business_name": "Example Business", + "bceid_business_name": "Lima Enterprises", "first_name": "User", "last_name": "10", "position_title": "Code Monkey", @@ -242,7 +242,7 @@ "fields": { "user_guid": "00000000-0000-0000-0000-000000000014", "business_guid": "efb76d57-88b7-4eb6-9f26-ec12b49c14c1", - "bceid_business_name": "Example Business", + "bceid_business_name": "Foxtrot Enterprises - has parENT operator", "first_name": "User", "last_name": "14", "position_title": "Code Monkey", @@ -256,7 +256,7 @@ "fields": { "user_guid": "00000000-0000-0000-0000-000000000015", "business_guid": "efb76d57-88b7-4eb6-9f26-ec12b49c14c1", - "bceid_business_name": "Example Business", + "bceid_business_name": "Foxtrot Enterprises - has parENT operator", "first_name": "User", "last_name": "15", "position_title": "Code Monkey", @@ -270,7 +270,7 @@ "fields": { "user_guid": "00000000-0000-0000-0000-000000000016", "business_guid": "efb76d57-88b7-4eb6-9f26-ec12b49c14c1", - "bceid_business_name": "Example Business", + "bceid_business_name": "Alpha Enterprises", "first_name": "User", "last_name": "16", "position_title": "Code Monkey", @@ -284,7 +284,7 @@ "fields": { "user_guid": "00000000-0000-0000-0000-000000000017", "business_guid": "efb76d57-88b7-4eb6-9f26-ec12b49c14c1", - "bceid_business_name": "Example Business", + "bceid_business_name": "Bravo Technologies - has parTNER operator", "first_name": "User", "last_name": "17", "position_title": "Code Monkey", @@ -298,7 +298,7 @@ "fields": { "user_guid": "00000000-0000-0000-0000-000000000018", "business_guid": "efb76d57-88b7-4eb6-9f26-ec12b49c14c1", - "bceid_business_name": "Example Business", + "bceid_business_name": "Mike Ventures", "first_name": "User", "last_name": "18", "position_title": "Code Monkey", @@ -312,7 +312,7 @@ "fields": { "user_guid": "00000000-0000-0000-0000-000000000019", "business_guid": "efb76d57-88b7-4eb6-9f26-ec12b49c14c1", - "bceid_business_name": "Example Business", + "bceid_business_name": "Bravo Technologies - has parTNER operator", "first_name": "User", "last_name": "19", "position_title": "Code Monkey", @@ -326,7 +326,7 @@ "fields": { "user_guid": "00000000-0000-0000-0000-000000000020", "business_guid": "efb76d57-88b7-4eb6-9f26-ec12b49c14c1", - "bceid_business_name": "Example Business", + "bceid_business_name": "Hotel Ventures", "first_name": "User", "last_name": "20", "position_title": "Code Monkey", @@ -340,7 +340,7 @@ "fields": { "user_guid": "00000000-0000-0000-0000-000000000021", "business_guid": "efb76d57-88b7-4eb6-9f26-ec12b49c14c1", - "bceid_business_name": "Example Business", + "bceid_business_name": "Foxtrot Enterprises - has parENT operator", "first_name": "User", "last_name": "21", "position_title": "Code Monkey", @@ -354,7 +354,7 @@ "fields": { "user_guid": "00000000-0000-0000-0000-000000000022", "business_guid": "efb76d57-88b7-4eb6-9f26-ec12b49c14c1", - "bceid_business_name": "Example Business", + "bceid_business_name": "Alpha Enterprises", "first_name": "User", "last_name": "22", "position_title": "Code Monkey", @@ -368,7 +368,7 @@ "fields": { "user_guid": "00000000-0000-0000-0000-000000000023", "business_guid": "efb76d57-88b7-4eb6-9f26-ec12b49c14c1", - "bceid_business_name": "Example Business", + "bceid_business_name": "Bravo Technologies - has parTNER operator", "first_name": "User", "last_name": "23", "position_title": "Code Monkey", @@ -382,7 +382,7 @@ "fields": { "user_guid": "00000000-0000-0000-0000-000000000024", "business_guid": "efb76d57-88b7-4eb6-9f26-ec12b49c14c1", - "bceid_business_name": "Example Business", + "bceid_business_name": "Foxtrot Enterprises - has parENT operator", "first_name": "User", "last_name": "24", "position_title": "Code Monkey", @@ -396,7 +396,7 @@ "fields": { "user_guid": "00000000-0000-0000-0000-000000000025", "business_guid": "b3e3e3e3-88b7-4eb6-9f26-ec12b49c14c1", - "bceid_business_name": "Example Business", + "bceid_business_name": "Golf Solutions", "first_name": "User 25", "last_name": "25", "position_title": "Code Monkey", @@ -410,7 +410,7 @@ "fields": { "user_guid": "00000000-0000-0000-0000-000000000026", "business_guid": "b6e6e6e6-88b7-4eb6-9f26-ec12b49c14c1", - "bceid_business_name": "Example Business", + "bceid_business_name": "Oscar Enterprises", "first_name": "User 26", "last_name": "26", "position_title": "Code Monkey", @@ -460,5 +460,33 @@ "phone_number": "+16044015432", "app_role": "cas_analyst" } + }, + { + "model": "registration.user", + "fields": { + "user_guid": "00000000-0000-0000-0000-000000000029", + "business_guid": "efb76d57-88b7-4eb6-9f26-ec12b49c14c1", + "bceid_business_name": "Dog SFO - Draft", + "first_name": "User 29", + "last_name": "Industry User", + "position_title": "Code Monkey", + "email": "email@email.com", + "phone_number": "+16044015432", + "app_role": "industry_user" + } + }, + { + "model": "registration.user", + "fields": { + "user_guid": "00000000-0000-0000-0000-000000000030", + "business_guid": "efb76d57-88b7-4eb6-9f26-ec12b49c14c1", + "bceid_business_name": "Narwhal SFO - Draft", + "first_name": "User 30", + "last_name": "Industry User", + "position_title": "Code Monkey", + "email": "email@email.com", + "phone_number": "+16044015432", + "app_role": "industry_user" + } } ] diff --git a/bc_obps/registration/fixtures/mock/user_operator.json b/bc_obps/registration/fixtures/mock/user_operator.json index 6ddf11a83e..e79119180a 100644 --- a/bc_obps/registration/fixtures/mock/user_operator.json +++ b/bc_obps/registration/fixtures/mock/user_operator.json @@ -40,8 +40,8 @@ "fields": { "user": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "operator": "438eff6c-d2e7-40ab-8220-29d3a86ef314", - "role": "pending", - "status": "Pending", + "role": "admin", + "status": "Approved", "verified_at": null, "verified_by": null, "user_friendly_id": 4 @@ -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,11 +340,35 @@ "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 } + }, + { + "model": "registration.useroperator", + "fields": { + "user": "00000000-0000-0000-0000-000000000029", + "operator": "7e8b72dc-4196-427f-a553-7879748139e1", + "role": "admin", + "status": "Approved", + "verified_at": "2024-02-26 06:24:57.293242-08", + "verified_by": "58f255ed-8d46-44ee-b2fe-9f8d3d92c684", + "user_friendly_id": 30 + } + }, + { + "model": "registration.useroperator", + "fields": { + "user": "00000000-0000-0000-0000-000000000030", + "operator": "5c847c75-3b17-414c-97f8-88ba81cb3821", + "role": "admin", + "status": "Approved", + "verified_at": "2024-02-26 06:24:57.293242-08", + "verified_by": "58f255ed-8d46-44ee-b2fe-9f8d3d92c684", + "user_friendly_id": 31 + } } ] diff --git a/bc_obps/registration/tests/models/test_operation.py b/bc_obps/registration/tests/models/test_operation.py index 5f842fa1b6..86c2c15913 100644 --- a/bc_obps/registration/tests/models/test_operation.py +++ b/bc_obps/registration/tests/models/test_operation.py @@ -106,7 +106,7 @@ def setUpTestData(cls): ] def test_unique_boro_id_per_operation(self): - boro_id_instance = baker.make(BcObpsRegulatedOperation, id='23-0001') + boro_id_instance = baker.make(BcObpsRegulatedOperation, id='22-0001') operation_instance: Operation = operation_baker() operation_instance.bc_obps_regulated_operation = boro_id_instance operation_instance.save(update_fields=['bc_obps_regulated_operation']) @@ -122,7 +122,7 @@ def test_unique_boro_id_per_operation(self): ) def test_generate_unique_boro_id_existing_id(self): - existing_id = baker.make(BcObpsRegulatedOperation, id='23-0001') # Example existing ID for the current year + existing_id = baker.make(BcObpsRegulatedOperation, id='22-0001') # Example existing ID for the current year self.test_object.bc_obps_regulated_operation = existing_id self.test_object.generate_unique_boro_id() self.assertEqual(