-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Console] Move out of quarantined #52270
Merged
jloleysens
merged 22 commits into
elastic:master
from
jloleysens:console/sense-editor-core-editor
Dec 10, 2019
Merged
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
f53964c
WiP, lotta broken things, working through new editor.ts
jloleysens ba78edd
RowParser -> TS
jloleysens d92621c
Utils to TS and regular module
jloleysens 05bb02b
Finished first version of core & sense editor wrappers. Tokenizer pro…
jloleysens 18d0093
WiP - moved A LOT of code around and busy fixing sense-editor tests
jloleysens 0f2ef09
Fix sense editor test
jloleysens 458cd57
Clean up mocks
jloleysens 78bbd57
Moved A LOT of code out of quarantined.
jloleysens 47f5191
WiP still finishing up manual testing
jloleysens f733e8f
Fix use of Ace Range and fix open documentation
jloleysens 6feb90c
Move out of quarantined!
jloleysens 3d0259f
Remove load remote editor state for now
jloleysens dd2f3e1
- fix use of token iterator
jloleysens c7157e7
Address getSelectionRange document TODO
jloleysens 59ea7d0
Update src/legacy/core_plugins/console/public/np_ready/application/mo…
jloleysens 62cec7c
Remove commented-out code
jloleysens 6cff57b
Rename format request function
jloleysens 59cc081
utils.ts default export usage cleanup
jloleysens f3b80b9
Merge branch 'master' into console/sense-editor-core-editor
elasticmachine a0e39bb
Update replace regex and add another utils test
jloleysens 4441976
Remove legacy replace behaviour
jloleysens d6bc4b7
Fix typo in comment
jloleysens 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
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.
I think Prettier is correct here - these patterns be surrounded in forward-slashes.
I see what you mean about the difference with
trim()
- it would remove all whitespace at the start or end of string, whereas these patterns are a little more subtle. Maybe it would be worth a comment, in case someone comes along later and replaces it withtrim()
. 😀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.
(Although I still query the usefulness of this vs. a simple
trim()
)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.
Come to think of it, this replace behaviour was part of legacy and was carried over from a previous alteration. I'm not convinced we want replace behaviour here at all. The value being altered was inside of
"""
which means string literal in Console. Newlines and whitespace should be preserved. I don't think those replace functions where actually doing anything when the behaviour was considered "correct":Automated and manual testing seem to confirm this. Would you mind taking a look too @pugnascotia ?