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

Correctly normalize keyword time range for search bar form when selecting keyword time range. #15938

Merged
merged 3 commits into from
Jul 20, 2023

Conversation

linuspahl
Copy link
Contributor

@linuspahl linuspahl commented Jul 12, 2023

Please note: this PR requires a backport for 5.0 and 5.1

Description

Motivation and Context

Before this change a keyword time range in the search bar form could have not needed from and to attributes. These attributes:

  • change when you reopen and submit the time range dropdown
  • are not expected in the search bar form and will be removed from the form state in some cases

As a result the search bar form button was incorrectly displayed as dirty, in some cases (see #15472)

Fixes: #15471
Fixes: #15472

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Refactoring (non-breaking change)
  • Breaking change (fix or feature that would cause existing functionality to change)

Before this change a keyword time range in the search bar form could have not needed `from` and `to` attributes.
@dennisoelkers dennisoelkers merged commit 994df6a into master Jul 20, 2023
2 checks passed
@dennisoelkers dennisoelkers deleted the issue-15472 branch July 20, 2023 09:57
linuspahl added a commit that referenced this pull request Jul 21, 2023
…ting keyword time range. (#15938)

* Normalize keyword time range for search bar form.

Before this change a keyword time range in the search bar form could have not needed `from` and `to` attributes.

* Adding test

* Adding changelog
linuspahl added a commit that referenced this pull request Jul 21, 2023
…ting keyword time range. (#15938)

* Normalize keyword time range for search bar form.

Before this change a keyword time range in the search bar form could have not needed `from` and `to` attributes.

* Adding test

* Adding changelog
linuspahl added a commit that referenced this pull request Jul 24, 2023
…ting keyword (`5.0`) (#16013)

* Correctly normalize keyword time range for search bar form when selecting keyword time range. (#15938)

* Normalize keyword time range for search bar form.

Before this change a keyword time range in the search bar form could have not needed `from` and `to` attributes.

* Adding test

* Adding changelog

* Cleanup
linuspahl added a commit that referenced this pull request Jul 24, 2023
…ting keyword time range. (`5.1`) (#16012)

* Correctly normalize keyword time range for search bar form when selecting keyword time range. (#15938)

* Normalize keyword time range for search bar form.

Before this change a keyword time range in the search bar form could have not needed `from` and `to` attributes.

* Adding test

* Adding changelog

* Cleanup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants