Added API extensions to detect sorting/pagination features

Bug #1609932 reported by OpenStack Infra
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Undecided
Ihar Hrachyshka
openstack-api-site
Invalid
Undecided
Unassigned

Bug Description

https://review.openstack.org/329474
Dear bug triager. This bug was created since a commit was marked with DOCIMPACT.
Your project "openstack/neutron" is set up so that we directly report the documentation bugs against it. If this needs changing, the docimpact-group option needs to be added for the project. You can ask the OpenStack infra team (#openstack-infra on freenode) for help if you need to.

commit 5e0878f476d7116bc4e0c29c7929718f379b36c2
Author: Ihar Hrachyshka <email address hidden>
Date: Tue Jun 14 16:16:06 2016 +0200

    Added API extensions to detect sorting/pagination features

    Those features are available only when allow_sorting and
    allow_pagination options are enabled (the current default is False).

    They don't depend on plugin support, because when plugins don't
    implement them natively, emulated mode is applied by API router itself.
    So to make it plugin agnostic, we introduce a way to register custom
    per-extension checks to override support detection for cases like that
    one.

    Now that we have a way to detect support for those features via API,
    there is little reason to keep tempest configuration options to enable
    those features. Instead, just inspect [network-feature-enabled]
    api_extensions option in tempest.conf.

    Now that DEFAULT_ALLOW_SORTING/DEFAULT_ALLOW_PAGINATION constants are
    used in a single place only (in allow_sorting/allow_pagination
    definitions), removed them and replaced with a literal.

    Added first in-tree API tests for /extensions entry point.

    DocImpact Update API documentation to cover new extensions.
    APIImpact Document the new extensions.
    Related-Bug: #1566514
    Change-Id: I0aaaa037a8ad52060a68dd75c0a1accc6add238e

Tags: doc neutron
Changed in neutron:
assignee: nobody → Ihar Hrachyshka (ihar-hrachyshka)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron-lib (master)

Fix proposed to branch: master
Review: https://review.openstack.org/362877

Changed in neutron:
status: New → In Progress
Changed in neutron:
assignee: Ihar Hrachyshka (ihar-hrachyshka) → Akihiro Motoki (amotoki)
Revision history for this message
Ihar Hrachyshka (ihar-hrachyshka) wrote :

We maintain neutron API reference in neutron-lib, so marking openstack-api-site part of the bug as Invalid. Ideally it would be a duplicate of neutron part, but I don't see such a feature in LP.

Changed in neutron:
assignee: Akihiro Motoki (amotoki) → Ihar Hrachyshka (ihar-hrachyshka)
Changed in openstack-api-site:
status: New → Invalid
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron-lib (master)

Reviewed: https://review.openstack.org/362877
Committed: https://git.openstack.org/cgit/openstack/neutron-lib/commit/?id=adef52edff3107e93f9479b29284ce07aa4c79f7
Submitter: Jenkins
Branch: master

commit adef52edff3107e93f9479b29284ce07aa4c79f7
Author: Ihar Hrachyshka <email address hidden>
Date: Sat Aug 27 19:31:24 2016 +0000

    Move valuable API info from neutron-specs repo

    This information is stored (unlinked) in neutron-specs repo under
    misc/api/networking_general_api_information.rst This patch just moves
    the contents into api-ref, where they seem to belong.

    Note that the contents are not current in some parts. For example, it is
    said there XML format of requests is still supported, which is not true
    for quite a while. This contents will be cleaned up in follow up
    patches. For now, I keep the text intact to ease reviewer's life.

    Adding two documentation bugs to be closed by the patch because the
    information missing in api-ref is already included in the bits copied by
    this patch.

    Closes-Bug: #1609934
    Closes-Bug: #1609932
    Change-Id: Ic0c2348d7db941deaec6e1d110954fe5893c2265

Changed in neutron:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron-lib 1.0.0

This issue was fixed in the openstack/neutron-lib 1.0.0 release.

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.