Skip to content

Update Referrers API to match RC.1#191

Merged
shizhMSFT merged 8 commits into
oras-project:mainfrom
m5i-work:v2_api
Jun 27, 2022
Merged

Update Referrers API to match RC.1#191
shizhMSFT merged 8 commits into
oras-project:mainfrom
m5i-work:v2_api

Conversation

@m5i-work
Copy link
Copy Markdown
Contributor

@m5i-work m5i-work commented Jun 22, 2022

Resolves #188

Signed-off-by: Wei Meng <wemeng@microsoft.com>
@shizhMSFT shizhMSFT requested review from Wwwsylvia and shizhMSFT June 22, 2022 06:44
Signed-off-by: Wei Meng <wemeng@microsoft.com>
@Wwwsylvia
Copy link
Copy Markdown
Member

You may want the linked issue to be automatically closed once this PR is merged. See Linking a pull request to an issue using a keyword.

@m5i-work
Copy link
Copy Markdown
Contributor Author

You may want the linked issue to be automatically closed once this PR is merged. See Linking a pull request to an issue using a keyword.

TIL!

Comment thread registry/remote/url.go Outdated
Comment thread registry/remote/url.go Outdated
Signed-off-by: Wei Meng <wemeng@microsoft.com>
@northtyphoon
Copy link
Copy Markdown

@m5i-work just want to make sure you are aware of, there is a change in rc1 spec regarding to pagination. The link url has been changes to relative url. https://github.com/oras-project/artifacts-spec/blob/v1.0.0-rc.1/manifest-referrers-api.md#paging-results
Not sure if existing code can handle both. You may consider to incorporate in current or future pr.

@m5i-work
Copy link
Copy Markdown
Contributor Author

m5i-work commented Jun 23, 2022

just want to make sure you are aware of, there is a change in rc1 spec regarding to pagination. The link url has been changes to relative url. https://github.com/oras-project/artifacts-spec/blob/v1.0.0-rc.1/manifest-referrers-api.md#paging-results Not sure if existing code can handle both. You may consider to incorporate in current or future pr.

Thanks! The existing code already handles both.

Comment thread registry/remote/url.go
Comment thread registry/remote/url.go Outdated
Signed-off-by: Wei Meng <wemeng@microsoft.com>
@shizhMSFT
Copy link
Copy Markdown
Contributor

Note: Since this PR is for rc, let's merge it after #195

Signed-off-by: Wei Meng <wemeng@microsoft.com>
Comment thread registry/remote/repository.go Outdated
Comment thread registry/remote/repository_test.go Outdated
m5i-work added 2 commits June 24, 2022 12:58
Signed-off-by: Wei Meng <wemeng@microsoft.com>
Signed-off-by: Wei Meng <wemeng@microsoft.com>
Copy link
Copy Markdown
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

@FeynmanZhou
Copy link
Copy Markdown
Member

There are 8 commits in this PR. It is recommended to rebase and squash them into one.

@shizhMSFT
Copy link
Copy Markdown
Contributor

There are 8 commits in this PR. It is recommended to rebase and squash them into one.

It's okay since oras only allows "squash and merge" so that the main branch is always clean.

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

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.

Update Referrers API to match RC.1

5 participants