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

[Data Explorer] Add dismissible callout for discover #4857

Merged
merged 6 commits into from
Aug 30, 2023

Conversation

abbyhu2000
Copy link
Member

@abbyhu2000 abbyhu2000 commented Aug 30, 2023

Description

Add callout for both legacy discover and data explorer to warn users.

Issues Resolved

Screenshot

Screen.Recording.2023-08-30.at.11.36.05.AM.mov

Testing the changes

Check List

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

Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com>
Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com>
Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com>
Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com>
@abbyhu2000 abbyhu2000 added the ux / ui Improvements or additions to user experience, flows, components, UI elements label Aug 30, 2023
@codecov
Copy link

codecov bot commented Aug 30, 2023

Codecov Report

Merging #4857 (57748d0) into main (03ae2bd) will decrease coverage by 0.03%.
Report is 3 commits behind head on main.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main    #4857      +/-   ##
==========================================
- Coverage   66.46%   66.43%   -0.03%     
==========================================
  Files        3390     3396       +6     
  Lines       64742    64869     +127     
  Branches    10312    10356      +44     
==========================================
+ Hits        43030    43095      +65     
- Misses      19169    19215      +46     
- Partials     2543     2559      +16     
Flag Coverage Δ
Linux_1 34.85% <ø> (-0.02%) ⬇️
Linux_2 55.15% <ø> (ø)
Linux_3 44.23% <0.00%> (+0.05%) ⬆️
Linux_4 35.04% <ø> (ø)
Windows_1 34.87% <ø> (-0.02%) ⬇️
Windows_2 55.12% <ø> (ø)
Windows_3 44.24% <0.00%> (+0.04%) ⬆️
Windows_4 35.04% <ø> (ø)

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

Files Changed Coverage Δ
.../public/application/components/discover_legacy.tsx 0.00% <0.00%> (ø)

... and 10 files with indirect coverage changes

Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com>
CHANGELOG.md Outdated
@@ -279,6 +279,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
- Temporarily hardcode chromedriver to 112.0.0 to enable all ftr tests ([#4039](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/4039))
- Update MAINTAINERS.md and CODEOWNERS ([#3938](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/3938))
- Add opensearch-dashboards-docker-dev to .gitignore ([#3781](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/3781))
- [Data Explorer] Add dismissible callout for discover ([#4857](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/4857))
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 remove this? We dont need changelog entries for the Data Explorer PR's since i've already added on for introducing the feature

title="You're viewing Discover 2.0. The old Discover app will be retired in OpenSearch version 2.11. To switch back to the old version, toggle the New Discover."
iconType="alert"
dismissible
onDismissible={closeCallOut}
Copy link
Member

Choose a reason for hiding this comment

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

oh, not sure how i missed this in theOUI PR but this should be onDismiss Think we can get that changed in a followup PR?

Copy link
Member Author

Choose a reason for hiding this comment

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

sure

Copy link
Member Author

Choose a reason for hiding this comment

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

Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com>
@ashwin-pc ashwin-pc added the Skip-Changelog PRs that are too trivial to warrant a changelog or release notes entry label Aug 30, 2023
@ananzh ananzh merged commit 58ee450 into opensearch-project:main Aug 30, 2023
54 of 57 checks passed
@opensearch-trigger-bot
Copy link
Contributor

The backport to 2.x failed:

The process '/usr/bin/git' failed with exit code 128

To backport manually, run these commands in your terminal:

# Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/OpenSearch-Dashboards/backport-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/OpenSearch-Dashboards/backport-2.x
# Create a new branch
git switch --create backport/backport-4857-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 58ee450a7a63277222a7e1361865f0c5a8eb5538
# Push it to GitHub
git push --set-upstream origin backport/backport-4857-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/OpenSearch-Dashboards/backport-2.x

Then, create a pull request where the base branch is 2.x and the compare/head branch is backport/backport-4857-to-2.x.

@ashwin-pc ashwin-pc linked an issue Aug 31, 2023 that may be closed by this pull request
ashwin-pc pushed a commit to ashwin-pc/OpenSearch-Dashboards that referenced this pull request Aug 31, 2023
…ect#4857)

* add callout
* add dimissible

---------

Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com>
(cherry picked from commit 58ee450)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x data explorer Issues related to the Data Explorer project distinguished-contributor Skip-Changelog PRs that are too trivial to warrant a changelog or release notes entry ux / ui Improvements or additions to user experience, flows, components, UI elements v2.10.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Data Explorer] Research feedback options
3 participants