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

Conform to Navigation changes from OSD core #2022

Merged
merged 11 commits into from
Jul 19, 2024

Conversation

derek-ho
Copy link
Collaborator

@derek-ho derek-ho commented Jul 3, 2024

Description

Adopts to nav changes in core when a feature flag is enabled

Category

Enhancement

Why these changes are required?

Fix: #2020

What is the old behavior before changes and new behavior after changes?

Screen.Recording.2024-07-18.at.4.44.10.PM.mov

The first part of the video is the current behavior and the behavior with the feature flag off, the second part of the video is the new behavior with the feature flag on.

Issues Resolved

Fix: #2020

Testing

Manual testing. Since the feature branch is not yet merged in core and many of the API calls are simply registration calls from exposed APIs code tests don't seem feasible.

Check List

  • New functionality includes testing
  • New functionality has been documented
  • 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.

Signed-off-by: Derek Ho <dxho@amazon.com>
Signed-off-by: Derek Ho <dxho@amazon.com>
SuZhou-Joe and others added 3 commits July 5, 2024 11:32
Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
feat: enable data source info in new left navigation
Signed-off-by: Derek Ho <dxho@amazon.com>
Signed-off-by: Derek Ho <dxho@amazon.com>
Signed-off-by: Derek Ho <dxho@amazon.com>
@derek-ho derek-ho changed the title Nav change Conform to Navigation changes from OSD core Jul 18, 2024
@derek-ho derek-ho marked this pull request as ready for review July 18, 2024 20:45
Copy link

codecov bot commented Jul 18, 2024

Codecov Report

Attention: Patch coverage is 22.22222% with 42 lines in your changes missing coverage. Please review.

Project coverage is 69.34%. Comparing base (fe847af) to head (4eade76).

Files Patch % Lines
public/plugin.ts 5.00% 38 Missing ⚠️
public/utils/datasource-utils.ts 66.66% 2 Missing and 1 partial ⚠️
public/apps/configuration/top-nav-menu.tsx 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2022      +/-   ##
==========================================
- Coverage   70.36%   69.34%   -1.02%     
==========================================
  Files          96       96              
  Lines        2541     2587      +46     
  Branches      377      375       -2     
==========================================
+ Hits         1788     1794       +6     
- Misses        660      699      +39     
- Partials       93       94       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@derek-ho derek-ho added the backport 2.x backport to 2.x branch label Jul 19, 2024
@derek-ho derek-ho merged commit 2f8c6f4 into opensearch-project:main Jul 19, 2024
17 of 20 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jul 19, 2024
* Adopt to nav changes in core

Signed-off-by: Derek Ho <dxho@amazon.com>

* Lint

Signed-off-by: Derek Ho <dxho@amazon.com>

* feat: enable data source info in new left navigation

Signed-off-by: SuZhou-Joe <suzhou@amazon.com>

* feat: enable data source info in new left navigation

Signed-off-by: SuZhou-Joe <suzhou@amazon.com>

* Address PR feedback

Signed-off-by: Derek Ho <dxho@amazon.com>

* Lint

Signed-off-by: Derek Ho <dxho@amazon.com>

* Fix lint and tests

Signed-off-by: Derek Ho <dxho@amazon.com>

---------

Signed-off-by: Derek Ho <dxho@amazon.com>
Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
Co-authored-by: SuZhou-Joe <suzhou@amazon.com>
(cherry picked from commit 2f8c6f4)
derek-ho added a commit that referenced this pull request Jul 19, 2024
* Adopt to nav changes in core

Signed-off-by: Derek Ho <dxho@amazon.com>

* Lint

Signed-off-by: Derek Ho <dxho@amazon.com>

* feat: enable data source info in new left navigation

Signed-off-by: SuZhou-Joe <suzhou@amazon.com>

* feat: enable data source info in new left navigation

Signed-off-by: SuZhou-Joe <suzhou@amazon.com>

* Address PR feedback

Signed-off-by: Derek Ho <dxho@amazon.com>

* Lint

Signed-off-by: Derek Ho <dxho@amazon.com>

* Fix lint and tests

Signed-off-by: Derek Ho <dxho@amazon.com>

---------

Signed-off-by: Derek Ho <dxho@amazon.com>
Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
Co-authored-by: SuZhou-Joe <suzhou@amazon.com>
(cherry picked from commit 2f8c6f4)

Co-authored-by: Derek Ho <dxho@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x backport to 2.x branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] Security Plugin Navigation Changes
4 participants