Skip to content
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

Add retrieve_all_sbom_roots_by_name() func #1041

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

JimFuller-RedHat
Copy link
Collaborator

@JimFuller-RedHat JimFuller-RedHat commented Nov 22, 2024

Add retrieve_all_sbom_roots_by_name function that searches for a component(s) by name in a specific sbom, then returns that components root component.

Can be used thusly:

        let roots = service
            .retrieve_all_sbom_roots_by_name(sbom_id, component_name, ())
            .await?;

Intended for use in #1014

Note - most of graph is based on string values ... this was an explicit design decision I do with graph stuff up front, its likely at some point I will revert these values back to some normal types at some point (ex. sbom_id would be stored in graph as a Uuid).

@JimFuller-RedHat JimFuller-RedHat self-assigned this Nov 22, 2024
@JimFuller-RedHat JimFuller-RedHat marked this pull request as draft November 22, 2024 13:40
@JimFuller-RedHat JimFuller-RedHat force-pushed the specific-fn-retrieve-sbom-root-purls branch from 0b61581 to c5c1baa Compare November 22, 2024 14:02
@JimFuller-RedHat JimFuller-RedHat marked this pull request as ready for review November 22, 2024 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant