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

Bug #1581253 reported by Thai Tran on 2016-05-12
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zaqar-ui
High
Feilong Wang
zaqar
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 {}

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.

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?

Feilong Wang (flwang) wrote :

I can reproduce the problem mentioned in #2.

Changed in zaqar-ui:
status: New → Confirmed
Feilong Wang (flwang) on 2017-02-13
Changed in zaqar-ui:
importance: Undecided → High
Shu Muto (shu-mutou) on 2017-02-14
Changed in zaqar-ui:
assignee: nobody → Fei Long Wang (flwang)
status: Confirmed → In Progress

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

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

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

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers