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

feat: Referrers support for content.ReadOnlyGraphStorage #659

Merged
merged 13 commits into from
Dec 27, 2023

Conversation

wangxiaoxuan273
Copy link
Contributor

@wangxiaoxuan273 wangxiaoxuan273 commented Dec 15, 2023

This PR provides Referrers support for the content.ReadOnlyGraphStorage interface, which includes oci.Store.

Resolves #392

@codecov-commenter
Copy link

codecov-commenter commented Dec 15, 2023

Codecov Report

Attention: 15 lines in your changes are missing coverage. Please review.

Comparison is base (5073458) 75.32% compared to head (404b39d) 75.36%.

Files Patch % Lines
registry/repository.go 78.87% 10 Missing and 5 partials ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #659      +/-   ##
==========================================
+ Coverage   75.32%   75.36%   +0.04%     
==========================================
  Files          59       59              
  Lines        5499     5570      +71     
==========================================
+ Hits         4142     4198      +56     
- Misses       1001     1011      +10     
- Partials      356      361       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

content/oci/oci.go Outdated Show resolved Hide resolved
content/oci/oci.go Outdated Show resolved Hide resolved
content/oci/oci.go Outdated Show resolved Hide resolved
content/oci/oci.go Outdated Show resolved Hide resolved
content/oci/oci_test.go Outdated Show resolved Hide resolved
content/oci/oci.go Outdated Show resolved Hide resolved
content/oci/oci.go Outdated Show resolved Hide resolved
content/oci/oci.go Outdated Show resolved Hide resolved
content/oci/oci.go Outdated Show resolved Hide resolved
@wangxiaoxuan273 wangxiaoxuan273 changed the title feat: Referrers support for oci.Store feat: Referrers support for content.ReadOnlyGraphStorage Dec 20, 2023
@wangxiaoxuan273 wangxiaoxuan273 changed the title feat: Referrers support for content.ReadOnlyGraphStorage feat: Referrers support for content.ReadOnlyGraphStorage Dec 20, 2023
@wangxiaoxuan273 wangxiaoxuan273 changed the title feat: Referrers support for content.ReadOnlyGraphStorage feat: Referrers support for content.ReadOnlyGraphStorage Dec 20, 2023
registry/repository.go Outdated Show resolved Hide resolved
registry/repository_test.go Outdated Show resolved Hide resolved
registry/repository_test.go Show resolved Hide resolved
Signed-off-by: Xiaoxuan Wang <wangxiaoxuan119@gmail.com>
Signed-off-by: Xiaoxuan Wang <wangxiaoxuan119@gmail.com>
Signed-off-by: Xiaoxuan Wang <wangxiaoxuan119@gmail.com>
Signed-off-by: Xiaoxuan Wang <wangxiaoxuan119@gmail.com>
Signed-off-by: Xiaoxuan Wang <wangxiaoxuan119@gmail.com>
Signed-off-by: Xiaoxuan Wang <wangxiaoxuan119@gmail.com>
registry/repository.go Outdated Show resolved Hide resolved
Signed-off-by: Xiaoxuan Wang <wangxiaoxuan119@gmail.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.

@wangxiaoxuan273 The code LGTM. Can you increase the unit test code coverage at least to the current level of 75%?

Signed-off-by: Xiaoxuan Wang <wangxiaoxuan119@gmail.com>
Signed-off-by: Xiaoxuan Wang <wangxiaoxuan119@gmail.com>
Copy link
Member

@Wwwsylvia Wwwsylvia left a comment

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: Xiaoxuan Wang <wangxiaoxuan119@gmail.com>
Signed-off-by: Xiaoxuan Wang <wangxiaoxuan119@gmail.com>
Signed-off-by: Xiaoxuan Wang <wangxiaoxuan119@gmail.com>
Signed-off-by: Xiaoxuan Wang <wangxiaoxuan119@gmail.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

@Wwwsylvia Wwwsylvia merged commit 1d9ad6c into oras-project:main Dec 27, 2023
7 checks passed
@wangxiaoxuan273 wangxiaoxuan273 deleted the referrers branch December 29, 2023 07:29
@Wwwsylvia Wwwsylvia mentioned this pull request Jan 26, 2024
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
6 participants