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

[Auto Suggest] SQL Syntax Highlighting fix #8951

Merged
merged 2 commits into from
Nov 27, 2024

Conversation

paulstn
Copy link
Contributor

@paulstn paulstn commented Nov 27, 2024

Description

Fixes SQL monaco monarch tokens by separating the states for single quoted and double quoted strings so that both can appear properly

Previously:

Screen.Recording.2024-11-26.at.4.44.26.PM.mov

Fixed:

Screen.Recording.2024-11-26.at.4.47.28.PM.mov

Issues Resolved

Screenshot

Testing the changes

Changelog

  • fix: SQL syntax highlighting double quotes

Check List

  • All tests pass
    • yarn test:jest
    • yarn test:jest_integration
  • New functionality includes testing.
  • New functionality has been documented.
  • Update CHANGELOG.md
  • Commits are signed per the DCO using --signoff

Copy link
Contributor

❌ Empty Changelog Section

The Changelog section in your PR description is empty. Please add a valid changelog entry or entries. If you did add a changelog entry, check to make sure that it was not accidentally included inside the comment block in the Changelog section.

Copy link
Contributor

❌ Empty Changelog Section

The Changelog section in your PR description is empty. Please add a valid changelog entry or entries. If you did add a changelog entry, check to make sure that it was not accidentally included inside the comment block in the Changelog section.

@paulstn paulstn changed the title [Auto Complete] SQL Syntax Highlighting fix [Auto Suggest] SQL Syntax Highlighting fix Nov 27, 2024
Copy link

codecov bot commented Nov 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.88%. Comparing base (073a9ff) to head (94dbd42).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8951   +/-   ##
=======================================
  Coverage   60.87%   60.88%           
=======================================
  Files        3802     3802           
  Lines       91072    91072           
  Branches    14375    14375           
=======================================
+ Hits        55444    55446    +2     
+ Misses      32086    32085    -1     
+ Partials     3542     3541    -1     
Flag Coverage Δ
Linux_1 29.02% <ø> (ø)
Linux_2 56.39% <ø> (ø)
Linux_3 37.90% <ø> (+<0.01%) ⬆️
Linux_4 29.00% <ø> (ø)
Windows_1 29.03% <ø> (ø)
Windows_2 56.34% <ø> (ø)
Windows_3 37.90% <ø> (+<0.01%) ⬆️
Windows_4 29.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kavilla kavilla merged commit 8f58bce into opensearch-project:main Nov 27, 2024
76 checks passed
@kavilla
Copy link
Member

kavilla commented Nov 27, 2024

@paulstn does this need to make it to a next branch?

opensearch-trigger-bot bot pushed a commit that referenced this pull request Nov 27, 2024
Fixes SQL monaco monarch tokens by separating the states for single quoted and double quoted strings so that both can appear properly

---------

Signed-off-by: Paul Sebastian <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
(cherry picked from commit 8f58bce)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@paulstn paulstn deleted the autosuggest-sql-monarch-fix branch November 27, 2024 18:55
@paulstn
Copy link
Contributor Author

paulstn commented Nov 27, 2024

@kavilla Not too sure what other branches it should be in, but it wasn't made to go into any other branch so probably no.

ArgusLi pushed a commit to ArgusLi/OpenSearch-Dashboards that referenced this pull request Dec 11, 2024
Fixes SQL monaco monarch tokens by separating the states for single quoted and double quoted strings so that both can appear properly

---------

Signed-off-by: Paul Sebastian <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
silva-qa pushed a commit to silva-qa/OpenSearch-Dashboards that referenced this pull request Dec 12, 2024
Fixes SQL monaco monarch tokens by separating the states for single quoted and double quoted strings so that both can appear properly

---------

Signed-off-by: Paul Sebastian <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
Signed-off-by: Federico Silva <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants