Enable event-list reverse ordering

Bug #1615699 reported by Amy Fong
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Panko
Fix Released
Low
Unassigned

Bug Description

When limits are applied to event-list, it would be helpful to see the most recent events. ie when there are many event-lists, and the user wants to see the more recent values first.

One option is to default to reverse ordering by default when limits are applied, another option is to introduce another parameter to explicitly specify a reserve ordering on the return values.

Revision history for this message
Amy Fong (afong2) wrote :
Revision history for this message
Hanxi Liu (hanxi-liu) wrote :

It is convenient to users because users can get the recent records with limits function.So I think you proposal is useful.

Julien Danjou (jdanjou)
affects: ceilometer → panko
Changed in panko:
status: New → Triaged
Revision history for this message
xiaozhuangqing (xiaozhuangqing) wrote :

maybe I can add a option parameter on cli: event list --resent ?

Julien Danjou (jdanjou)
Changed in panko:
importance: Undecided → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to panko (master)

Reviewed: https://review.openstack.org/372851
Committed: https://git.openstack.org/cgit/openstack/panko/commit/?id=272c872f2fe9d0658f059538c019836d093a5486
Submitter: Jenkins
Branch: master

commit 272c872f2fe9d0658f059538c019836d093a5486
Author: Amy Fong <email address hidden>
Date: Thu Sep 22 13:51:23 2016 -0400

    Enable paginate query for event listing

    sorting and marker options are enabled for event listing (for sqlalchemy only)
    using oslob.db.

        sort -- list of sorting criteria. Each sorting option has to format
                <sort key>:<sort direction>

                Valid sort keys: message_id, generated
                Valid sort directions: asc (ascending), desc (descending)
                        This defaults to asc if unspecified

                If sort list is unspecified, this defaults to
                ['generated:asc', 'message_id:asc']

        marker -- If specified, assumed to be an integer and assumed to be the
                  message id of the last object on the previous page of the results

    limit is still available and supported for non sqlalchemy databases

    Closes-bug: #1615699
    Change-Id: I0441ca6283be5859c09c3d381ffbb52ca4a79eca

Changed in panko:
status: Triaged → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/panko 2.0.0

This issue was fixed in the openstack/panko 2.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.