Uploaded image for project: 'ui-organizations'
  1. ui-organizations
  2. UIORGS-155

Country codes are handled inconsistently in organization vs. contact addresses

    XMLWordPrintable

    Details

    • Template:
    • Sprint:
      ACQ Sprint 85
    • Story Points:
      1
    • Development Team:
      Thunderjet

      Description

      Several months ago I had a conversation with Dennis Bridges re: how countries are handled in organization record addresses. He stated that the lookup list for countries is based on the ISO 3166-1 alpha-3 standard. So I wrote my organizations extract script to supply the appropriate ISO 3166-1 alpha-3 for each country. In general, I found that the Organizations UI displayed the correct expanded form when supplied with the ISO 3166-1 alpha-3 code.

      However, today I discovered that the same is not true of the addresses in contact records. The 'country' part of the address section of the contact.json record takes the supplied value and handles it as a simple string and doesn't translate the code for display.

      The result is that if the code 'GBR' is supplied to the organizations-storage/organizations endpoint, the UI displays 'United Kingdom' as the country, but if the code 'GBR' is supplied to the organizations-storage/contacts endpoint, the UI displays 'GBR' as the country. Please see the attached examples of json as submitted to the endpoints and screen shots of the results.

      Also, when the organization is displayed in the 3-panel display in a search result, the GBR is not expanded to United Kingdom, even in the organization address.

        TestRail: Results

          Attachments

          1. contact_11430.docx
            78 kB
          2. contact_11430.json
            1 kB
          3. COuntry at the Contact details.png
            COuntry at the Contact details.png
            91 kB
          4. Country at the Detias pane.png
            Country at the Detias pane.png
            239 kB
          5. default language.png
            default language.png
            149 kB
          6. Screen Shot 2020-03-26 at 10.48.56 AM.png
            Screen Shot 2020-03-26 at 10.48.56 AM.png
            99 kB
          7. Screen Shot 2020-03-26 at 10.51.48 AM.png
            Screen Shot 2020-03-26 at 10.51.48 AM.png
            333 kB
          8. vendor_7120.docx
            78 kB
          9. vendor_7120.json
            0.8 kB

            Issue Links

              Activity

                People

                Assignee:
                dennisbridges Dennis Bridges
                Reporter:
                hismith Anne L. Highsmith
                Tester Assignee:
                Dennis Bridges Dennis Bridges
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases