-
-
Notifications
You must be signed in to change notification settings - Fork 296
feat(import): dedup dialog when importing duplicate connections #1462
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
Changes from all commits
8b645c5
a8eb010
ce4c536
1ada592
dbdb796
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -127,7 +127,7 @@ struct ImportFromAppPreviewStep: View { | |
| if preview.envelope.credentials != nil { | ||
| ConnectionExportService.restoreCredentials( | ||
| from: preview.envelope, | ||
| connectionIdMap: result.connectionIdMap | ||
| connectionIdMap: result.newConnectionIdMap | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When importing from another app with credentials and the user selects Replace for a duplicate, Useful? React with 👍 / 👎. |
||
| ) | ||
| } | ||
|
|
||
|
|
||
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.
For Redis connections the selected database is stored in
redisDatabase(and connection setup falls back to it whendatabaseis empty), but this new duplicate key only comparesdatabase. Importing a Redis connection for DB 1 when an otherwise identical DB 0 connection already exists will be marked as a duplicate, so choosing Replace can overwrite the wrong saved connection or the distinct DB is skipped by default.Useful? React with 👍 / 👎.