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

Fix discover options' location #7581

Merged
merged 6 commits into from
Jul 30, 2024
Merged

Conversation

abbyhu2000
Copy link
Member

@abbyhu2000 abbyhu2000 commented Jul 30, 2024

Description

Fix discover options' location when query enhancement is off.

Issues Resolved

Screenshot

When toggle is off:

Screenshot 2024-07-30 at 11 26 31 AM

When toggle is on:
Screenshot 2024-07-30 at 11 25 16 AM

Testing the changes

Changelog

  • feat: Fix discover options' location

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

Signed-off-by: abbyhu2000 <[email protected]>
kavilla
kavilla previously approved these changes Jul 30, 2024
@@ -95,15 +95,15 @@ export const DiscoverChart = ({
);

const toggleLabel = i18n.translate('queryEditor.collapse', {
Copy link
Member

Choose a reason for hiding this comment

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

can you update this i18n translate
call it something like histogram.collapse

@@ -95,15 +95,15 @@ export const DiscoverChart = ({
);

const toggleLabel = i18n.translate('queryEditor.collapse', {
defaultMessage: 'Toggle query editor',
defaultMessage: 'Toggle discover histogram',
Copy link
Member

Choose a reason for hiding this comment

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

I think you can just say Toggle histogram already in discover page would be redudant

Signed-off-by: abbyhu2000 <[email protected]>
Copy link

codecov bot commented Jul 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 63.67%. Comparing base (33ef32d) to head (642b318).
Report is 233 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7581   +/-   ##
=======================================
  Coverage   63.67%   63.67%           
=======================================
  Files        3630     3630           
  Lines       79545    79545           
  Branches    12609    12609           
=======================================
  Hits        50652    50652           
  Misses      25819    25819           
  Partials     3074     3074           
Flag Coverage Δ
Linux_1 30.75% <ø> (ø)
Linux_2 55.58% <ø> (ø)
Linux_3 40.37% <ø> (ø)
Linux_4 31.55% <ø> (ø)
Windows_1 30.77% <ø> (ø)
Windows_2 55.53% <ø> (ø)
Windows_3 40.37% <ø> (ø)
Windows_4 31.55% <ø> (ø)

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 3cfcc8a into opensearch-project:main Jul 30, 2024
67 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jul 30, 2024
* fix discover options

Signed-off-by: abbyhu2000 <[email protected]>

* Changeset file for PR #7581 created/updated

* fix discover options

Signed-off-by: abbyhu2000 <[email protected]>

* update tooltip

Signed-off-by: abbyhu2000 <[email protected]>

---------

Signed-off-by: abbyhu2000 <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
(cherry picked from commit 3cfcc8a)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
LDrago27 pushed a commit that referenced this pull request Jul 30, 2024
* fix discover options



* Changeset file for PR #7581 created/updated

* fix discover options



* update tooltip



---------



(cherry picked from commit 3cfcc8a)

Signed-off-by: abbyhu2000 <[email protected]>
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>
Qxisylolo pushed a commit to Qxisylolo/OpenSearch-Dashboards that referenced this pull request Aug 1, 2024
* fix discover options

Signed-off-by: abbyhu2000 <[email protected]>

* Changeset file for PR opensearch-project#7581 created/updated

* fix discover options

Signed-off-by: abbyhu2000 <[email protected]>

* update tooltip

Signed-off-by: abbyhu2000 <[email protected]>

---------

Signed-off-by: abbyhu2000 <[email protected]>
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.

4 participants