-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Time Series: preserve run regex filter string in URL #5412
Time Series: preserve run regex filter string in URL #5412
Conversation
@@ -27,3 +27,5 @@ export const PINNED_CARDS_KEY = 'pinnedCards'; | |||
export const RUN_COLOR_GROUP_KEY = 'runColorGroup'; | |||
|
|||
export const TAG_FILTER_KEY = 'tagFilter'; | |||
|
|||
export const RUN_REGEX_FILTER_KEY = 'runRegexFilter'; |
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.
Perhaps simpler, runFilter
to match tagFilter
? They are both regexes.
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.
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.
So, in L29, we have "tagFilter" instead of "tagRegexFilter" even though tag filter also let you specify a regex.
Likewise, I am asking if we can drop word" regex" from "runRegexFilter" like we did for tag one.
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.
ah I see. I thought you want to rename runRegexFilter
to tag..
}) | ||
); | ||
|
||
expect(nextState.data.regexFilter).toEqual('hello'); |
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.
toEqual -> toBe. Here and below.
Time Series does not remember regex query put in the run filter. We remember this by adding it to the URL.