Details
Assignee
Dennis BridgesDennis BridgesReporter
Shelley DoljackShelley DoljackLabels
Priority
P4Story Points
3Development Team
ThunderjetRelease
Not ScheduledTestRail: Cases
Open TestRail: CasesTestRail: Runs
Open TestRail: Runs
Details
Details
Assignee
Dennis Bridges
Dennis BridgesReporter
Shelley Doljack
Shelley DoljackLabels
Priority
Story Points
3
Development Team
Thunderjet
Release
Not Scheduled
TestRail: Cases
Open TestRail: Cases
TestRail: Runs
Open TestRail: Runs
Created January 10, 2022 at 6:15 PM
Updated October 20, 2023 at 11:20 AM
Overview: json schemas for organizations addresses, emails, phone numbers, and urls contact information accept string type for categories but passing a string instead of UUID breaks FOLIO UI functionality for these fields.
Steps to Reproduce:
Log into any FOLIO environment using an API tester or curl command
POST to the /organizations/organizations endpoint some test data, such as:
{ "name": "Test", "code": "TEST", "exportToAccounting": false, "status": "Active", "aliases": [], "addresses": [{ "addressLine1": "address line 1", "city": "city", "stateRegion": "CA", "zipCode": "94305", "country": "USA", "isPrimary": true, "categories": [ "Customer Service" ] }], "phoneNumbers": [{ "phoneNumber": "650-123-4567", "categories": [ "Customer Service" ], "type": "Office", "isPrimary": true }], "emails": [{ "value": "claims@vendor.com", "isPrimary": true, "categories": [ "Claims" ] }], "urls": [], "contacts": [], "agreements": [], "erpCode": "testaccountingcode" }
Go to the FOLIO UI and login
Select the organizations app.
Search for "test" organization.
Click on it to and select edit.
Expand "Contact information" section and review the Categories section for each address, phone number, and email sections.
Expected Results: Expect to see organization categories.
Actual Results: See blank boxes.
Additional Information: Will require a migration script to correct existing values
URL: Looks like the json schemas at https://github.com/folio-org/acq-models/tree/master/mod-orgs/schemas for address, email, url, phone number need to set UUID instead of string for categories, such as at https://github.com/folio-org/acq-models/blob/6c60ecf2e6bbdf71af6a7caabe5ad8b489cbf75b/mod-orgs/schemas/address.json#L38-L45
Interested parties: