ironic/ironic
Arun S A G 1d35f46436 Do not ignore 'fields' query parameter when building next url
When an user calls the GET on an ironic resource it returns
MAX_LIMIT number of resources at a time along with a next url.
The default MAX_LIMIT is 1000.

If the user requested specific set of fields from ironic API
using the fields query parameter (eg: /v1/resource?fields=f1,f2,f3)
The next url returned by the API ignores fields query parameter.
This results in fields missing from the results after MAX_LIMIT
is reached.

This change fixes this problem by passing the fields as parameter
to collections.get_next method and using the fields argument to
build the query parameter.

NOTE: Removed changes from deploy_templates, allocation, and
      conductor API endpoints which were added after Rocky.

Change-Id: I62b59e8148171c72de0ccf63a1517e754b520c76
Story: 2006721
Task: 37093
(cherry picked from commit e36f72d36d)
(cherry picked from commit 0785477a63)
2019-10-22 09:15:45 -07:00
..
api Do not ignore 'fields' query parameter when building next url 2019-10-22 09:15:45 -07:00
cmd Migration step to update objects to latest version 2018-10-26 13:45:11 +02:00
common Fix typo in handling of exception FailedToGetIPAddressOnPort 2019-09-16 10:27:09 +02:00
conductor Change log level based on node status 2019-10-04 12:51:31 +00:00
conf Allow disabling TFTP image cache 2019-01-10 13:49:39 +00:00
db Migration step to update objects to latest version 2018-10-26 13:45:11 +02:00
dhcp Merge "Add meaningful exception in Neutron port show" 2018-03-16 13:49:39 +00:00
drivers grub configuration should use user kernel & ramdisk 2019-10-08 13:52:34 +00:00
hacking Follow-up to improve pep8 checking with hacking 2018-07-26 10:29:41 +07:00
objects Use max version of an object 2018-08-02 13:43:51 +00:00
tests Do not ignore 'fields' query parameter when building next url 2019-10-22 09:15:45 -07:00
__init__.py Move eventlet monkey patch code 2017-03-02 13:48:18 +02:00
version.py Correct version.py and update current version string 2014-03-21 13:50:05 -07:00