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

Sanity check filtering/sorting options in list requests. #625

Merged
merged 3 commits into from
Jan 9, 2019

Conversation

neuromage
Copy link
Contributor

@neuromage neuromage commented Jan 4, 2019

If sort by or filtering criteria is specified in conjunction with a next
page token, ensure they match up, otherwise return an error.

Also, change the errors to be InvalidInputErrors instead of standard Go
string errors to be consistent with the rest of apiserver.


This change is Reviewable

If sort by or filtering criteria is specified in conjunction with a next
page token, ensure they match up, otherwise return an error.

Also, change the errors to be InvalidInputErrors instead of standard Go
string errors to be consistent with the rest of apiserver.
@neuromage
Copy link
Contributor Author

/assign @IronPan

Copy link
Member

@IronPan IronPan left a comment

Choose a reason for hiding this comment

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

/lgtm


opts, err = list.NewOptions(&model.Experiment{}, int(request.PageSize), request.SortBy, f)
}
opts, err := validatedListOptions(&model.Experiment{}, request.PageToken, int(request.PageSize), request.SortBy, request.Filter)
Copy link
Member

Choose a reason for hiding this comment

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

nit consider making &model.Experiment{} a constant so it doesn't instantiate a new object for each API call.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm, I think any performance issue here is negligible, and the benefits of having this right here for readability (vs another indirection for the reader) outweighs it anyway. It's really cheap to create it and the performance cost of this call is elsewhere, so I'd rather leave it as is. What do you think?

Copy link
Member

Choose a reason for hiding this comment

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

sgtm

@vicaire
Copy link
Contributor

vicaire commented Jan 8, 2019

/approve

@IronPan
Copy link
Member

IronPan commented Jan 8, 2019

/lgtm
/approve

@vicaire
Copy link
Contributor

vicaire commented Jan 9, 2019

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot assigned vicaire and unassigned vicaire Jan 9, 2019
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: IronPan, vicaire

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

1 similar comment
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: IronPan, vicaire

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

@neuromage
Copy link
Contributor Author

Fixed merge conflicts. PTAL.

@yebrahim
Copy link
Contributor

yebrahim commented Jan 9, 2019

/lgtm

@k8s-ci-robot k8s-ci-robot merged commit 9d69e8a into kubeflow:master Jan 9, 2019
Linchin pushed a commit to Linchin/pipelines that referenced this pull request Apr 11, 2023
…the cluster (kubeflow#625)

* Use Anthos Config Management to continually sync the label config to the cluster

* Define a kustomize package to generate the config map from the labels

* ACM requires the directory structure follow a certain format so we
  created the directory label_sync/acm_repo

* A simple shell script runs kustomize to dump the manifests to the directory.

Related to kubeflow#624

* Address comments.
HumairAK pushed a commit to red-hat-data-services/data-science-pipelines that referenced this pull request Mar 11, 2024
…kubeflow#625)

* fix nested recursion with condition custom task and parameter mapping

* fix alpine commands and add licenses
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.

5 participants