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

Add redirect with error message if integrations template not found #1412

Merged

Conversation

Swiddis
Copy link
Collaborator

@Swiddis Swiddis commented Feb 5, 2024

Description

If a user tries to access a nonexistent integration template, they get no UI. This causes a display bug if the user adds a template, creates an instance with the template, deletes the template, and tries to navigate to it. This PR adds minimal handling to send an error message and redirect to the full template list.

Issues Resolved

N/A

Check List

  • New functionality includes testing.
    • All tests pass, including unit test, integration test and doctest
  • New functionality has been documented.
    • New functionality has javadoc added
    • New functionality has user manual doc added
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@Swiddis Swiddis added bug Something isn't working integrations Used to denote items related to the Integrations project labels Feb 5, 2024
Copy link

codecov bot commented Feb 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (7cf0519) 53.95% compared to head (2f9fc78) 53.95%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1412   +/-   ##
=======================================
  Coverage   53.95%   53.95%           
=======================================
  Files         317      317           
  Lines       11360    11360           
  Branches     3026     3026           
=======================================
  Hits         6129     6129           
  Misses       5182     5182           
  Partials       49       49           
Flag Coverage Δ
dashboards-observability 53.95% <ø> (ø)

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.

@Swiddis Swiddis merged commit a5434f9 into opensearch-project:main Feb 6, 2024
20 of 26 checks passed
@Swiddis Swiddis deleted the missing-integration-redirect branch February 6, 2024 06:21
opensearch-trigger-bot bot pushed a commit that referenced this pull request Feb 6, 2024
…1412)

Signed-off-by: Simeon Widdis <[email protected]>
(cherry picked from commit a5434f9)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
opensearch-trigger-bot bot pushed a commit that referenced this pull request Feb 6, 2024
…1412)

Signed-off-by: Simeon Widdis <[email protected]>
(cherry picked from commit a5434f9)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
ps48 pushed a commit that referenced this pull request Feb 6, 2024
…1412) (#1415)

(cherry picked from commit a5434f9)

Signed-off-by: Simeon Widdis <[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>
ps48 pushed a commit that referenced this pull request Feb 6, 2024
…1412) (#1418)

(cherry picked from commit a5434f9)

Signed-off-by: Simeon Widdis <[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>
amsiglan pushed a commit to amsiglan/dashboards-observability that referenced this pull request Jun 7, 2024
…pensearch-project#1412) (opensearch-project#1415)

(cherry picked from commit a5434f9)

Signed-off-by: Simeon Widdis <[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>
(cherry picked from commit 8951362)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x backport 2.12 bug Something isn't working integrations Used to denote items related to the Integrations project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants