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

762 create endpoints for v2index #106

Merged
merged 7 commits into from
Mar 14, 2022

Conversation

yangcao77
Copy link
Contributor

Please specify the area for this PR
index registry server

What does does this PR do / why we need it:
this PR includes the change to new endpoints serve for v2index, and new endpoint looking for devfile of a specific stack version.
Also includes the filter for minSchemaVersion and maxSchemaVersion when looking for v2index and also when looking for devfile of latest stack version.

Which issue(s) this PR fixes:

Fixes devfile/api#762

PR acceptance criteria:

  • Test (WIP)

  • Documentation (WIP)

How to test changes / Special notes to the reviewer:
run ./build_registry.sh and deploy the built devfile-index image to cluster.
send GET request to server to test endpoints

Signed-off-by: Stephanie <yangcao@redhat.com>
Signed-off-by: Stephanie <yangcao@redhat.com>
Signed-off-by: Stephanie <yangcao@redhat.com>
@openshift-ci openshift-ci bot requested a review from elsony March 8, 2022 21:05
@yangcao77 yangcao77 force-pushed the 762-create-endpoints-for-v2index branch from 62c6f4a to 55746f3 Compare March 8, 2022 21:33
Signed-off-by: Stephanie <yangcao@redhat.com>
@yangcao77 yangcao77 force-pushed the 762-create-endpoints-for-v2index branch from 55746f3 to c9b7ced Compare March 8, 2022 21:53
Signed-off-by: Stephanie <yangcao@redhat.com>
Copy link
Member

@johnmcollier johnmcollier left a comment

Choose a reason for hiding this comment

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

Generally looks good, just one question.

Could you also add some new integration tests for the new endpoint?

index/server/pkg/server/endpoint.go Show resolved Hide resolved
@yangcao77
Copy link
Contributor Author

@johnmcollier Can I add integration tests in the same PR? I saw the integration tests only tests on production/staging registry, but my changes have not been on staging yet.

@johnmcollier
Copy link
Member

@yangcao77 it should be fine. The integration tests for PRs are configured to point to the test registry.

And once the PR is merged, this will get deployed in staging automatically.

Signed-off-by: Stephanie <yangcao@redhat.com>
@yangcao77 yangcao77 force-pushed the 762-create-endpoints-for-v2index branch from f09e6f1 to 9ea85c5 Compare March 11, 2022 20:33
@yangcao77
Copy link
Contributor Author

@johnmcollier integration tests added

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Mar 11, 2022
@openshift-ci
Copy link

openshift-ci bot commented Mar 11, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: johnmcollier, yangcao77

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 11, 2022
@yangcao77 yangcao77 merged commit ba39985 into devfile:main Mar 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
2 participants