ironic/ironic/api
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
..
controllers Do not ignore 'fields' query parameter when building next url 2019-10-22 09:15:45 -07:00
middleware Fix W605 Errors 2018-05-09 06:13:55 -07:00
__init__.py Centralize config options - [api] 2016-07-21 11:51:45 -07:00
app.py Add optional healthcheck middleware 2018-02-12 14:48:05 -05:00
app.wsgi Add uWSGI support 2017-12-28 18:08:49 +02:00
config.py Fix W504 errors 2018-05-09 06:11:30 -07:00
expose.py Disable XML now that we have WSME/Pecan support 2015-04-06 09:31:09 -07:00
hooks.py Fix W504 errors 2018-05-09 06:11:30 -07:00
wsgi.py Add uWSGI support 2017-12-28 18:08:49 +02:00