Currently PCM displays the full list of regions supported by PC in its topbar dropdown menu. If an opt-in region is selected, and the account where PCM is deployed has not opted-in yet for the selected region, a series of errors is thrown on the frontend.
This PR aims to prevent these errors from being thrown by showing opt-in regions in topbar dropdown only if PCM is deployed in it. In the attached example PCM has been deployed in an opt-in region (Milan, eu-south-1) which is shown at the top of the list.
Changelog entry
Prevent frontend errors by showing opt-in regions in topbar dropdown only if PCM is deployed in it
How Has This Been Tested?
Opted-in eu-south-1 region in my personal account where PCM is deployed
Verified that eu-south-1 region is displayed at the top of the regions list
Description
Currently PCM displays the full list of regions supported by PC in its topbar dropdown menu. If an opt-in region is selected, and the account where PCM is deployed has not opted-in yet for the selected region, a series of errors is thrown on the frontend.
This PR aims to prevent these errors from being thrown by showing opt-in regions in topbar dropdown only if PCM is deployed in it. In the attached example PCM has been deployed in an opt-in region (Milan, eu-south-1) which is shown at the top of the list.
Changelog entry
How Has This Been Tested?
eu-south-1
region in my personal account where PCM is deployedeu-south-1
region is displayed at the top of the regions listReferences
PR Quality Checklist
i18n
solution instead (see here)npm run build
builds without any errorIn order to increase the likelihood of your contribution being accepted, please make sure you have read both the Contributing Guidelines and the Project Guidelines
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.