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

Add support for field selectors #2892

Merged
merged 3 commits into from
Apr 25, 2019
Merged

Conversation

palourde
Copy link
Contributor

What is this change?

This PR adds functions to retrieve fields for resources that can be listed via the REST API.

It also adds an argument to the lister HTTP handler that correspond to these functions signature.

Why is this change necessary?

Required by https://github.com/sensu/sensu-enterprise-go/issues/283.

Does your change need a Changelog entry?

Added!

Do you need clarification on anything?

Nope!

Were there any complications while making this change?

Nope! I hesitated to add a method to the Resource interface but I decided against it because it could be considered as a breaking change; third-party code relying on it would break with this change.

Have you reviewed and updated the documentation for this change? Is new documentation required?

Not yet.

How did you verify this change?

Manual testing.

Simon Plourde added 2 commits April 18, 2019 15:42
Signed-off-by: Simon Plourde <[email protected]>
Signed-off-by: Simon Plourde <[email protected]>
@palourde palourde requested review from ccressent and echlebek April 23, 2019 18:50
@palourde
Copy link
Contributor Author

CircleCI builds are just getting OOM...

@palourde palourde self-assigned this Apr 23, 2019
api/core/v2/asset.go Outdated Show resolved Hide resolved
api/core/v2/namespace.go Outdated Show resolved Hide resolved
backend/apid/routers/lister_test.go Outdated Show resolved Hide resolved
Signed-off-by: Simon Plourde <[email protected]>
@palourde palourde merged commit 8327ff7 into release-5.6.0 Apr 25, 2019
@palourde palourde deleted the filtering/field-selector branch April 25, 2019 14:06
echlebek added a commit that referenced this pull request Apr 25, 2019
* Create 5.6.0 release branch

Signed-off-by: Eric Chlebek <[email protected]>

* Bugfix for annotations & labels flags (#2881)

Signed-off-by: Simon Plourde <[email protected]>

* Move dashboard source code into its own repository (#2869)

As our project has grown, build targets increased, and time has passed, the ideal of a monorepo housing both the web and backend has simply caused more friction than it has reduced. Today we are moving Sensu Go Web into it's own repository: sensu/web.

Signed-off-by: James Phillips <[email protected]>

* [GraphQL] Ensures that all types are registered (#2875)

Types that are not directly referenced by the root Schema type or any of
their children are not immediately registered with the schema. As such to
ensure that ALL types are available we append any that are missing.

Signed-off-by: James Phillips <[email protected]>

* Add message bus to tessend (#2886)

Signed-off-by: Nikki Attea <[email protected]>

* Feature/cluster id hex (#2893)

Signed-off-by: Nikki Attea <[email protected]>

* Add support for field selectors (#2892)

Signed-off-by: Simon Plourde <[email protected]>

* Proxy api from dashboard daemon (#2885)

Signed-off-by: James Phillips <[email protected]>
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.

3 participants