Modify UI components to use locale settings from reference data

Description

Once and are Done, reference data will have APIs which return configurable system locale settings. The UI does have similar default settings, but should primarily use the ones from reference data and use the default settings as backup if the API does not return data.

Acceptance Criteria

  • Refactor currency/number related UI components to use currency settings from API, if necessary

  • Refactor date related UI components to use date settings from API, applying timezone in particular, so that when dates are shown in the UI, they are not based on the browser's timezone

  • If the API does not return certain settings, the UI components should use the corresponding defaults it has in the UI configuration

Activity

Show:
Joanna Szymańska
April 8, 2019, 8:43 AM

Could you tell me how I could test this ticket to check if API settings are being used? Maybe I should look at some specific endpoints?

Chongsun Ahn
April 8, 2019, 9:34 AM
Edited

basically you can test it by changing the uat settings config file to different values, then going to different parts of the ui, like requisition and cce, to see if the currency, number, date and time zone settings are showing up correctly. Hopefully this makes sense.

Joanna Szymańska
April 8, 2019, 9:42 AM

Yes, it makes sense I will do as you suggest. Thank you.

Chongsun Ahn
April 8, 2019, 11:33 AM

one more thing, if you are changing the time zone from UTC to something else, it needs to be in a format like Europe/Warsaw, or America/Los_Angeles or similar.

Joanna Szymańska
April 8, 2019, 6:35 PM

I checked the ticket according to the suggestions and moved to Done.

Done

Assignee

Chongsun Ahn

Reporter

Chongsun Ahn

Labels

Story Points

5

Time tracking

0m

Time remaining

0m

Epic Link

Sprint

None

Fix versions

Priority

Major