-
Notifications
You must be signed in to change notification settings - Fork 526
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generalize UI events for cataloging tasks (#2369)
* generalize ui events for cataloging tasks Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * moderate review comments Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * incorporate review comments Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * rename cataloger task progress object Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * migrate cataloger task fn to bus helper Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> --------- Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
- Loading branch information
Showing
28 changed files
with
427 additions
and
807 deletions.
There are no files selected for viewing
16 changes: 12 additions & 4 deletions
16
cmd/syft/cli/ui/__snapshots__/handle_cataloger_task_test.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,24 @@ | ||
|
||
[TestHandler_handleCatalogerTaskStarted/cataloging_task_in_progress - 1] | ||
some task title [some value] | ||
⠙ Cataloging contents | ||
⠙ some task title ━━━━━━━━━━━━━━━━━━━━ [some stage] | ||
--- | ||
|
||
[TestHandler_handleCatalogerTaskStarted/cataloging_sub_task_in_progress - 1] | ||
└── some task title [some value] | ||
⠙ Cataloging contents | ||
└── ⠙ some task title ━━━━━━━━━━━━━━━━━━━━ [some stage] | ||
--- | ||
|
||
[TestHandler_handleCatalogerTaskStarted/cataloging_sub_task_complete - 1] | ||
✔ └── some task done [some value] | ||
⠙ Cataloging contents | ||
└── ✔ some task done [some stage] | ||
--- | ||
|
||
[TestHandler_handleCatalogerTaskStarted/cataloging_sub_task_complete_with_removal - 1] | ||
[TestHandler_handleCatalogerTaskStarted/cataloging_sub_task_complete_--_hide_stage - 1] | ||
⠙ Cataloging contents | ||
└── ✔ some task done | ||
--- | ||
|
||
[TestHandler_handleCatalogerTaskStarted/cataloging_sub_task_complete_with_removal - 1] | ||
⠙ Cataloging contents | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.