-
Notifications
You must be signed in to change notification settings - Fork 170
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
Use the getRedirectUrl
from OSD to generate nextUrl
#2072
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. |
getRedirectUrl
from OSD to generate nextUrl
0b3ed86
to
c8e849c
Compare
@SuZhou-Joe Can you look into the failing integ test? |
@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 <[email protected]>
Signed-off-by: SuZhou-Joe <[email protected]>
Signed-off-by: SuZhou-Joe <[email protected]>
Signed-off-by: SuZhou-Joe <[email protected]>
436e1d8
to
12d170d
Compare
* feat: consume the get redirect url function from osd core Signed-off-by: SuZhou-Joe <[email protected]> * feat: consume the get redirect url function from osd core Signed-off-by: SuZhou-Joe <[email protected]> * fix: failed unit test because of an invalid mocked request Signed-off-by: SuZhou-Joe <[email protected]> * fix: failed unit test because of an invalid mocked request Signed-off-by: SuZhou-Joe <[email protected]> --------- Signed-off-by: SuZhou-Joe <[email protected]> (cherry picked from commit 371495b) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* 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 <[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> Co-authored-by: Derek Ho <[email protected]>
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
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.