Skip to content

fix: removed duplicate structures from service.go and moved them to p…#1436

Merged
rchincha merged 1 commit into
project-zot:mainfrom
aokirisaki:response-struct
May 25, 2023
Merged

fix: removed duplicate structures from service.go and moved them to p…#1436
rchincha merged 1 commit into
project-zot:mainfrom
aokirisaki:response-struct

Conversation

@aokirisaki

Copy link
Copy Markdown
Contributor

…kg/common

What type of PR is this?

Which issue does this PR fix:
#1420

What does this PR do / Why do we need it:

If an issue # is not available please add repro steps and logs showing the issue:

Testing done on this change:

Automation added to e2e:

Will this break upgrades or downgrades?

Does this PR introduce any user-facing change?:


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Comment thread pkg/cli/service.go
Comment thread pkg/cli/service.go Outdated
Comment thread pkg/cli/service.go Outdated
@rchincha

Copy link
Copy Markdown
Contributor

Revert the linter change

@aokirisaki
aokirisaki force-pushed the response-struct branch 3 times, most recently from 7220e4c to 60d19c6 Compare May 11, 2023 14:27
@codecov

codecov Bot commented May 11, 2023

Copy link
Copy Markdown

Codecov Report

❗ No coverage uploaded for pull request base (main@970997f). Click here to learn what that means.
The diff coverage is 97.50%.

@@           Coverage Diff           @@
##             main    #1436   +/-   ##
=======================================
  Coverage        ?   90.94%           
=======================================
  Files           ?      102           
  Lines           ?    22634           
  Branches        ?        0           
=======================================
  Hits            ?    20584           
  Misses          ?     1528           
  Partials        ?      522           
Impacted Files Coverage Δ
pkg/cli/discover.go 92.98% <ø> (ø)
pkg/extensions/search/cve/cve.go 93.46% <66.66%> (ø)
pkg/cli/client.go 87.21% <88.88%> (ø)
pkg/cli/searcher.go 91.85% <100.00%> (ø)
pkg/cli/service.go 84.11% <100.00%> (ø)
pkg/extensions/search/cve/pagination.go 94.52% <100.00%> (ø)
pkg/meta/repodb/boltdb-wrapper/boltdb_wrapper.go 89.66% <100.00%> (ø)
pkg/meta/repodb/dynamodb-wrapper/dynamo_wrapper.go 93.51% <100.00%> (ø)
pkg/meta/repodb/pagination.go 100.00% <100.00%> (ø)

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

@aokirisaki
aokirisaki force-pushed the response-struct branch 2 times, most recently from 7e208de to 78399d9 Compare May 18, 2023 15:30
@aokirisaki
aokirisaki requested a review from shimish2 as a code owner May 18, 2023 15:30

@andaaron andaaron left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We're on track with this, but I think we can further improve on the ease of use of the structs in common.

Comment thread pkg/common/model.go Outdated
Comment thread pkg/common/model.go Outdated
Comment thread pkg/common/model.go Outdated
Comment thread pkg/common/model.go Outdated
Comment thread pkg/common/model.go Outdated
Comment thread pkg/common/model.go Outdated
Comment thread pkg/common/model.go Outdated
Comment thread pkg/common/model.go Outdated
Comment thread pkg/common/model.go Outdated
Comment thread pkg/common/model.go Outdated

@andaaron andaaron left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We're on track with this, but I think we can further improve on the ease of use of the structs in common.

@aokirisaki
aokirisaki force-pushed the response-struct branch 2 times, most recently from dcfad28 to 0f3e59f Compare May 24, 2023 13:34
andaaron
andaaron previously approved these changes May 24, 2023
…kg/common

Signed-off-by: Ana-Roberta Lisca <ana.kagome@yahoo.com>
Signed-off-by: Lisca Ana-Roberta <ana.kagome@yahoo.com>

@rchincha rchincha left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm

@rchincha
rchincha merged commit 6a7035c into project-zot:main May 25, 2023
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.

GraphQL: consolidate response structures which are now used in zli and search tests

3 participants