Updating the queue's metadata in the ui does not work

Bug #1581253 reported by Thai Tran
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zaqar-ui
Fix Released
High
Feilong Wang
zaqar
New
Undecided
Unassigned

Bug Description

Whenever I update a queue with metadata, it does not get persisted. The next time I visit the page, the metadata is gone.

Steps to reproduce:
1. create a queue in the zaqar-ui
2. add some metadata to the queue and update
3. you will see the metadata show up (but it is not persisted)
4. refresh the entire page
5. click on the chevron icon (>) to open the drawer
6. notice that the metadata object is blank {}

Revision history for this message
wangxiyuan (wangxiyuan) wrote :

the reason is that zaqar client(which zaqar-ui use to talk with zaqar) doesn't support update metadata in v2. After this patch https://review.openstack.org/#/c/294368/ be merged, you can try it again.

Revision history for this message
wangxiyuan (wangxiyuan) wrote :

the patch has been merged now. But new problem accoured.
update the queue metadata will raise an error:
 _default_message_ttl must be integer.
So I guess zaqar-ui translated the integer to string?

Revision history for this message
Feilong Wang (flwang) wrote :

I can reproduce the problem mentioned in #2.

Changed in zaqar-ui:
status: New → Confirmed
Feilong Wang (flwang)
Changed in zaqar-ui:
importance: Undecided → High
Shu Muto (shu-mutou)
Changed in zaqar-ui:
assignee: nobody → Fei Long Wang (flwang)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to zaqar-ui (master)

Reviewed: https://review.openstack.org/433511
Committed: https://git.openstack.org/cgit/openstack/zaqar-ui/commit/?id=d37f6483be14698500e7e2ac37d6d44bc82d9530
Submitter: Jenkins
Branch: master

commit d37f6483be14698500e7e2ac37d6d44bc82d9530
Author: Fei Long Wang <email address hidden>
Date: Tue Feb 14 16:25:55 2017 +1300

    Fix queue metadata update issue

    Currently when updating queue's metadata, the default type of
    those metadata values are string. But in Zaqar some of them are
    integer. So this patch will convert those reserved metadata
    before saving.

    Closes-Bug: #1581253

    Change-Id: I6e3a6b8f7dd96e1e475454fd7b721878adcb1bc8

Changed in zaqar-ui:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to zaqar-ui (stable/ocata)

Fix proposed to branch: stable/ocata
Review: https://review.openstack.org/436303

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to zaqar-ui (stable/ocata)

Reviewed: https://review.openstack.org/436303
Committed: https://git.openstack.org/cgit/openstack/zaqar-ui/commit/?id=82bc91e962c41c51415ee1de1c6915a766994084
Submitter: Jenkins
Branch: stable/ocata

commit 82bc91e962c41c51415ee1de1c6915a766994084
Author: Fei Long Wang <email address hidden>
Date: Tue Feb 14 16:25:55 2017 +1300

    Fix queue metadata update issue

    Currently when updating queue's metadata, the default type of
    those metadata values are string. But in Zaqar some of them are
    integer. So this patch will convert those reserved metadata
    before saving.

    Closes-Bug: #1581253

    Change-Id: I6e3a6b8f7dd96e1e475454fd7b721878adcb1bc8
    (cherry picked from commit d37f6483be14698500e7e2ac37d6d44bc82d9530)

tags: added: in-stable-ocata
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/zaqar-ui 3.0.0.0b1

This issue was fixed in the openstack/zaqar-ui 3.0.0.0b1 development milestone.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/zaqar-ui ocata-eol

This issue was fixed in the openstack/zaqar-ui ocata-eol 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.