Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix instance peering pagination #15108

Merged
merged 1 commit into from
Apr 18, 2024

Conversation

fosterseth
Copy link
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 <[email protected]>
@fosterseth fosterseth force-pushed the fix_ui_peers_association branch from 6de06e1 to f9fac29 Compare April 12, 2024 22:44
@fosterseth
Copy link
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
21 checks passed
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 <[email protected]>
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 <[email protected]>
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