Pagination returns the wrong offset/element id
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Monasca |
New
|
Undecided
|
Unassigned |
Bug Description
In some cases pagination is either returning the wrong offset or element.id I believe this was introduced with the changes in offset for the addition of group_by. The following is an runthrough of an example using the provided offset to generate the next call. Note the changes in the results of the third call. Element name was constant, and no dimensions were returned due to the merge statement.
Query 1:
monasca --debug measurement-list --dimensions region=NCE --merge_metrics --endtime 2016-05-
Result 1:
offset=
"elements"
Query 2:
monasca --debug measurement-list --dimensions region=NCE --merge_metrics --endtime 2016-05-
Result 2:
offset=
"elements"
Query 3:
monasca --debug measurement-list --dimensions region=NCE --merge_metrics --endtime 2016-05-
Result 3:
offset=
"elements"
Query 4:
monasca --debug measurement-list --dimensions region=NCE --merge_metrics --endtime 2016-05-
Result 4:
offset N/A (No next link provided)
"elements"
This does look like a bug, I will try to reproduce. The expected behavior with 'merge- metrics= true' should be for no ids to be returned in the offset and elements.