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

[Bug fix] Add conditional rendering for data connection page's tabs #1667

Merged

Conversation

RyanL1997
Copy link
Collaborator

@RyanL1997 RyanL1997 commented Apr 2, 2024

Description

Add conditional rendering for data connection page's tabs

Issues Resolved

Screenshot after fix

Screenshot 2024-04-01 at 7 26 30 PM

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.

@RyanL1997 RyanL1997 added backport 2.x v2.14.0 bug Something isn't working labels Apr 2, 2024
Copy link

codecov bot commented Apr 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 57.56%. Comparing base (bccdc31) to head (d52ab51).
Report is 17 commits behind head on main.

❗ Current head d52ab51 differs from pull request most recent head 99cf58d. Consider uploading reports for the commit 99cf58d to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1667      +/-   ##
==========================================
- Coverage   57.61%   57.56%   -0.05%     
==========================================
  Files         368      367       -1     
  Lines       13915    13925      +10     
  Branches     3650     3654       +4     
==========================================
- Hits         8017     8016       -1     
- Misses       5835     5845      +10     
- Partials       63       64       +1     
Flag Coverage Δ
dashboards-observability 57.56% <100.00%> (-0.05%) ⬇️

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.

Copy link
Collaborator

@Swiddis Swiddis left a comment

Choose a reason for hiding this comment

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

Tentative approval, agree with author on inverting that one condition

@RyanL1997 RyanL1997 force-pushed the prometheus-data-connection-fix branch from d52ab51 to 6ef7372 Compare April 29, 2024 21:54
@mengweieric mengweieric merged commit 914d6f2 into opensearch-project:main Apr 29, 2024
13 of 19 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Apr 29, 2024
…1667)

* Add conditional rendering for data connection page for tabs

Signed-off-by: Ryan Liang <[email protected]>

* Add tests for conditional rendering of data connection tabs

Signed-off-by: Ryan Liang <[email protected]>

* Reverse the if check for datasource for s3glue

Signed-off-by: Ryan Liang <[email protected]>

---------

Signed-off-by: Ryan Liang <[email protected]>
(cherry picked from commit 914d6f2)
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 Apr 30, 2024
…1667)

* Add conditional rendering for data connection page for tabs

Signed-off-by: Ryan Liang <[email protected]>

* Add tests for conditional rendering of data connection tabs

Signed-off-by: Ryan Liang <[email protected]>

* Reverse the if check for datasource for s3glue

Signed-off-by: Ryan Liang <[email protected]>

---------

Signed-off-by: Ryan Liang <[email protected]>
(cherry picked from commit 914d6f2)
Signed-off-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#1667)

* Add conditional rendering for data connection page for tabs

Signed-off-by: Ryan Liang <[email protected]>

* Add tests for conditional rendering of data connection tabs

Signed-off-by: Ryan Liang <[email protected]>

* Reverse the if check for datasource for s3glue

Signed-off-by: Ryan Liang <[email protected]>

---------

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