-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PF-691] Add Location column in Cloud Environments page #2442
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I ran the tests locally and everything passed. They will not pass here because a forked repo does not play well with how the CI expects to auth.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏼 with a nit.
Tested against dev
backend.
src/pages/Environments.js
Outdated
headerRenderer: () => 'Location', | ||
cellRenderer: ({ rowIndex }) => { | ||
const { runtimeConfig: { zone, region } } = filteredRuntimes[rowIndex] | ||
return zone ? zone : region |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit:
return zone ? zone : region | |
return zone || region |
looks a bit more readable to me.
In DataBiosphere/leonardo#1933, zone and region parameters were added to createRuntime so Leo can now create instances outside of us-central1. In #2441, the Terra UI will allow use those new parameters.
This PR will updates the cloud enviroments page to show you the region/zone your environments are in.
Tested with a GCE instance and Dataproc cluster on both the default location (us-central1) and non-default locations.



Discussion of UI changes related to locality have been happening in this doc, including comments from UI team.