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

API: expand getUIPath, simplify base classes #4525

Merged
merged 8 commits into from
Nov 20, 2023
Merged

Conversation

himdel
Copy link
Collaborator

@himdel himdel commented Nov 18, 2023

Follows #4520

expand getUIPath,
move API_HOST to BaseAPI,
use apiPath directly when applicable, fallback to '' when undefined,
move sortParam = 'sort' to HubAPI, not BaseAPI .. all direct descendants set it,
change mapPageToOffset to boolean,
use mapParams (page + sort) instead of mapPageToOffset method,
remove cancel token from dependencies api (keep in upload),
use HubListToolbar in dependencies tab (to prevent requests when typing)

@himdel himdel added the cleanup Dead code removal, etc label Nov 18, 2023
@github-actions github-actions bot added backport-4.7 This PR should be backported to stable-4.7 (2.4) backport-4.8 This PR should be backported to stable-4.8 (2.4) labels Nov 18, 2023
@himdel himdel removed backport-4.7 This PR should be backported to stable-4.7 (2.4) backport-4.8 This PR should be backported to stable-4.8 (2.4) labels Nov 18, 2023
mostly because the onChange-based filter would really need a cancel token,
but we want unified filters everywhere too
@himdel himdel merged commit 71a1f11 into ansible:master Nov 20, 2023
@himdel himdel deleted the api-more branch November 20, 2023 22:46
@himdel himdel added the backport-4.9 This PR should be backported to stable-4.9 (2.4) label Nov 21, 2023
Copy link

patchback bot commented Nov 21, 2023

Backport to stable-4.9: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-4.9/71a1f11f0a3e390d6d1a961e746d13f1cfa3e5a1/pr-4525

Backported as #4577

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Nov 21, 2023
* API: expand getUIPath, simplify base classes

* separate apiPath (which can have slashes) from the rest (which shouldnt, except EE names)

* getUsedDependencies - remove cancelToken, only practical for longer-running requests like upload

* mapParams - replace mapPageToOffset calls with mapParams to also include sort

* No-Issue

* mapParams - make mapPageToOffset a bool

* constructor cant read class variables

* used by depenendencies - use HubListToolbar

mostly because the onChange-based filter would really need a cancel token,
but we want unified filters everywhere too

(cherry picked from commit 71a1f11)
himdel added a commit that referenced this pull request Nov 25, 2023
* API: expand getUIPath, simplify base classes

* separate apiPath (which can have slashes) from the rest (which shouldnt, except EE names)

* getUsedDependencies - remove cancelToken, only practical for longer-running requests like upload

* mapParams - replace mapPageToOffset calls with mapParams to also include sort

* No-Issue

* mapParams - make mapPageToOffset a bool

* constructor cant read class variables

* used by depenendencies - use HubListToolbar

mostly because the onChange-based filter would really need a cancel token,
but we want unified filters everywhere too

(cherry picked from commit 71a1f11)

Co-authored-by: Martin Hradil <mhradil@redhat.com>
@github-actions github-actions bot added the backported-4.9 This PR has been backported to stable-4.9 (2.4) label Nov 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-4.9 This PR should be backported to stable-4.9 (2.4) backported-4.9 This PR has been backported to stable-4.9 (2.4) cleanup Dead code removal, etc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant