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

[Discover-Next] conditionally render selector #7059

Merged
merged 4 commits into from
Jun 22, 2024

Conversation

kavilla
Copy link
Member

@kavilla kavilla commented Jun 19, 2024

Description

When selecting a specific language, the data source selector disappears and relies completely on the query editor when enhancements are enabled.

If toggled on and then off, everything is working properly.

Issues Resolved

resolves: #7046

Screenshot

Screenshot 2024-06-19 at 1 58 05 AM

Testing the changes

yarn opensearch snapshot --sql
yarn start:enhancements

Changelog

  • feat: Render the datasource selector component conditionally

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

codecov bot commented Jun 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.45%. Comparing base (4f54049) to head (90a96ac).
Report is 367 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7059   +/-   ##
=======================================
  Coverage   67.45%   67.45%           
=======================================
  Files        3448     3448           
  Lines       67916    67916           
  Branches    11042    11042           
=======================================
+ Hits        45813    45814    +1     
  Misses      19434    19434           
+ Partials     2669     2668    -1     
Flag Coverage Δ
Linux_1 33.07% <ø> (ø)
Linux_2 55.11% <ø> (ø)
Linux_3 45.28% <ø> (+0.01%) ⬆️
Linux_4 34.86% <ø> (ø)
Windows_1 33.09% <ø> (ø)
Windows_2 55.06% <ø> (ø)
Windows_3 45.28% <ø> (+<0.01%) ⬆️
Windows_4 34.86% <ø> (ø)

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
Copy link
Member Author

kavilla commented Jun 19, 2024

need to add tests

still we track: #6957 with more tests and some here but the query editor test I was trying to write was throwing an error because of the test DOM and webkitBackingStorePixelRatio might be easier to capture tests for editor in cypress.

kavilla and others added 4 commits June 20, 2024 10:11
When selecting a specific language, the data source selector disappears and relies completely on the
query editor when enhancements are enabled.

If toggled on and then off, everything is working properly.

opensearch-project#7046

Signed-off-by: Kawika Avilla <kavilla414@gmail.com>
Signed-off-by: Kawika Avilla <kavilla414@gmail.com>
Signed-off-by: Kawika Avilla <kavilla414@gmail.com>
Copy link
Member

@ananzh ananzh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@kavilla kavilla merged commit 7f0e9d0 into opensearch-project:main Jun 22, 2024
67 checks passed
kavilla added a commit to kavilla/queryEnhancements that referenced this pull request Jun 22, 2024
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jun 22, 2024
When selecting a specific language, the data source selector disappears and relies completely on the
query editor when enhancements are enabled.

If toggled on and then off, everything is working properly.

#7046

Signed-off-by: Kawika Avilla <kavilla414@gmail.com>

---------

Signed-off-by: Kawika Avilla <kavilla414@gmail.com>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
(cherry picked from commit 7f0e9d0)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
mengweieric pushed a commit to mengweieric/OpenSearch-Dashboards that referenced this pull request Jun 24, 2024
When selecting a specific language, the data source selector disappears and relies completely on the
query editor when enhancements are enabled.

If toggled on and then off, everything is working properly.

opensearch-project#7046

Signed-off-by: Kawika Avilla <kavilla414@gmail.com>

---------

Signed-off-by: Kawika Avilla <kavilla414@gmail.com>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
SuZhou-Joe pushed a commit to SuZhou-Joe/OpenSearch-Dashboards that referenced this pull request Jun 25, 2024
When selecting a specific language, the data source selector disappears and relies completely on the
query editor when enhancements are enabled.

If toggled on and then off, everything is working properly.

opensearch-project#7046

Signed-off-by: Kawika Avilla <kavilla414@gmail.com>

---------

Signed-off-by: Kawika Avilla <kavilla414@gmail.com>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
kavilla pushed a commit that referenced this pull request Jul 1, 2024
When selecting a specific language, the data source selector disappears and relies completely on the
query editor when enhancements are enabled.

If toggled on and then off, everything is working properly.

#7046



---------



(cherry picked from commit 7f0e9d0)

Signed-off-by: Kawika Avilla <kavilla414@gmail.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
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.

[Discover-Next][UI] data source selector hidden based on languages
4 participants