-
Notifications
You must be signed in to change notification settings - Fork 790
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
Use Account ids #852
Use Account ids #852
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.
I like this idea!
I have one question in the comments that would help me understand how we want to treat these IDs.
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.
I like this change a lot 🔥
@@ -122,8 +122,6 @@ export interface ManagedServerHost { | |||
getRegionId(): RegionId; | |||
// Deletes the server - cannot be undone. | |||
delete(): Promise<void>; | |||
// Returns the virtual host ID. | |||
getHostId(): string; | |||
} |
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.
Can we update the Server#getId method to mention that this ID is unique across clouds?
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.
Done
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.
Another look?
@@ -122,8 +122,6 @@ export interface ManagedServerHost { | |||
getRegionId(): RegionId; | |||
// Deletes the server - cannot be undone. | |||
delete(): Promise<void>; | |||
// Returns the virtual host ID. | |||
getHostId(): string; | |||
} |
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.
Done
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.
Oh, I see you approved. I'll submit once the CI is done.
Thanks for this refactor!! I like where this is atm, but if you want to explore it a bit more, let me know and I'll take another look. |
This PR switches from using isManaged to using account ids.
This should help with the follow up to #848, since you will need to ensure unique server ids.
Things to note:
This approach may simplify your GCP UI PR by allowing the accounts to be handled the same way.
For example, we could fire a "AccountSignOutRequested' with an accountId, which can pull the account and call account.disconnect(). You'd need an Account interface in that case.
Perhaps the app-root dom tree can be done by two nested dom-repeat.