aws-samples / pcluster-manager

Manage AWS ParallelCluster through an easy to use web interface
https://pcluster.cloud
Apache License 2.0
65 stars 27 forks source link

Show opt-in region in topbar dropdown only if PCM is deployed in it #454

Closed tmscarla closed 1 year ago

tmscarla commented 1 year ago

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?

  1. Opted-in eu-south-1 region in my personal account where PCM is deployed
  2. Verified that eu-south-1 region is displayed at the top of the regions list

References

Screenshot 2023-01-03 at 12 32 32

PR Quality Checklist

In 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.