From 1ae12c6043850ed046314dcedab33ff21c313a7a Mon Sep 17 00:00:00 2001 From: fviduya Date: Fri, 27 Dec 2024 11:53:58 -0700 Subject: [PATCH] chore: add facilities for operations --- .../fixtures/mock/bc_greenhouse_gas_id.json | 133 +++++++++ .../registration/fixtures/mock/facility.json | 266 ++++++++++++++++++ ...acility_designated_operation_timeline.json | 180 ++++++++++++ .../registration/fixtures/mock/operation.json | 2 +- 4 files changed, 580 insertions(+), 1 deletion(-) 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/facility.json b/bc_obps/registration/fixtures/mock/facility.json index 43202c8b01..bbd5a5fc35 100644 --- a/bc_obps/registration/fixtures/mock/facility.json +++ b/bc_obps/registration/fixtures/mock/facility.json @@ -334,5 +334,271 @@ "latitude_of_largest_emissions": 43.5, "longitude_of_largest_emissions": -123.5 } + }, + { + "model": "registration.facility", + "pk": "67fd8288-422b-43d3-a9b1-e4ddc54e2139", + "fields": { + "created_by": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "created_at": "2024-06-05T23:18:07.664Z", + "name": "Facility 25", + "type": "Single Facility", + "swrs_facility_id": 1025, + "bcghg_id": "13219990028", + "latitude_of_largest_emissions": 43.5, + "longitude_of_largest_emissions": -123.5 + } + }, + { + "model": "registration.facility", + "pk": "9f7b0848-021e-4d08-9852-10524c4e5456", + "fields": { + "created_by": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "created_at": "2024-06-05T23:18:07.664Z", + "name": "Facility 26", + "type": "Single Facility", + "swrs_facility_id": 1026, + "bcghg_id": "13219990029", + "latitude_of_largest_emissions": 43.5, + "longitude_of_largest_emissions": -123.5 + } + }, + { + "model": "registration.facility", + "pk": "f4eb89dd-e081-4576-8663-b789c4a20478", + "fields": { + "created_by": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "created_at": "2024-06-05T23:18:07.664Z", + "name": "Facility 27", + "type": "Single Facility", + "swrs_facility_id": 1027, + "bcghg_id": "13219990030", + "latitude_of_largest_emissions": 43.5, + "longitude_of_largest_emissions": -123.5 + } + }, + { + "model": "registration.facility", + "pk": "6d564423-abfe-4579-ba92-2c6c71c37bb9", + "fields": { + "created_by": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "created_at": "2024-06-05T23:18:07.664Z", + "name": "Facility 28", + "type": "Single Facility", + "swrs_facility_id": 1028, + "bcghg_id": "13219990031", + "latitude_of_largest_emissions": 43.5, + "longitude_of_largest_emissions": -123.5 + } + }, + { + "model": "registration.facility", + "pk": "f466e6fc-f338-4cf7-89b0-0211bd2be8b7", + "fields": { + "created_by": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "created_at": "2024-06-05T23:18:07.664Z", + "name": "Facility 29", + "type": "Single Facility", + "swrs_facility_id": 1029, + "bcghg_id": "13219990032", + "latitude_of_largest_emissions": 43.5, + "longitude_of_largest_emissions": -123.5 + } + }, + { + "model": "registration.facility", + "pk": "f2461804-f38a-4fcc-8586-7ee6eaefa830", + "fields": { + "created_by": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "created_at": "2024-06-05T23:18:07.664Z", + "name": "Facility 30", + "type": "Single Facility", + "swrs_facility_id": 1030, + "bcghg_id": "13219990033", + "latitude_of_largest_emissions": 43.5, + "longitude_of_largest_emissions": -123.5 + } + }, + { + "model": "registration.facility", + "pk": "fab6a6a7-3c9b-426f-88fb-a9c06474fe51", + "fields": { + "created_by": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "created_at": "2024-06-05T23:18:07.664Z", + "name": "Facility 31", + "type": "Single Facility", + "swrs_facility_id": 1031, + "bcghg_id": "13219990034", + "latitude_of_largest_emissions": 43.5, + "longitude_of_largest_emissions": -123.5 + } + }, + { + "model": "registration.facility", + "pk": "80db5b3a-b06b-4c06-b257-edaa4e873160", + "fields": { + "created_by": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "created_at": "2024-06-05T23:18:07.664Z", + "type": "Single Facility", + "name": "Facility 32", + "swrs_facility_id": 1032, + "bcghg_id": "13219990035", + "latitude_of_largest_emissions": 43.5, + "longitude_of_largest_emissions": -123.5 + } + }, + { + "model": "registration.facility", + "pk": "8d0777dd-b691-4079-9253-fca63df79300", + "fields": { + "created_by": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "created_at": "2024-06-05T23:18:07.664Z", + "name": "Facility 33", + "type": "Single Facility", + "swrs_facility_id": 1033, + "bcghg_id": "13219990036", + "latitude_of_largest_emissions": 43.5, + "longitude_of_largest_emissions": -123.5 + } + }, + { + "model": "registration.facility", + "pk": "e5ade67f-f9ce-496c-b0ad-b8edcd7ecd08", + "fields": { + "created_by": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "created_at": "2024-06-05T23:18:07.664Z", + "name": "Facility 34", + "type": "Single Facility", + "swrs_facility_id": 1034, + "bcghg_id": "13219990037", + "latitude_of_largest_emissions": 43.5, + "longitude_of_largest_emissions": -123.5 + } + }, + { + "model": "registration.facility", + "pk": "5ee7a6b1-e82a-4a6d-90d1-9a8bbf2017a8", + "fields": { + "created_by": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "created_at": "2024-06-05T23:18:07.664Z", + "name": "Facility 35", + "type": "Single Facility", + "swrs_facility_id": 1035, + "bcghg_id": "13219990038", + "latitude_of_largest_emissions": 43.5, + "longitude_of_largest_emissions": -123.5 + } + }, + { + "model": "registration.facility", + "pk": "d844683d-e894-4dfe-9d2d-49944ec86005", + "fields": { + "created_by": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "created_at": "2024-06-05T23:18:07.664Z", + "name": "Facility 36", + "type": "Single Facility", + "swrs_facility_id": 1036, + "bcghg_id": "13219990039", + "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, + "bcghg_id": "13219990040", + "latitude_of_largest_emissions": 43.5, + "longitude_of_largest_emissions": -123.5 + } + }, + { + "model": "registration.facility", + "pk": "d477f3d9-2917-4f36-b5ae-166d47dc8172", + "fields": { + "created_by": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "created_at": "2024-06-05T23:18:07.664Z", + "name": "Facility 38", + "type": "Single Facility", + "swrs_facility_id": 1038, + "bcghg_id": "13219990041", + "latitude_of_largest_emissions": 43.5, + "longitude_of_largest_emissions": -123.5 + } + }, + { + "model": "registration.facility", + "pk": "80ccea58-1920-46ea-8260-23bfe9b4fef0", + "fields": { + "created_by": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "created_at": "2024-06-05T23:18:07.664Z", + "name": "Facility 39", + "type": "Single Facility", + "swrs_facility_id": 1039, + "bcghg_id": "13219990042", + "latitude_of_largest_emissions": 43.5, + "longitude_of_largest_emissions": -123.5 + } + }, + { + "model": "registration.facility", + "pk": "b66d0364-ad1d-42f4-93d9-82bf185c4304", + "fields": { + "created_by": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "created_at": "2024-06-05T23:18:07.664Z", + "name": "Facility 40", + "type": "Single Facility", + "swrs_facility_id": 1040, + "bcghg_id": "13219990043", + "latitude_of_largest_emissions": 43.5, + "longitude_of_largest_emissions": -123.5 + } + }, + { + "model": "registration.facility", + "pk": "fdd723fe-88f5-46fb-af50-c19f1407e46d", + "fields": { + "created_by": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "created_at": "2024-06-05T23:18:07.664Z", + "name": "Facility 41", + "type": "Single Facility", + "swrs_facility_id": 1041, + "bcghg_id": "13219990044", + "latitude_of_largest_emissions": 43.5, + "longitude_of_largest_emissions": -123.5 + } + }, + { + "model": "registration.facility", + "pk": "a4ffa43d-3f47-4f0f-a423-fde5d91e9d87", + "fields": { + "created_by": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "created_at": "2024-06-05T23:18:07.664Z", + "name": "Facility 42", + "type": "Single Facility", + "swrs_facility_id": 1042, + "bcghg_id": "13219990045", + "latitude_of_largest_emissions": 43.5, + "longitude_of_largest_emissions": -123.5 + } + }, + { + "model": "registration.facility", + "pk": "f6f58bf4-2dd1-4669-b432-50281c6fdff6", + "fields": { + "created_by": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "created_at": "2024-06-05T23:18:07.664Z", + "name": "Facility 43", + "type": "Single Facility", + "swrs_facility_id": 1043, + "bcghg_id": "13219990046", + "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..178ec85e60 100644 --- a/bc_obps/registration/fixtures/mock/facility_designated_operation_timeline.json +++ b/bc_obps/registration/fixtures/mock/facility_designated_operation_timeline.json @@ -232,5 +232,185 @@ "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": "c0743c09-82fa-4186-91aa-4b5412e3415c", + "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-000000000001", + "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-000000000001", + "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-000000000001", + "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-000000000001", + "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-000000000001", + "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-000000000001", + "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-000000000001", + "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-000000000001", + "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-000000000001", + "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-000000000001", + "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 c968acc172..2a28289368 100644 --- a/bc_obps/registration/fixtures/mock/operation.json +++ b/bc_obps/registration/fixtures/mock/operation.json @@ -449,7 +449,7 @@ "point_of_contact": 1, "operator": "4242ea9d-b917-4129-93c2-db00b7451051", "documents": [], - "name": "Brown Operation", + "name": "Brown Operation -- no facility", "type": "Single Facility Operation", "naics_code": 21, "opt_in": false,