Lack of pagination on recordset page

Bug #1729261 reported by sq4ind
150
This bug affects 26 people
Affects Status Importance Assigned to Milestone
Designate Dashboard
Fix Committed
High
Tobias Urdin

Bug Description

When listing recordsets in OpenStack horizon I am getting only 20 item, however when asking API to list all the recordsets I am getting 22 (all of them are actually working and I am saying only about records type A).

Revision history for this message
Pawel Dudczak (pdudczak) wrote :

the same error occurs when listing zones. It always displays only the max. 20 items, all subsequent skips and the next button does not appear

Revision history for this message
Krzysztof Maj (maju36) wrote :

Same here: only 20 records are accessible.

Revision history for this message
Kevin Tibi (ktibi) wrote :

Same bug here on PIKE

Changed in designate-dashboard:
status: New → Confirmed
Changed in designate-dashboard:
importance: Undecided → High
status: Confirmed → Triaged
Revision history for this message
Dr. Jens Harbott (j-harbott) wrote :

So it seems the dashboard is lacking the ability to handle the chunked response it receives from the API. Compare this function that is being used in the python client

https://github.com/openstack/python-designateclient/blob/master/designateclient/v2/utils.py#L57

vs. the simplistic function in the dashboard

https://git.openstack.org/cgit/openstack/designate-dashboard/tree/designatedashboard/static/designatedashboard/resources/os-designate-recordset/api.service.js#n64

Changed in designate-dashboard:
assignee: nobody → Dr. Jens Harbott (j-harbott)
Changed in designate-dashboard:
assignee: Dr. Jens Harbott (j-harbott) → nobody
Revision history for this message
p.cipriano (ctpeter) wrote :

Hi,

May i know the status of this?

Revision history for this message
Dr. Jens Harbott (j-harbott) wrote :

This bug is still open, I did try to resolve it, but failed due to lack of understanding javascript and the frameworks that are involved.

Changed in designate-dashboard:
assignee: nobody → Marek Lyčka (mareklycka)
Revision history for this message
Marek Lyčka (mareklycka) wrote :

Hi,

as has been noted before, designateclient supports loading data from multiple API
pages (see links above). Is there a reason why the ng version of designate-dashboard
doesn't use the client, opting instead to query the designate API directly?

Revision history for this message
Arunas Grigalionis (niekosau) wrote :

Hi,

just increase default_limit_v2 from defaults in designate.conf and You will get pages in recordset

Revision history for this message
Dr. Jens Harbott (j-harbott) wrote :

@Marek: I don't think there is a specific reason, if you can rewrite the code to use the designateclient and solve this issue, that would be very welcome.

Revision history for this message
Giuseppe Petralia (peppepetra) wrote :

Given that the client support the pagination, increasing the limit of each page in designate appears to be a workaround and this bug seems to be valid

Revision history for this message
Jose Phillips (jose-phillips) wrote :

100% a bug should look like the other things inside horizon with pagination.

Revision history for this message
Christian Rohmann (christian-rohmann) wrote (last edit ):

I ran into this issue on Ussuri. Is there any chance this might be picked up and fixed by anyone?
Or would anybody accept and review a patchset?

Revision history for this message
Zara (zara-zaimeche) wrote :

Has there been any progress on this? Is anyone working on this currently?

Revision history for this message
Alexander Jelinek (jelineka) wrote :

Hi guys, just like Zara and Christian I would be interested to know if anyone is currently working on this bug.

Revision history for this message
Dr. Jens Harbott (j-harbott) wrote :

Seems there isn't any visible progress at least, feel free to take over. If you submit a patch, best join #openstack-dns on OFTC so we can chat about it.

Changed in designate-dashboard:
assignee: Marek Lyčka (mareklycka) → nobody
Revision history for this message
Kamil Madac (kamil-madac) wrote :

We experienced same issue. We solved it by adding

[service:api]
default_limit_v2 =

to designate.conf. Empty value menas None and it causes that designate will send all results at once without pagination.

Revision history for this message
Jeremy Boyle (jeremy-boyle) wrote :

This bug has been reported for a long time, is no one working on this?

Revision history for this message
Yusuf Güngör (yusuf2) wrote :

Hi, is there any update on this?

Revision history for this message
Tobias Urdin (tobias-urdin) wrote :
Changed in designate-dashboard:
status: Triaged → In Progress
assignee: nobody → Tobias Urdin (tobias-urdin)
Changed in designate-dashboard:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/designate-dashboard 18.0.0.0rc1

This issue was fixed in the openstack/designate-dashboard 18.0.0.0rc1 release candidate.

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.