config: return extra fields in summary listing of collection

Bug #1470171 reported by Hampapur Ajay
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
Trunk
Fix Committed
Medium
Hampapur Ajay

Bug Description

Currently accessing a collection in contrail-api without the detail=True query parameter only returns fq_name, href, uuid fields for each element in the collection.

In scale situations, it is useful to access a (or a set of) particular field(s) more efficiently by a summary list but with some extra fields.

So the REST api would appear as:

GET /<collection-type>?fields=<field1>,<field2>

and would return these fields too for every element in collection (if present).

Tags: api config
Hampapur Ajay (hajay)
Changed in juniperopenstack:
assignee: nobody → Hampapur Ajay (hajay)
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/12102
Submitter: Hampapur Ajay (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Review in progress for https://review.opencontrail.org/12103
Submitter: Hampapur Ajay (<email address hidden>)

tags: added: api config
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/12102
Committed: http://github.org/Juniper/contrail-generateDS/commit/6b8c0d935b890241ac853d82ff8cbc5c149c32ff
Submitter: Zuul
Branch: master

commit 6b8c0d935b890241ac853d82ff8cbc5c149c32ff
Author: Hampapur Ajay <email address hidden>
Date: Tue Jun 30 10:20:53 2015 -0700

config: Add support for extra fields in summary listing

Allow extra fields to be returned (in addition to fq_name, href,
uuid) by using a fields query parameter to list URL

In addition fix a bug where boolean fields with False would
never be sent to server by checking for 'is None'.

Change-Id: I4a3e46e58fb10666055da42740c4e6b91c72f8ee
Partial-Bug: #1470171

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/12103
Submitter: Hampapur Ajay (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/12103
Committed: http://github.org/Juniper/contrail-controller/commit/8a1be1b09dac4f3ac7db4773268206478edfcd70
Submitter: Zuul
Branch: master

commit 8a1be1b09dac4f3ac7db4773268206478edfcd70
Author: Hampapur Ajay <email address hidden>
Date: Tue Jun 30 10:35:43 2015 -0700

config: add support for fields in summary list in bulk mode

Adds corresponding unit-tests for this functionality.

Change-Id: I71fe98607b9200ba1bcb9aefc75cb70c58de3ebc
Closes-Bug: #1470171

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.