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

chore: fix ntsc api annotations #5702

Merged
merged 7 commits into from
Jan 10, 2023

Conversation

hamidzr
Copy link
Member

@hamidzr hamidzr commented Jan 10, 2023

Description

Test Plan

Commentary (optional)

Checklist

  • Changes have been manually QA'd
  • User-facing API changes need the "User-facing API Change" label.
  • Release notes should be added as a separate file under docs/release-notes/.
    See Release Note for details.
  • Licenses should be included for new code which was copied and/or modified from any external code.

Ticket

@cla-bot cla-bot bot added the cla-signed label Jan 10, 2023
@netlify
Copy link

netlify bot commented Jan 10, 2023

Deploy Preview for determined-ui ready!

Name Link
🔨 Latest commit fd63c75
🔍 Latest deploy log https://app.netlify.com/sites/determined-ui/deploys/63bdd4de6e935b00083d3f9d
😎 Deploy Preview https://deploy-preview-5702--determined-ui.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@hamidzr hamidzr marked this pull request as ready for review January 10, 2023 02:11
@hamidzr hamidzr requested a review from ioga as a code owner January 10, 2023 02:11
@hamidzr hamidzr requested a review from a team January 10, 2023 02:13
@@ -42,6 +42,9 @@ message GetNotebooksRequest {
}
// Response to GetNotebooksRequest.
message GetNotebooksResponse {
option (grpc.gateway.protoc_gen_swagger.options.openapiv2_schema) = {
json_schema: { required: [ "notebooks", "pagination" ] }
Copy link
Contributor

Choose a reason for hiding this comment

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

pagination is required? should it really be?

Copy link
Member Author

Choose a reason for hiding this comment

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

required meaning that backed always includes it but I just assumed and didn't check. I can double check.

Copy link
Member Author

Choose a reason for hiding this comment

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

we seem to always use which does set it. from what I've seen the apis that do offer a pagination state bit always include it. wdy think?

// paginate returns a paginated subset of the values and sets the pagination response.
func (a *apiServer) paginate(p **apiv1.Pagination, values interface{}, offset, limit int32) error {

Copy link
Contributor

Choose a reason for hiding this comment

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

i just think it makes sense for nothing to work and return all (or some default limit), but maybe that is a pain with grpc. i've approved for now, we can revisit if it makes sense later.

Copy link
Member Author

Choose a reason for hiding this comment

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

we can as easily in our handlers return nil and this field will be omitted the question is more about do we want to promise that we won't do that or not. if we already do this and we add this promise it'd be easier on the clients. I'll skip changing that part since we're not sure

@hamidzr
Copy link
Member Author

hamidzr commented Jan 10, 2023

added two missing config annotaitons

@hamidzr hamidzr enabled auto-merge (squash) January 10, 2023 21:16
@hamidzr hamidzr merged commit 97ca1b2 into determined-ai:master Jan 10, 2023
@hamidzr hamidzr deleted the oss-api-mis-annotations branch January 10, 2023 21:51
@dannysauer dannysauer added this to the 0.19.10 milestone Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants