This update addresses an issue where duplicate time zone entries appeared in the dropdown menu on the Language & Region settings page of the Admin Dashboard. The service logic has been refactored to ensure that only unique time zones are retrieved and displayed in the dropdown.
Related Issue (Link to issue ticket)
This pull request resolves the issue related to duplicate time zone entries in
the dropdown, as tracked in issue #943
Motivation and Context
The change was necessary to eliminate confusion among users when selecting a time zone from the dropdown. Duplicates in the list could lead to errors or user frustration. By ensuring each time zone is listed only once, the user experience is improved, and potential errors are reduced.
How Has This Been Tested?
The changes were tested using Postman to verify the api/v1/regions/ endpoint returns only unique time zones without duplicates. The testing included querying the database to ensure that the list is comprehensive and accurate
Screenshots (if appropriate - Postman, etc):
Types of changes
[x] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
@joboy-dev This is just a fix, and perhaps there is no test for regions endpoints, the person didn't write it.
and you want me to write test for all these endpoints?
Description
This update addresses an issue where duplicate time zone entries appeared in the dropdown menu on the Language & Region settings page of the Admin Dashboard. The service logic has been refactored to ensure that only unique time zones are retrieved and displayed in the dropdown.
Related Issue (Link to issue ticket)
This pull request resolves the issue related to duplicate time zone entries in the dropdown, as tracked in issue #943
Motivation and Context
The change was necessary to eliminate confusion among users when selecting a time zone from the dropdown. Duplicates in the list could lead to errors or user frustration. By ensuring each time zone is listed only once, the user experience is improved, and potential errors are reduced.
How Has This Been Tested?
The changes were tested using Postman to verify the
api/v1/regions/
endpoint returns only unique time zones without duplicates. The testing included querying the database to ensure that the list is comprehensive and accurate
Screenshots (if appropriate - Postman, etc):
Types of changes
Checklist: