-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Web: Improve RDS flow 2 #45179
Web: Improve RDS flow 2 #45179
Conversation
The PR changelog entry failed validation: Changelog entry not found in the PR body. Please add a "no-changelog" label to the PR, or changelog lines starting with |
7694b5a
to
0380d1b
Compare
web/packages/teleport/src/Discover/Database/DeployService/AutoDeploy/AutoDeploy.tsx
Outdated
Show resolved
Hide resolved
web/packages/teleport/src/Discover/Database/CreateDatabase/const.ts
Outdated
Show resolved
Hide resolved
web/packages/teleport/src/Discover/Database/DeployService/AutoDeploy/AutoDeploy.tsx
Outdated
Show resolved
Hide resolved
web/packages/teleport/src/Discover/Database/DeployService/AutoDeploy/AutoDeploy.tsx
Outdated
Show resolved
Hide resolved
web/packages/teleport/src/Discover/Database/DeployService/AutoDeploy/AutoDeploy.tsx
Outdated
Show resolved
Hide resolved
web/packages/teleport/src/Discover/Database/DeployService/AutoDeploy/AutoDeploy.tsx
Outdated
Show resolved
Hide resolved
web/packages/teleport/src/Discover/Database/DeployService/AutoDeploy/AutoDeploy.tsx
Outdated
Show resolved
Hide resolved
web/packages/teleport/src/Discover/Database/DeployService/AutoDeploy/AutoDeploy.tsx
Outdated
Show resolved
Hide resolved
@@ -20,4 +20,4 @@ export const timeoutErrorMsg = | |||
'Teleport could not detect your new database in time. Please try again.'; | |||
|
|||
export const dbWithoutDbServerExistsErrorMsg = | |||
'already exists but there are no database servers for it'; | |||
'already exists but there are no Teleport agents proxying for it'; |
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.
'already exists but there are no Teleport agents proxying for it'; | |
'already exists but there are no Teleport agents proxying it'; |
b6a393d
to
ad6e13c
Compare
web/packages/teleport/src/Discover/Database/DeployService/AutoDeploy/AutoDeploy.tsx
Outdated
Show resolved
Hide resolved
export const AllowOverwrite = () => ( | ||
<CreateDatabaseDialog | ||
{...props} | ||
attempt={{ status: 'failed', statusText: dbWithoutDbServerExistsErrorMsg }} | ||
/> | ||
); |
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.
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.
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 think it'd be good to update the example then so that it's closer to the real thing.
web/packages/teleport/src/Discover/Database/CreateDatabase/CreateDatabaseDialog.tsx
Outdated
Show resolved
Hide resolved
web/packages/teleport/src/Discover/Database/CreateDatabase/CreateDatabaseDialog.tsx
Outdated
Show resolved
Hide resolved
web/packages/teleport/src/Discover/Database/CreateDatabase/CreateDatabaseDialog.tsx
Outdated
Show resolved
Hide resolved
web/packages/teleport/src/Discover/Database/CreateDatabase/CreateDatabaseDialog.tsx
Outdated
Show resolved
Hide resolved
web/packages/teleport/src/Discover/Database/DeployService/AutoDeploy/AutoDeploy.tsx
Show resolved
Hide resolved
web/packages/teleport/src/Discover/Database/DeployService/AutoDeploy/AutoDeploy.tsx
Show resolved
Hide resolved
f315cb5
to
518a22b
Compare
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.
Thanks for addressing that nit about SuccessContent
!
export const AllowOverwrite = () => ( | ||
<CreateDatabaseDialog | ||
{...props} | ||
attempt={{ status: 'failed', statusText: dbWithoutDbServerExistsErrorMsg }} | ||
/> | ||
); |
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 think it'd be good to update the example then so that it's closer to the real thing.
* Most likely cause of timeout is when we found a matching db_service | ||
* but no db_server heartbeats. Most likely cause is because db_service | ||
* has been stopped but is not removed from teleport yet (there is some | ||
* minutes delay on expiry) |
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.
What's missing for me from this comment is an explanation why we show a success message even though there was a timeout. The comment explains what's the most likely cause of a timeout, but as someone who doesn't know much about the problem matter here, I don't quite understand why the user is allowed to proceed anyway.
518a22b
to
897e29b
Compare
PTAL? @rudream 🙏 |
897e29b
to
500a5b3
Compare
* Don't default to auto discover * Allow redpeploy when auto deploying and improve pending deploy hints * Allow overwrite existing dbs and skip on heartbeat timeout during enrollment * Remove allowing custom labels * Emit rest of discovery config event
* Don't default to auto discover * Allow redpeploy when auto deploying and improve pending deploy hints * Allow overwrite existing dbs and skip on heartbeat timeout during enrollment * Remove allowing custom labels * Emit rest of discovery config event
* Web: Improve RDS enrollment flow (#44671) - user selects a vpc to see RDS's - restrict deploying service to user selected vpc - allow and require selecting subnets and security groups - refactor EnrollRdsDatabase.tsx into SingleEnrollment and AutoEnrollment - for self hosted, move configuring discovery config into own step - fixes a query bug where not all db servers were returning because possible duplicates were not accounted for (fixed by removing limit, default limit is 1k which should be plenty) * Web: Improve RDS flow 2 (#45179) * Don't default to auto discover * Allow redpeploy when auto deploying and improve pending deploy hints * Allow overwrite existing dbs and skip on heartbeat timeout during enrollment * Remove allowing custom labels * Emit rest of discovery config event * Remove blocking if db_service exists for a vpc Previously intended to determine if user already auto enrolled, but now that single and auto enrollment sets the same kind of labels for db_service, there is no distinction and can let user be blocked incorrectly.
resolves #44368
resolves #44366
🛑 requires #45180
no change log because it's an extension of #44671 (it'll be backported together)