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

update: refactored notation list command #481

Merged
merged 4 commits into from
Dec 19, 2022

Conversation

patrickzheng200
Copy link
Contributor

This PR refactors the notation list command reducing the number of calls to getSignatureRepository() and repo.Resolve().

Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
@codecov-commenter
Copy link

codecov-commenter commented Dec 13, 2022

Codecov Report

Merging #481 (4204bf2) into main (7a947d5) will increase coverage by 0.19%.
The diff coverage is 6.06%.

@@            Coverage Diff             @@
##             main     #481      +/-   ##
==========================================
+ Coverage   32.14%   32.33%   +0.19%     
==========================================
  Files          25       25              
  Lines        1341     1336       -5     
==========================================
+ Hits          431      432       +1     
+ Misses        898      892       -6     
  Partials       12       12              
Impacted Files Coverage Δ
cmd/notation/manifest.go 0.00% <0.00%> (ø)
cmd/notation/sign.go 43.18% <0.00%> (ø)
cmd/notation/verify.go 27.27% <0.00%> (-0.28%) ⬇️
cmd/notation/list.go 26.47% <15.38%> (+3.18%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@patrickzheng200 patrickzheng200 linked an issue Dec 13, 2022 that may be closed by this pull request
@patrickzheng200 patrickzheng200 added enhancement New feature or request refactoring Refactoring code labels Dec 13, 2022
Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
Copy link
Contributor

@priteshbandi priteshbandi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with one suggestion

Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
Copy link
Contributor

@shizhMSFT shizhMSFT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@shizhMSFT shizhMSFT merged commit b8ce43a into notaryproject:main Dec 19, 2022
@patrickzheng200 patrickzheng200 deleted the list branch December 19, 2022 10:31
vaninrao10 pushed a commit to vaninrao10/notation that referenced this pull request Jan 3, 2023
This PR refactors the `notation list` command reducing the number of
calls to getSignatureRepository() and repo.Resolve().

Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
Signed-off-by: vaninrao10 <111005862+vaninrao10@users.noreply.github.com>
vaninrao10 pushed a commit to vaninrao10/notation that referenced this pull request Jan 5, 2023
This PR refactors the `notation list` command reducing the number of
calls to getSignatureRepository() and repo.Resolve().

Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
Signed-off-by: vaninrao10 <111005862+vaninrao10@users.noreply.github.com>
vaninrao10 pushed a commit to vaninrao10/notation that referenced this pull request Jan 5, 2023
This PR refactors the `notation list` command reducing the number of
calls to getSignatureRepository() and repo.Resolve().

Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request refactoring Refactoring code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactoring: functions in list.go
5 participants