From cf795c0ead353342335dc160358fda1e0a2a8640 Mon Sep 17 00:00:00 2001 From: ryan-mchugh Date: Thu, 20 Feb 2025 18:02:48 +0000 Subject: [PATCH] B-22039 - remove lat & lon per locations enumerated in description. --- pkg/gen/adminapi/embedded_spec.go | 20 ------------------- .../adminmessages/transportation_office.go | 8 -------- pkg/handlers/adminapi/offices.go | 2 -- playwright/tests/admin/offices.spec.js | 2 +- src/pages/Admin/Offices/OfficeList.jsx | 2 -- swagger-def/admin.yaml | 8 -------- swagger/admin.yaml | 8 -------- 7 files changed, 1 insertion(+), 49 deletions(-) diff --git a/pkg/gen/adminapi/embedded_spec.go b/pkg/gen/adminapi/embedded_spec.go index 3433894752a..27a0e153ff4 100644 --- a/pkg/gen/adminapi/embedded_spec.go +++ b/pkg/gen/adminapi/embedded_spec.go @@ -3296,16 +3296,6 @@ func init() { "format": "uuid", "example": "c56a4180-65aa-42ec-a945-5fd21dec0538" }, - "latitude": { - "type": "number", - "format": "float", - "example": 29.382973 - }, - "longitude": { - "type": "number", - "format": "float", - "example": -98.62759 - }, "name": { "type": "string", "example": "Fort Bragg North Station" @@ -6988,16 +6978,6 @@ func init() { "format": "uuid", "example": "c56a4180-65aa-42ec-a945-5fd21dec0538" }, - "latitude": { - "type": "number", - "format": "float", - "example": 29.382973 - }, - "longitude": { - "type": "number", - "format": "float", - "example": -98.62759 - }, "name": { "type": "string", "example": "Fort Bragg North Station" diff --git a/pkg/gen/adminmessages/transportation_office.go b/pkg/gen/adminmessages/transportation_office.go index f291b011d51..4468ea5b772 100644 --- a/pkg/gen/adminmessages/transportation_office.go +++ b/pkg/gen/adminmessages/transportation_office.go @@ -41,14 +41,6 @@ type TransportationOffice struct { // Format: uuid ID *strfmt.UUID `json:"id"` - // latitude - // Example: 29.382973 - Latitude float32 `json:"latitude,omitempty"` - - // longitude - // Example: -98.62759 - Longitude float32 `json:"longitude,omitempty"` - // name // Example: Fort Bragg North Station // Required: true diff --git a/pkg/handlers/adminapi/offices.go b/pkg/handlers/adminapi/offices.go index 5a189d7348e..c5f2aff5609 100644 --- a/pkg/handlers/adminapi/offices.go +++ b/pkg/handlers/adminapi/offices.go @@ -22,8 +22,6 @@ func payloadForOfficeModel(o models.TransportationOffice) *adminmessages.Transpo Address: payloadForAddressModel(&o.Address), Gbloc: o.Gbloc, PhoneLines: payloadForPhoneLines(o.PhoneLines), - Latitude: o.Latitude, - Longitude: o.Longitude, } } diff --git a/playwright/tests/admin/offices.spec.js b/playwright/tests/admin/offices.spec.js index bf9d2745a8e..ceee23ed984 100644 --- a/playwright/tests/admin/offices.spec.js +++ b/playwright/tests/admin/offices.spec.js @@ -16,7 +16,7 @@ test.describe('Offices Page', () => { await expect(page.locator('header')).toContainText('Offices'); await expect(page.getByLabel('Search by Office Name')).toBeEditable(); - const columnLabels = ['Id', 'Name', 'Latitude', 'Longitude', 'Gbloc']; + const columnLabels = ['Id', 'Name', 'Gbloc']; await adminPage.expectRoleLabelsByText('columnheader', columnLabels); }); }); diff --git a/src/pages/Admin/Offices/OfficeList.jsx b/src/pages/Admin/Offices/OfficeList.jsx index 27a0df55625..50abfc385c4 100644 --- a/src/pages/Admin/Offices/OfficeList.jsx +++ b/src/pages/Admin/Offices/OfficeList.jsx @@ -16,8 +16,6 @@ const OfficeList = () => ( - - diff --git a/swagger-def/admin.yaml b/swagger-def/admin.yaml index ccbce27b6bb..f381b35b799 100644 --- a/swagger-def/admin.yaml +++ b/swagger-def/admin.yaml @@ -1047,14 +1047,6 @@ definitions: type: string pattern: "^[A-Z]{4}$" example: JENQ - latitude: - type: number - format: float - example: 29.382973 - longitude: - type: number - format: float - example: -98.62759 createdAt: type: string format: date-time diff --git a/swagger/admin.yaml b/swagger/admin.yaml index 5082f703079..aec58e45fe5 100644 --- a/swagger/admin.yaml +++ b/swagger/admin.yaml @@ -1054,14 +1054,6 @@ definitions: type: string pattern: ^[A-Z]{4}$ example: JENQ - latitude: - type: number - format: float - example: 29.382973 - longitude: - type: number - format: float - example: -98.62759 createdAt: type: string format: date-time