[RFE] Expose all filter options for collections in REST api

Bug #1526385 reported by Vladyslav Drok
4
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ironic
Confirmed
Wishlist
Unassigned

Bug Description

The current GET collections methods do not expose all the filtering that is included in the sqlalchemy interface. The missing filters include [reserved, driver, provision_state, provisioned_before, inspection_started_before] and do exist in the ironic.db.sqlalchemy.api.Connection._add_nodes_filters methods but are not included in the ironic.api.controllers.v1.node.NodesController._get_nodes_collection or related methods. Due to the previous declaration conventions and the api's expose type validation, adding an additional filters optional parameter would mask the expose type validation for the filters and so implementations might be limited to additional optional parameters for each. It would be nice to allow filtering on any/all available fields in the collection and base the type validation on the type defined in the sqlalchemy table declaration.

Tags: needs-spec rfe
Vladyslav Drok (vdrok)
Changed in ironic:
status: New → Confirmed
importance: Undecided → Wishlist
tags: added: rfe
Revision history for this message
Jim Rollenhagen (jim-rollenhagen) wrote :

This changes the API and will need a spec

tags: added: needs-spec
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.