Subscriptions don't show their "age"

Bug #1552845 reported by Eva Balycheva
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
zaqar
Fix Released
Undecided
Eva Balycheva

Bug Description

We recently fixed subscriptions and now they are expirable as they should be.
But now, unlike messages and claims, they don't show their age, so it's impossible for the user to know when the particular subscription will expire.

Eva Balycheva (ubershy)
Changed in zaqar:
assignee: nobody → Eva Balycheva (ubershy)
Eva Balycheva (ubershy)
description: updated
Eva Balycheva (ubershy)
summary: - Subscriptions don't show their "age".
+ Subscriptions don't show their "age"
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to zaqar (master)

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

Changed in zaqar:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to zaqar (master)

Reviewed: https://review.openstack.org/288907
Committed: https://git.openstack.org/cgit/openstack/zaqar/commit/?id=3b32dfb1ec6ad84661a11ca91975df71bbd9d22c
Submitter: Jenkins
Branch: master

commit 3b32dfb1ec6ad84661a11ca91975df71bbd9d22c
Author: Eva Balycheva <email address hidden>
Date: Fri Mar 4 01:02:47 2016 +0300

    Show 'age' field in subscriptions (mongodb)

    We recently fixed subscriptions and now they are expirable resources as
    they should be.
    But now, unlike messages and claims, they don't show their age, so it's
    impossible for the user to know when the particular subscription will
    expire.

    This patch adds 'age' field to subscription resource representation
    returned from mongodb driver. Tests are modified to make them check also
    'age' field.

    Partial-Bug: 1552845
    APIImpact
    DocImpact
    Change-Id: I5eb6a6a267161ec7ee6a7cda094dd55960520069

Changed in zaqar:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Reviewed: https://review.openstack.org/288908
Committed: https://git.openstack.org/cgit/openstack/zaqar/commit/?id=897424af777b10e2c8e79f79de6f7e5a37b096c5
Submitter: Jenkins
Branch: master

commit 897424af777b10e2c8e79f79de6f7e5a37b096c5
Author: Eva Balycheva <email address hidden>
Date: Sat Mar 5 06:28:34 2016 +0300

    Show 'age' field in subscriptions (redis)

    We recently fixed subscriptions and now they are expirable resources as
    they should be.

    This patch adds 'age' field to subscription resource representation
    which is exposed to the user and defined in redis driver.

    This patch also removes existing 'expires' field, because:
    1. The 'expires' field is missing in mongodb's subscription resource
    representation. (But age field was also missing until a recent patch).
    2. The 'expires' field has int (timestamp) format, which is not human
    readable.
    3. Other Zaqar's expirable resources show 'age' and 'ttl' fields instead
    of showing 'expires' field.
    4. There is no need in 'expires' field when 'age' and 'ttl' fields are
    exposed to the user.

    This change in unlikely to affect backward compatibility, because
    subscription expirations started to work only recently.

    Closes-Bug: 1552845
    APIImpact
    DocImpact
    Change-Id: I18f908b2f137bd4b8e5b3d3275063a1d37942093

Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote : Fix included in openstack/zaqar 3.0.0.0b2

This issue was fixed in the openstack/zaqar 3.0.0.0b2 development milestone.

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.