-
Notifications
You must be signed in to change notification settings - Fork 65
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
Command Summary - New record functionality #1230
Merged
Merged
Conversation
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
enchance build info table
…mmand_summary_to_cli
4 tasks
4 tasks
EyalDelarea
commented
Aug 14, 2024
This was referenced Aug 18, 2024
Merged
eyalbe4
suggested changes
Aug 18, 2024
artifactory/commands/commandssummaries/buildinfosummary_test.go
Outdated
Show resolved
Hide resolved
@@ -15,23 +15,23 @@ const ( | |||
) | |||
|
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.
The entire commandssummaries
package is located directory under the artifactory/commands
package. This is wriwrongng, because commandssummaries
isn't a command.
I therefore suggest moving the entire commandssummaries
directory to be under artifactory/utils
.
…mmand_summary_to_cli
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.
In addition to the existing simple data recording function, we now have the capability to record data with a predefined 'index'. This allows us to categorize and store specific information that can be easily accessed by other components within the summary report.
The main example of this usage is storing indexed scan results, which can later be attached to specific files in the summary.
Here’s an example of how to use the new function:
Will resolve to a file system like this:
![image](https://private-user-images.githubusercontent.com/23456142/357792383-a396b5f5-ca06-4442-b239-6a1e5ebd62f3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk3NjA1MTMsIm5iZiI6MTczOTc2MDIxMywicGF0aCI6Ii8yMzQ1NjE0Mi8zNTc3OTIzODMtYTM5NmI1ZjUtY2EwNi00NDQyLWIyMzktNmExZTVlYmQ2MmYzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE3VDAyNDMzM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWM1ZGY4MGM0ZTgxNDViY2FmYjRiYWQxM2NhZDY0NDU0ZThkMTcwZjkxMzA0MjJkNjQ4MTk3MGJmODkxMTExNmEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.Vb-7rWfET20xxJSN3OdmDjJph32lQIL_LXPdgCluzHo)
The supported indexes so far are:
Note
This change also requires that the generation of markdown will happen via a CLI command, rather than automatically. The PR in the CLI will introduce a new command called "create-summary-markdown".