-
Notifications
You must be signed in to change notification settings - Fork 22
NETOBSERV-2441: fix page loading triggering autocompletion #1060
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
base: main
Are you sure you want to change the base?
Conversation
@jotak: This pull request references NETOBSERV-2441 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "4.21.0" version, but no target version was set. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@jotak IIUC, regression testing is sufficient on this one, let me know. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's related to #1049, we should keep it away from this PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops, I took that commit to speed up my build times locally but didn't intend to push
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
@memodi you can also verify (if you want) that the page freezing doesn't occur anymore. For info, I have a second PR on the operator, that is related though not dependent: netobserv/network-observability-operator#2085 |
There was an abusive use of the autocompletion mechanism in filters. It's primarily used to get a list of filter options out of a search value. But it was also used, during page loading, to transform a filter textual value (read from URL) into a normalized filter option. This is bad, because triggers unnecessary API calls on page load. The change consists in splitting concerns between autocompletion and text mapping to normalized filter option.
@jotak: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good (not tested)
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #1060 +/- ##
==========================================
- Coverage 53.20% 53.19% -0.02%
==========================================
Files 205 205
Lines 11115 11142 +27
Branches 1295 1291 -4
==========================================
+ Hits 5914 5927 +13
- Misses 4689 4705 +16
+ Partials 512 510 -2
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Description
There was an abusive use of the autocompletion mechanism in filters.
It's primarily used to get a list of filter options out of a search value.
But it was also used, during page loading, to transform a filter textual
value (read from URL) into a normalized filter option. This is bad,
because triggers unnecessary API calls on page load.
The change consists in splitting concerns between autocompletion and
text mapping to normalized filter option.
Dependencies
n/a
Checklist
If you are not familiar with our processes or don't know what to answer in the list below, let us know in a comment: the maintainers will take care of that.