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

[Doc Links Service] Clean up noDocumentation links #3685

Merged
merged 1 commit into from
Apr 13, 2023

Conversation

sayuree
Copy link
Contributor

@sayuree sayuree commented Mar 24, 2023

Description

[Added corresponding links from the documentation for non-working links
Edited DocLinksStart interface properties
Edited the usage of interface in other files correspondigly
]

Issues Resolved

fixes #3208

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

@sayuree sayuree requested a review from a team as a code owner March 24, 2023 11:05
@Abyl10
Copy link

Abyl10 commented Mar 27, 2023

Thank you for your recent code changes! I noticed that the CHANGELOG.md file was not updated to reflect the recent changes. It's important that we keep the changelog up-to-date so that other developers can understand what changes were made, why they were made, and how they may impact the codebase. Could you please update the CHANGELOG.md file with as much detail as possible?

@codecov-commenter
Copy link

codecov-commenter commented Mar 27, 2023

Codecov Report

Merging #3685 (efad27d) into main (925b96d) will decrease coverage by 0.01%.
The diff coverage is n/a.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@            Coverage Diff             @@
##             main    #3685      +/-   ##
==========================================
- Coverage   66.43%   66.43%   -0.01%     
==========================================
  Files        3210     3210              
  Lines       61677    61677              
  Branches     9522     9522              
==========================================
- Hits        40977    40973       -4     
- Misses      18419    18422       +3     
- Partials     2281     2282       +1     
Flag Coverage Δ
Linux 66.37% <ø> (-0.01%) ⬇️
Windows 66.38% <ø> (ø)

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

Impacted Files Coverage Δ
src/core/public/doc_links/doc_links_service.ts 100.00% <ø> (ø)
...lugins/visualize/public/application/utils/utils.ts 26.66% <ø> (ø)

... and 2 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Member

@joshuarrrr joshuarrrr left a comment

Choose a reason for hiding this comment

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

@sayuree Thanks for the PR - it mostly looks great!

I found some additional links that can be defined.

There are also some minor requested changes.

CHANGELOG.md Outdated Show resolved Hide resolved
src/core/public/doc_links/doc_links_service.ts Outdated Show resolved Hide resolved
src/core/public/doc_links/doc_links_service.ts Outdated Show resolved Hide resolved
src/core/public/doc_links/doc_links_service.ts Outdated Show resolved Hide resolved
src/core/public/doc_links/doc_links_service.ts Outdated Show resolved Hide resolved
src/core/public/doc_links/doc_links_service.ts Outdated Show resolved Hide resolved
src/core/public/doc_links/doc_links_service.ts Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
Copy link
Member

@joshuarrrr joshuarrrr left a comment

Choose a reason for hiding this comment

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

@sayuree Can you also add the commented links to the restAPI section (L330-340)?

@joshuarrrr joshuarrrr changed the title Add edits to noDocumentation links Clean up noDocumentation links Mar 29, 2023
@joshuarrrr joshuarrrr changed the title Clean up noDocumentation links [Doc Links Service] Clean up noDocumentation links Mar 29, 2023
Copy link
Member

@joshuarrrr joshuarrrr left a comment

Choose a reason for hiding this comment

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

For L442-L445, please move visualize to the opensearchDashboards section and update visualize.guide to be https://opensearch.org/docs/latest/dashboards/visualize/viz-index/

@@ -40,7 +40,7 @@ export const ExperimentalCallout = ({ docLinks }: { docLinks: DocLinksStart }) =
defaultMessage="To leave feedback, visit "
/>
}
<EuiLink href={docLinks.links.noDocumentation.openSearchForum} target="_blank">
<EuiLink href={docLinks.links.opensearch.openSearchForum} target="_blank">
Copy link
Member

Choose a reason for hiding this comment

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

Please also update the mock in src/plugins/data_source_management/public/mocks.ts

@joshuarrrr
Copy link
Member

@sayuree Will you be able to make the additional requested changes?

@sayuree
Copy link
Contributor Author

sayuree commented Apr 4, 2023

@joshuarrrr Added requested changes

Copy link
Member

@joshuarrrr joshuarrrr left a comment

Choose a reason for hiding this comment

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

Thanks @sayuree , almost there! Just three tasks left, summarized here:

  1. Can you also add the commented links to the restAPI section (L345-355)?
  2. Please also update the mock in src/plugins/data_source_management/public/mocks.ts
  3. See suggested changes for visualize.guide link.

guide: `${OPENSEARCH_DASHBOARDS_VERSIONED_DOCS}discover/multi-data-sources/`,
},
visualize: {
guide: `${OPENSEARCH_WEBSITE_DOCS}`,
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
guide: `${OPENSEARCH_WEBSITE_DOCS}`,
// https://opensearch.org/docs/latest/dashboards/visualize/viz-index/
guide: `${OPENSEARCH_WEBSITE_DOCS}visualize/viz-index/`,

@sayuree sayuree requested a review from joshuarrrr April 5, 2023 13:32
Copy link
Member

@joshuarrrr joshuarrrr left a comment

Choose a reason for hiding this comment

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

OK, looks good, I'll just wait for the automation to complete before approving. Thanks for all the changes!

src/plugins/data_source_management/public/mocks.ts Outdated Show resolved Hide resolved
@joshuarrrr
Copy link
Member

@sayuree Can you rebase or update the PR to resolve the conflict? I believe the experimental callout has since been removed.

Signed-off-by: sabina.zaripova <sabina.zaripova@nu.edu.kz>
@sayuree
Copy link
Contributor Author

sayuree commented Apr 11, 2023

@sayuree Can you rebase or update the PR to resolve the conflict? I believe the experimental callout has since been removed.

I have updated the PR, hope changes will be approved.

opensearch-trigger-bot bot pushed a commit that referenced this pull request Apr 13, 2023
Signed-off-by: sabina.zaripova <sabina.zaripova@nu.edu.kz>
(cherry picked from commit 4e14aae)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
aoguan1990 pushed a commit to aoguan1990/OpenSearch-Dashboards that referenced this pull request Apr 14, 2023
…ct#3685)

Signed-off-by: sabina.zaripova <sabina.zaripova@nu.edu.kz>
AMoo-Miki pushed a commit that referenced this pull request Apr 15, 2023
)

* Add noDocumentation links (#3208) (#3685)

Signed-off-by: sabina.zaripova <sabina.zaripova@nu.edu.kz>
(cherry picked from commit 4e14aae)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* update changelog

Signed-off-by: Josh Romero <rmerqg@amazon.com>

---------

Signed-off-by: sabina.zaripova <sabina.zaripova@nu.edu.kz>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Signed-off-by: Josh Romero <rmerqg@amazon.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Josh Romero <rmerqg@amazon.com>
sikhote pushed a commit to sikhote/OpenSearch-Dashboards that referenced this pull request Apr 24, 2023
…ct#3685)

Signed-off-by: sabina.zaripova <sabina.zaripova@nu.edu.kz>
Signed-off-by: David Sinclair <david@sinclair.tech>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x OSCI Open Source Contributor Initiative v2.7.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Tech Debt] Clean up docs_link_service organization so that strings are in the right categories
5 participants