Skip to content

update: refactored notation list command#481

Merged
shizhMSFT merged 4 commits intonotaryproject:mainfrom
patrickzheng200:list
Dec 19, 2022
Merged

update: refactored notation list command#481
shizhMSFT merged 4 commits intonotaryproject:mainfrom
patrickzheng200:list

Conversation

@patrickzheng200
Copy link
Copy Markdown
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
Copy Markdown

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
Patrick Zheng added 2 commits December 14, 2022 13:22
Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
Copy link
Copy Markdown
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
Copy Markdown
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>
7h3-3mp7y-m4n pushed a commit to 7h3-3mp7y-m4n/notation that referenced this pull request Mar 29, 2025
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>
FeynmanZhou pushed a commit to FeynmanZhou/notation that referenced this pull request May 15, 2025
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

4 participants