-
Notifications
You must be signed in to change notification settings - Fork 914
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
[Chore] Update timeline default expression #2720
Merged
joshuarrrr
merged 15 commits into
opensearch-project:main
from
joshuarrrr:chore/update-default-timeline-exp
Mar 27, 2023
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
327212c
[Chore] Update timeline default expression
joshuarrrr 47303cf
[Chore] Update other timeline `es()` examples and test usage
joshuarrrr 8413249
[Chore] Update BWC data generation to use es(*)
joshuarrrr 8b6c195
[Chore] Update changelog
joshuarrrr fee215a
Merge branch 'main' into chore/update-default-timeline-exp
joshuarrrr 7e8eba6
Merge branch 'main' into chore/update-default-timeline-exp
joshuarrrr 0667e2b
Merge branch 'main' into chore/update-default-timeline-exp
joshuarrrr 0e7c231
Merge branch 'main' into chore/update-default-timeline-exp
joshuarrrr 3485523
Merge branch 'main' into chore/update-default-timeline-exp
joshuarrrr 189a239
Test: update generate_data to account for selectAll not working
joshuarrrr 76d6b3f
Test: clear expression before each timeline test
joshuarrrr db8983d
Test: fully clear expression text before each
joshuarrrr bdaff53
try `clear()` in before each
joshuarrrr 0cc1d3f
Add better programmatic text clearing for monaco editor
joshuarrrr 6401ff4
Update the expression clearing in the generate_data bwc helpers
joshuarrrr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
NIT: do you think we could create a common function
So this could simplifies to
and this function could also be imported in other tests. I see there are 2 more tests using similar function. maybe put it in a until or common folder?
Also curious why we need these many backspaces
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.
Yeah, I meant to call this out in a comment. For some reason, the
{selectAll}
cypress sequence doesn't work in this field the way it's supposed to (or at least the way I understand that it's supposed to work). Previously, when the default expression was.es(*)
, there were 6 total characters - you'll see that some tests "cleared" the input by repeating five backspaces (and reusing the.
). Now that we've made the default expressionopensearch(*)
, there are 14 total characters that need deleting, if you delete them one by one. I didn't try.clear()
either, but because it's supposed to just aliastype({selectAll}{backspace})
, I suspect it won't work either.I do like the simplification idea, although I don't think we need a common function for it.
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.
See if you like my latest approach better! I sure do 😁
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.
kk I like it