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

refactor(repodb): moving common utilities under pkg/meta #1292

Merged
merged 3 commits into from
Mar 28, 2023

Conversation

laurentiuNiculae
Copy link
Contributor

What type of PR is this?

Which issue does this PR fix:
#1284

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.

pkg/meta/dynamo/dynamo_iterator.go Outdated Show resolved Hide resolved
pkg/meta/repodb/boltdb-wrapper/boltdb_wrapper.go Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Mar 22, 2023

Codecov Report

Merging #1292 (90d55f0) into main (9171591) will increase coverage by 0.03%.
The diff coverage is 94.11%.

@@            Coverage Diff             @@
##             main    #1292      +/-   ##
==========================================
+ Coverage   90.36%   90.40%   +0.03%     
==========================================
  Files          95       97       +2     
  Lines       21318    21331      +13     
==========================================
+ Hits        19265    19284      +19     
+ Misses       1538     1531       -7     
- Partials      515      516       +1     
Impacted Files Coverage Δ
pkg/meta/common/common.go 98.24% <ø> (ø)
pkg/meta/dynamo/iterator.go 88.67% <ø> (ø)
pkg/meta/update.go 99.14% <ø> (ø)
pkg/meta/version/common.go 100.00% <ø> (ø)
pkg/meta/version/patches.go 100.00% <ø> (ø)
pkg/meta/dynamo/parameters.go 80.00% <80.00%> (ø)
pkg/meta/repodb/repodbfactory/repodb_factory.go 91.48% <90.12%> (-8.52%) ⬇️
pkg/api/controller.go 92.66% <100.00%> (+1.92%) ⬆️
pkg/api/routes.go 94.43% <100.00%> (ø)
pkg/meta/bolt/parameters.go 100.00% <100.00%> (ø)
... and 2 more

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

@laurentiuNiculae laurentiuNiculae force-pushed the repodb-refactor branch 2 times, most recently from 7a08511 to 521aabc Compare March 23, 2023 14:33
andaaron
andaaron previously approved these changes Mar 23, 2023
pkg/api/controller.go Outdated Show resolved Hide resolved
@rchincha
Copy link
Contributor

Get rid of *-wrapper dirs

@rchincha
Copy link
Contributor

#1285
^ use this reference

@andaaron
Copy link
Contributor

andaaron commented Mar 24, 2023

Get rid of *-wrapper dirs

Can we fix this in a future PR? I'd do this in smaller steps, and merge more often.
See my comment on the same issue #1285 (comment)

This comment too: #1284 (comment)

Signed-off-by: Laurentiu Niculae <niculae.laurentiu1@gmail.com>
- updated wrapper initialization to recieve a log object in constructor

Signed-off-by: Laurentiu Niculae <niculae.laurentiu1@gmail.com>
…meta/repodb

Signed-off-by: Laurentiu Niculae <niculae.laurentiu1@gmail.com>
Copy link
Contributor

@andaaron andaaron left a comment

Choose a reason for hiding this comment

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

Looks good.

pkg/api/controller_test.go Show resolved Hide resolved
@rchincha
Copy link
Contributor

This is a intermediate step in our refactoring work.

@rchincha rchincha merged commit af819e7 into project-zot:main Mar 28, 2023
@laurentiuNiculae laurentiuNiculae deleted the repodb-refactor branch May 2, 2023 10:27
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.

None yet

3 participants