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

Use the getRedirectUrl from OSD to generate nextUrl #2072

Merged
merged 4 commits into from
Aug 15, 2024

Conversation

SuZhou-Joe
Copy link
Member

@SuZhou-Joe SuZhou-Joe commented Jul 30, 2024

Description

This PR is to adopt the util function getRedirectUrl from OSD core to get a unified url after login.

This PR should not merged until opensearch-project/OpenSearch-Dashboards#7600 get merged.

Category

Bug fix

Why these changes are required?

#2069

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

Issues Resolved

#2069

Testing

[Please provide details of testing done: unit testing, integration testing and manual testing]

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.

Copy link

codecov bot commented Jul 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.17%. Comparing base (a13b2e6) to head (12d170d).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2072   +/-   ##
=======================================
  Coverage   71.17%   71.17%           
=======================================
  Files          96       96           
  Lines        2598     2598           
  Branches      380      387    +7     
=======================================
  Hits         1849     1849           
  Misses        649      649           
  Partials      100      100           

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

@SuZhou-Joe SuZhou-Joe changed the title Feature/add get next url Use the getRedirectUrl from OSD to generate nextUrl Jul 31, 2024
@SuZhou-Joe SuZhou-Joe marked this pull request as ready for review August 13, 2024 10:04
@SuZhou-Joe
Copy link
Member Author

@derek-ho @cwperks Would you mind taking a look on this PR?

@cwperks
Copy link
Member

cwperks commented Aug 13, 2024

@SuZhou-Joe Can you look into the failing integ test?

@SuZhou-Joe
Copy link
Member Author

@cwperks Sure, fixed because the unit test used to use a simple object to fake OpenSearchDashboardRequest, change that piece to a correct request mock.

Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
@derek-ho derek-ho merged commit 371495b into opensearch-project:main Aug 15, 2024
19 checks passed
@derek-ho derek-ho added the backport 2.x backport to 2.x branch label Aug 15, 2024
opensearch-trigger-bot bot pushed a commit that referenced this pull request Aug 15, 2024
* feat: consume the get redirect url function from osd core

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

* feat: consume the get redirect url function from osd core

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

* fix: failed unit test because of an invalid mocked request

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

* fix: failed unit test because of an invalid mocked request

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

---------

Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
(cherry picked from commit 371495b)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
derek-ho added a commit that referenced this pull request Aug 19, 2024
* feat: consume the get redirect url function from osd core



* feat: consume the get redirect url function from osd core



* fix: failed unit test because of an invalid mocked request



* fix: failed unit test because of an invalid mocked request



---------


(cherry picked from commit 371495b)

Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
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>
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.

3 participants