Skip to content

feat: Referrers support for content.ReadOnlyGraphStorage#659

Merged
Wwwsylvia merged 13 commits into
oras-project:mainfrom
wangxiaoxuan273:referrers
Dec 27, 2023
Merged

feat: Referrers support for content.ReadOnlyGraphStorage#659
Wwwsylvia merged 13 commits into
oras-project:mainfrom
wangxiaoxuan273:referrers

Conversation

@wangxiaoxuan273

@wangxiaoxuan273 wangxiaoxuan273 commented Dec 15, 2023

Copy link
Copy Markdown
Contributor

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

Resolves #392

@codecov-commenter

codecov-commenter commented Dec 15, 2023

Copy link
Copy Markdown

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.

Comment thread content/oci/oci.go Outdated
Comment thread content/oci/oci.go Outdated
Comment thread content/oci/oci.go Outdated
Comment thread content/oci/oci.go Outdated
Comment thread content/oci/oci_test.go
Comment thread content/oci/oci.go Outdated
Comment thread content/oci/oci.go Outdated
Comment thread content/oci/oci.go Outdated
Comment thread content/oci/oci.go Outdated
@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
Comment thread registry/repository.go Outdated
Comment thread registry/repository_test.go
Comment thread registry/repository_test.go
Comment thread registry/repository_test.go
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>
Comment thread registry/repository.go Outdated
Signed-off-by: Xiaoxuan Wang <wangxiaoxuan119@gmail.com>

@shizhMSFT shizhMSFT 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.

@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>

@Wwwsylvia Wwwsylvia left a comment

Copy link
Copy Markdown
Member

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>

@shizhMSFT shizhMSFT 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

@Wwwsylvia Wwwsylvia merged commit 1d9ad6c into oras-project:main Dec 27, 2023
@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

Development

Successfully merging this pull request may close these issues.

Request: Add Public Function for Finding Referrers and Filtering by Artifact Type Referrers API support for OCI Layout

6 participants