aws / aws-parallelcluster-ui

Apache License 2.0
31 stars 18 forks source link

[Frontend] Avoid surfacing errors in the UI that are caused by failures in interacting with Cost Explorer, regardless the failure root cause. #267

Closed gmarciani closed 9 months ago

gmarciani commented 9 months ago

Avoid surfacing errors in the UI that are caused by failures in interacting with Cost Explorer, regardless the failure root cause.

Changes

  1. Replaced the error notification at the UI level with a console log
  2. Added unit tests to cover the scenario

How Has This Been Tested?

  1. Unit tests
  2. Manual test verifying that errors are not displayed in the UI when access to Cost Explorer is forbidden by a permissions boundary
  3. Manual test verifying that the cost monitoring feature behaves as expected in the UI when the permission boundary is removed and the access to Cost Explorer has recovered.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.