Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate locales in drop down list #895

Closed
bmamlin opened this issue Aug 6, 2021 · 2 comments
Closed

Duplicate locales in drop down list #895

bmamlin opened this issue Aug 6, 2021 · 2 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@bmamlin
Copy link

bmamlin commented Aug 6, 2021

Currently, when editing concepts on production, the Locale field shows duplicates in its choice list:

image

Based on the uuids in the API call behind it, there appears to be duplicate entries in the Locales:

$ http -b \
  'https://api.openconceptlab.org/sources/Locales/concepts/?limit=25&q=en&is_latest=true' \
  | jq '[.[] | select(.display_name == "Yao")]'
[
  {
    "uuid": "1074",
    "id": "yao",
    "external_id": null,
    "concept_class": "Locale",
    "datatype": "N/A",
    "url": "/orgs/OCL/sources/Locales/concepts/yao/",
    "retired": false,
    "source": "Locales",
    "owner": "OCL",
    "owner_type": "Organization",
    "owner_url": "/orgs/OCL/",
    "display_name": "Yao",
    "display_locale": "en",
    "version": "1074",
    "update_comment": null,
    "locale": null,
    "version_created_by": "ocladmin",
    "version_created_on": "2021-01-12T13:35:06.883398Z",
    "mappings": [],
    "is_latest_version": true,
    "versions_url": "/orgs/OCL/sources/Locales/concepts/yao/versions/",
    "version_url": "/orgs/OCL/sources/Locales/concepts/yao/1074/"
  },
  {
    "uuid": "1073",
    "id": "yao",
    "external_id": null,
    "concept_class": "Locale",
    "datatype": "N/A",
    "url": "/orgs/OCL/sources/Locales/concepts/yao/",
    "retired": false,
    "source": "Locales",
    "owner": "OCL",
    "owner_type": "Organization",
    "owner_url": "/orgs/OCL/",
    "display_name": "Yao",
    "display_locale": "en",
    "version": "1073",
    "update_comment": null,
    "locale": null,
    "version_created_by": "ocladmin",
    "version_created_on": "2021-01-12T13:35:06.873606Z",
    "mappings": [],
    "is_latest_version": true,
    "versions_url": "/orgs/OCL/sources/Locales/concepts/yao/versions/",
    "version_url": "/orgs/OCL/sources/Locales/concepts/yao/1073/"
  }
]
@bmamlin bmamlin added the bug Something isn't working label Aug 6, 2021
snyaggarwal added a commit to OpenConceptLab/oclapi2 that referenced this issue Aug 9, 2021
@snyaggarwal
Copy link
Contributor

@bmamlin this is fixed

@paynejd paynejd added this to the Sprint 16 milestone Aug 13, 2021
@jamlung-ri
Copy link
Member

Based on this query, things seem to be working well. Closing this out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants