Repository navigation
fix(migrate): count users a continue only attached to apart from imports #609
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
base: main
Are you sure you want to change the base?
Changes from all commits
693723e
bdd4d12
b4e6dbf
71f86a8
f50f66d
c5feffb
901a3b1
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 |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "clerk": patch | ||
| --- | ||
|
|
||
| A continue of `clerk migrate import` no longer counts a user it only attached identifiers to as imported. Once every pending identifier has attached, its summary lists those users under "Finished attaching" and `--json` under `result.attached`, the line that opens the continue no longer counts them among the users left alone, and the progress bar counts the continue's users as finished rather than created. `clerk migrate` is still experimental and needs `CLERK_EXPERIMENTAL=migrate`. | ||
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -70,7 +70,8 @@ Every command follows these: | |||||||||||||
|
|
||||||||||||||
| A spinner takes the keyboard and exits 0 on Ctrl-C, so a script that deletes | ||||||||||||||
| the export once the import succeeds would delete it after an interrupted | ||||||||||||||
| one. Without a terminal, the counts are printed at each 10%. | ||||||||||||||
| one. Without a terminal, the counts are printed at each 10%. A continue with | ||||||||||||||
| identifiers left to attach counts its users as finished rather than created. | ||||||||||||||
|
Comment on lines
+73
to
+74
Contributor
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. [Nit] Without a terminal, this prints nothing by default: no TTY on stdout means agent mode, and Maybe this?
Suggested change
|
||||||||||||||
|
|
||||||||||||||
| ## Targeting and auth | ||||||||||||||
|
|
||||||||||||||
|
|
@@ -825,7 +826,9 @@ A continued run also finishes what the last one left open: | |||||||||||||
| all is it created. | ||||||||||||||
|
|
||||||||||||||
| - A user whose `created` line has `pending` identifiers gets just those | ||||||||||||||
| attaches. | ||||||||||||||
| attaches. The run imported it before, so once every identifier left to | ||||||||||||||
| attach has attached, the summary counts it under "Finished attaching" | ||||||||||||||
| (`result.attached` in `--json`), not "Imported" (`result.created`). | ||||||||||||||
|
|
||||||||||||||
| Every create sends the run's ID in the user's private metadata, as | ||||||||||||||
| `clerkMigrateRun`, merged with any private metadata the source carries. 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.
[Nit] "Once every pending identifier has attached" now also covers the opening line and the bar, and neither waits for attaches. Split the sentence?