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

Disable enter on submit empty filter string, disable empty filter from params URL #1402

Merged
merged 2 commits into from
Jan 4, 2022

Conversation

MilanPospisil
Copy link
Contributor

@MilanPospisil MilanPospisil commented Dec 21, 2021

This PR corrects previous PR, which was incomplete:

#1195
AAH-820

It disables enter (submit) when user fills only empty filter text. It also does not add empty filter parameters from URL to container component state.

@himdel himdel added the backport-4.4 This PR should be backported to stable-4.4 (2.1) label Dec 31, 2021
Copy link
Collaborator

@himdel himdel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, works for me 👍 :)

When adding ?keywords=%20 manually, it no longer shows up in applied filter, and it no longer gets passed to the API 👍

@MilanPospisil MilanPospisil merged commit d41984f into ansible:master Jan 4, 2022
himdel pushed a commit to himdel/ansible-hub-ui that referenced this pull request Jan 4, 2022
…m params URL (ansible#1402)

* Issue: AAH-820.  Disable enter on submit filter, disable empty filter from params URL

* eslint correction
@ansible ansible deleted a comment from patchback bot Jan 4, 2022
@himdel
Copy link
Collaborator

himdel commented Jan 4, 2022

(will backport together with #1195, in #1376)

@himdel himdel added backport-4.4 This PR should be backported to stable-4.4 (2.1) and removed backport-4.4 This PR should be backported to stable-4.4 (2.1) labels Jan 6, 2022
@patchback
Copy link

patchback bot commented Jan 6, 2022

Backport to stable-4.4: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-4.4/d41984f2aa3056701e689f827113fc4d90728a6b/pr-1402

Backported as #1467

🤖 @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 Jan 6, 2022
…m params URL (#1402)

* Issue: AAH-820.  Disable enter on submit filter, disable empty filter from params URL

* eslint correction

(cherry picked from commit d41984f)
himdel pushed a commit that referenced this pull request Jan 6, 2022
…m params URL (#1402) (#1467)

* Issue: AAH-820.  Disable enter on submit filter, disable empty filter from params URL

* eslint correction

(cherry picked from commit d41984f)

Co-authored-by: MilanPospisil <arkanus@seznam.cz>
@github-actions github-actions bot added the backported-4.4 This PR has been backported to stable-4.4 (2.1) label Jan 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-4.4 This PR should be backported to stable-4.4 (2.1) backported-4.4 This PR has been backported to stable-4.4 (2.1)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants