-
Notifications
You must be signed in to change notification settings - Fork 577
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
Generalize UI events for cataloging tasks #2369
Conversation
Signed-off-by: Alex Goodman <[email protected]>
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.
Small nits, but if changes not needed or can be left alone feel free to auto merge =)
Default: "Downloading go mod", | ||
}, | ||
HideOnSuccess: true, | ||
ParentID: "TODO", // TODO: setting this to non-empty will cause the progress bar to be nested, but this needs to be more specific |
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: Is this TODO for solving in this PR?
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.
yeah, I need to remove the value, but this will be taken care of fully in #1383 . The impact is that this will be another sibling task and not nested under the "cataloging packages" task.
Signed-off-by: Alex Goodman <[email protected]>
Signed-off-by: Alex Goodman <[email protected]>
Signed-off-by: Alex Goodman <[email protected]>
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.
👍
Signed-off-by: Alex Goodman <[email protected]>
* main: (40 commits) chore(deps): bump anchore/sbom-action from 0.15.0 to 0.15.1 (anchore#2392) Retrieve remote licenses using pom.properties when there is no pom.xml (anchore#2315) fix(java): improve identification for org.apache.tapestry artifacts (anchore#2384) fix(java): improve identification for io.ratpack artifacts (anchore#2379) fix(java): improve identification for org.apache.cassandra artifacts (anchore#2386) fix(java): improve identification for org.neo4j.procedure artifacts (anchore#2388) fix: bump fangs for ptr summarize fix (anchore#2387) fix(java): improve identification for org.elasticsearch artifacts (anchore#2383) fix(java): improve identification for org.apache.geode artifacts (anchore#2382) fix(java): improve identification for org.apache.tomcat.embed artifacts (anchore#2381) fix(java): improve identification for io.projectreactor.netty artifacts (anchore#2378) fix(java): improve identification for org.eclipse.platform artifacts (anchore#2349) Generalize UI events for cataloging tasks (anchore#2369) chore(deps): update tools to latest versions (anchore#2376) chore(deps): bump github.com/google/go-containerregistry (anchore#2377) chore: fix tests failing due to Mac Rosetta cache (anchore#2374) fix: improve dotnet portable executable identification (anchore#2133) fix file metadata cataloger to use resolved locations (anchore#2370) fix: logging level for parsing potential PE files (anchore#2367) only remove breaking-change label when there are schema changes (anchore#2371) ... Signed-off-by: Christopher Phillips <[email protected]>
* generalize ui events for cataloging tasks Signed-off-by: Alex Goodman <[email protected]> * moderate review comments Signed-off-by: Alex Goodman <[email protected]> * incorporate review comments Signed-off-by: Alex Goodman <[email protected]> * rename cataloger task progress object Signed-off-by: Alex Goodman <[email protected]> * migrate cataloger task fn to bus helper Signed-off-by: Alex Goodman <[email protected]> --------- Signed-off-by: Alex Goodman <[email protected]>
This PR replaces the set of events relating to cataloging down to a single event type, setting up #1383 for generalized cataloging tasks. There is no functional change to the appearance of the UI with this code change:
In the future this code reorg sets up for a set of cataloger tasks that may be related to one another in a tree-like form, expressed in the UI (see an example in anchore/bubbly#29).
Detailed changes:
PackageCatalogerStarted
,FileMetadataCatalogerStarted
, andFileDigestsCatalogerStarted
event types, handlers, and related tests. These are being replaced with the existingCatalogerTaskStarted
event.CatalogerTaskStarted
event handling with a new stateful handler. The handler creates and maintains a singlecatalogerTaskState
instance. This instance is responsible for injecting new models into the bubbletea event loop.simpleHandler
adapter for the existing handlers that do not raise uptea.Cmd
s with new models (a change brought in by Add tree-of-models bubble component bubbly#29)monitor.GenericTask
to be able to specify a task ID, a parent ID, and limited formatting optionsflatten
) based on the latest bubbletea lib changesThis is a breaking change since some underlying event types have been removed from the API.
(This is work broken off of #1383 )