fuel-web/nailgun/nailgun
Dmitry Sutyagin 03aaca2dee Add limit, offset, order in collection GET
Allow limiting the number of objects returned via GET
by providing "limit"
Example: api/notifications?limit=5

Allow offseting (skipping N first records) via "offset"
Example: api/notifications?offset=100

Allow ordering of objects by providing "order_by"
Example: api/notifications?order_by=-id

Add helper functions/classes to:
- get HTTP parameters (limit, offset, order_by)
- get scoped collection query by applying 4 operations
  filter, order, offset, limit
- set Conent-Range header if scope limits are present

Make default NailgunCollection's GET utilize scoped query
This makes default (parent) GET of child handlers support paging
and ordering (overriden GET methods will not get this functionality
automatically)
NailgunCollection.GET is also an example of how to implement
this new functionality.

Helper functions/classes can be utilized in child handler methods
to implement filters / ordering / paging

Related-Bug: 1657348
Change-Id: I7760465f70b3f69791e7a0c558a26e8ba55c934a
2017-02-14 08:11:23 +00:00
..
api Add limit, offset, order in collection GET 2017-02-14 08:11:23 +00:00
assassin Files with no code must be left completely empty 2016-09-30 16:13:45 +07:00
db Merge "Fix typo in sriov.numvfs 9.2 migration" 2017-01-19 15:04:18 +00:00
errors Empty fields processed correctly in plugin adapters 2016-09-28 15:26:34 +03:00
expression Add exceptions hierarchy 2016-04-14 17:41:25 +03:00
extensions Set nodes' statuses to 'error' when their nodegroup is deleted 2017-02-07 17:44:06 +00:00
fake_keystone Add fake Keystone V3 API handlers 2016-10-01 18:08:40 +00:00
fixtures Revert "Limit the minimal RAM amount for OVS+DPDK to 1024MB" 2017-01-19 12:54:31 +04:00
fsm Files with no code must be left completely empty 2016-09-30 16:13:45 +07:00
fuyaql Fixed fuyaql after spliting common and node part of deployment info 2016-09-23 13:41:32 +03:00
lcm Resolve tasks by role tags 2016-11-17 18:07:30 +03:00
middleware Files with no code must be left completely empty 2016-09-30 16:13:45 +07:00
objects Add limit, offset, order in collection GET 2017-02-14 08:11:23 +00:00
orchestrator Merge "Ensure that 'dpdk' in serialization before update" 2017-01-18 09:11:58 +00:00
plugins Fix wrong detection of plugin deletable property 2017-01-10 15:37:04 +00:00
policy Change CPU distribution 2016-06-06 18:36:27 +03:00
rpc Fix naming of reset tasks and message duplication 2017-01-12 17:24:02 +04:00
statistics Merge "Add radio "Security Groups" to Security section" 2016-11-21 10:12:02 +00:00
task Moving task cache update into task creation transaction 2017-01-31 12:31:59 +00:00
test Add limit, offset, order in collection GET 2017-02-14 08:11:23 +00:00
transactions Update global progress if no progress was sent 2016-12-23 11:08:04 +00:00
utils Logs symlinks creation fixed 2017-01-11 17:53:10 +03:00
volumes Files with no code must be left completely empty 2016-09-30 16:13:45 +07:00
webui Files with no code must be left completely empty 2016-09-30 16:13:45 +07:00
yaql_ext Implemented support for graph metadata 2016-08-23 11:11:13 +03:00
__init__.py Files with no code must be left completely empty 2016-09-30 16:13:45 +07:00
app.py Read-only mode for Fuel API was added 2016-05-25 18:39:40 +03:00
autoapidoc.py Swap deprecated oslo namespaces 2015-07-23 23:33:58 +03:00
consts.py Limit the minimal RAM amount for OVS+DPDK to 1024MB 2017-02-07 16:42:01 +00:00
logger.py Add logging setup for receiverd and assassind 2016-01-28 18:54:34 +02:00
notifier.py Notification object - preparing for pagination 2014-04-04 15:25:31 +04:00
settings.py Deprecate version.yaml 2015-11-17 01:05:39 +03:00
settings.yaml Fix misspell in Openstack.yaml 2016-09-05 14:45:44 +03:00
unit_test.py All flake8 warnings fixed, except for H302 (should be ignored) 2013-08-30 18:08:53 +04:00
urls.py Add fake Keystone 2014-07-11 14:47:58 +02:00
wsgi.py Explicit WSGI application and fixed static in dev 2014-03-24 15:04:55 +04:00