Qs#2643
Draft
adonispuente wants to merge 1 commit into
Draft
Conversation
Reviewer's GuideImplements batched, concurrent export of CVE data with query param transformations, updates axios and introduces p-all, adjusts GitHub Actions and Tekton pipelines to build on pull requests and new Konflux pipeline versions, pins qs via overrides, and adds new IoP-specific Tekton pipelines for Satellite 6.19. Sequence diagram for batched CVE export in useExport hooksequenceDiagram
participant Component
participant useExport
participant queryTotalBatched
participant queryBatch
participant queryPage
participant axiosInstance
participant downloadFile
Component->>useExport: const exportFnc = useExport(params)
Component->>useExport: exportFnc(format)
activate useExport
useExport->>queryTotalBatched: queryTotalBatched({report, data_format, params})
activate queryTotalBatched
queryTotalBatched->>queryPage: queryPage(1, params)
activate queryPage
queryPage->>axiosInstance: get(/vulnerabilities/cves, transformedParams)
axiosInstance-->>queryPage: response(meta, data)
deactivate queryPage
queryTotalBatched-->>queryTotalBatched: total = meta.total_items
alt [total > 0]
queryTotalBatched->>queryBatch: queryBatch(total, params)
activate queryBatch
loop for each page
queryBatch->>queryPage: queryPage(page, params)
activate queryPage
queryPage->>axiosInstance: get(/vulnerabilities/cves, transformedParams)
axiosInstance-->>queryPage: response(data)
deactivate queryPage
end
queryBatch-->>queryTotalBatched: batchedResponses
deactivate queryBatch
else [total == 0]
queryTotalBatched-->>queryTotalBatched: results = []
end
queryTotalBatched-->>useExport: response (csv string or array)
deactivate queryTotalBatched
useExport-->>useExport: data = string or JSON.stringify(array)
useExport->>downloadFile: downloadFile(data, filename, format)
deactivate useExport
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary by Sourcery
Implement batched vulnerability export with parameter transformation and update build and pipeline configurations.
New Features:
Enhancements:
Build:
CI: