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

[OSCI] removed KUI usage in visualizations #5462

Closed
wants to merge 2 commits into from

Conversation

caileyjen
Copy link

@caileyjen caileyjen commented Nov 10, 2023

Description

Removed KUI classes in the DisabledLabVisualization component
Changed placeholder text and icon should be with OuiEmptyPrompt
Updated text to "[vispanel title] is an experimental visualization. Enable experimental visualizations within Advanced Settings."

Issues Resolved

#3386

Screenshot

visDisabled

Testing the changes

How to view the DisabledVabVisualization component

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: Cailey Jen <[email protected]>
className="kuiVerticalRhythm visDisabledLabVisualization__icon kuiIcon fa-flask"
aria-hidden="true"
<EuiEmptyPrompt
iconType="database"
Copy link
Member

Choose a reason for hiding this comment

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

Seems icon "beaker" makes a bit more sense here? cuz it is experimental?

<Fragment>
<p>
Enable experimental visualizations within{' '}
<EuiLink href="https://github.com/app/management/opensearch-dashboards/settings">
Copy link
Member

Choose a reason for hiding this comment

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

Using a url directly seems not the best way to do this? According to #3208, doc links should be from DocLinksService. Some places you could check:

  • src/core/public/doc_links/doc_links_service.ts: could add a sectionmanagement: { advancedSettingsLink: "**"} for Dashboards Management links
  • src/plugins/visualizations/public/services.ts: import DocLinksStart and add export const [getDocLinks, setDocLinks] = createGetterSetter<DocLinksStart>('docLinks');
  • src/plugins/visualizations/public/embeddable/disabled_lab_visualization.tsx: use getDocLinks to get the link and use it in href.

The links seems not correct to me as well. https://github.com/app/management/opensearch-dashboards/settings is 404. I think this https://opensearch.org/docs/latest/dashboards/management/advanced-settings/ might be the one if you are trying to direct people to instructions on how to use advanced settings.

Copy link
Author

Choose a reason for hiding this comment

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

Thank you! I wasn't completely sure about what I was supposed to link to. I'll make the appropriate changes.

Copy link

codecov bot commented Nov 13, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 66.82%. Comparing base (d2fa466) to head (f8d8a2d).
Report is 700 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5462   +/-   ##
=======================================
  Coverage   66.82%   66.82%           
=======================================
  Files        3291     3291           
  Lines       63174    63174           
  Branches    10055    10055           
=======================================
  Hits        42213    42213           
- Misses      18479    18551   +72     
+ Partials     2482     2410   -72     
Flag Coverage Δ
Linux_1 35.24% <ø> (ø)
Linux_2 55.28% <ø> (ø)
Linux_3 43.79% <ø> (ø)
Linux_4 35.34% <ø> (ø)
Windows_1 35.26% <ø> (ø)
Windows_2 55.25% <ø> (ø)
Windows_3 43.81% <ø> (ø)
Windows_4 35.34% <ø> (ø)

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.

@joshuarrrr
Copy link
Member

@caileyjen Just checking in to see if you will be able to make some of Anan's suggestions.

@joshuarrrr joshuarrrr mentioned this pull request Dec 18, 2023
8 tasks
@kavilla kavilla assigned ananzh and unassigned joshuarrrr Apr 2, 2024
ananzh added a commit to ananzh/OpenSearch-Dashboards that referenced this pull request Apr 6, 2024
This PR completes
opensearch-project#5462

Please refer to the above PR for more details

Signed-off-by: Anan Zhuang <[email protected]>
AMoo-Miki pushed a commit that referenced this pull request Apr 11, 2024
…PR (#6360)

This PR completes
#5462

Please refer to the above PR for more details

Signed-off-by: Anan Zhuang <[email protected]>
opensearch-trigger-bot bot pushed a commit that referenced this pull request Apr 11, 2024
…PR (#6360)

This PR completes
#5462

Please refer to the above PR for more details

Signed-off-by: Anan Zhuang <[email protected]>
(cherry picked from commit 46b17e4)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

# Conflicts:
#	CHANGELOG.md
ananzh pushed a commit that referenced this pull request Apr 30, 2024
…PR (#6360) (#6407)

This PR completes
#5462

Please refer to the above PR for more details

Signed-off-by: Anan Zhuang <[email protected]>
(cherry picked from commit 46b17e4)
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>
@caileyjen caileyjen closed this by deleting the head repository Sep 24, 2024
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