Skip to content

Fix instance peering pagination#15108

Merged
fosterseth merged 1 commit into
ansible:develfrom
fosterseth:fix_ui_peers_association
Apr 18, 2024
Merged

Fix instance peering pagination#15108
fosterseth merged 1 commit into
ansible:develfrom
fosterseth:fix_ui_peers_association

Conversation

@fosterseth
Copy link
Copy Markdown
Member

@fosterseth fosterseth commented Apr 12, 2024

SUMMARY

Currently the association box displays a list of available instances/addresses that can be peered to.

The pagination issue arises as follows:

  • fetch 5 instances (based on page_size)
  • filter these instances down based on some criteria (like is_internal: false)
  • show results

Filtering down the results inside of the fetch method results in pagnation errors (may return fewer than 5, for example)

instead, do the filtering by API queries. That way the pagination count will be correct.

ISSUE TYPE
  • Bug, Docs Fix or other nominal change
COMPONENT NAME
  • UI
Video of bug
2024-04-12.12-54-28.mp4
Video of fix
2024-04-12.15-22-03.mp4

@fosterseth fosterseth force-pushed the fix_ui_peers_association branch 2 times, most recently from aadba40 to 6de06e1 Compare April 12, 2024 21:52
Currently the association box displays a
list of available instances/addresses that can
be peered to.

The pagination issue arises as follows:

- fetch 5 instances (based on page_size)
- filter these instances down based on some
criteria (like is_internal: false)
- show results

Filtering down the results inside of the fetch
method results in pagnation errors (may return fewer than
5, for example)

instead, do the filtering by API queries. That way the
pagination count will be correct.

Signed-off-by: Seth Foster <fosterbseth@gmail.com>
@fosterseth fosterseth force-pushed the fix_ui_peers_association branch from 6de06e1 to f9fac29 Compare April 12, 2024 22:44
@fosterseth
Copy link
Copy Markdown
Member Author

fosterseth commented Apr 17, 2024

reminder: may need to backport

update: don't need backport - receptor address only lives in devel at the time of merging this

@fosterseth fosterseth requested a review from dmzoneill April 18, 2024 14:29
@fosterseth fosterseth merged commit f178c84 into ansible:devel Apr 18, 2024
djyasin pushed a commit to djyasin/awx that referenced this pull request Sep 16, 2024
Currently the association box displays a
list of available instances/addresses that can
be peered to.

The pagination issue arises as follows:

- fetch 5 instances (based on page_size)
- filter these instances down based on some
criteria (like is_internal: false)
- show results

Filtering down the results inside of the fetch
method results in pagnation errors (may return fewer than
5, for example)

instead, do the filtering by API queries. That way the
pagination count will be correct.

Signed-off-by: Seth Foster <fosterbseth@gmail.com>
djyasin pushed a commit to djyasin/awx that referenced this pull request Nov 11, 2024
Currently the association box displays a
list of available instances/addresses that can
be peered to.

The pagination issue arises as follows:

- fetch 5 instances (based on page_size)
- filter these instances down based on some
criteria (like is_internal: false)
- show results

Filtering down the results inside of the fetch
method results in pagnation errors (may return fewer than
5, for example)

instead, do the filtering by API queries. That way the
pagination count will be correct.

Signed-off-by: Seth Foster <fosterbseth@gmail.com>
@fosterseth fosterseth deleted the fix_ui_peers_association branch March 11, 2025 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants