-
Notifications
You must be signed in to change notification settings - Fork 34
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
Fix reporting discover #190
Fix reporting discover #190
Conversation
Signed-off-by: Derek Ho <dxho@amazon.com>
@@ -87,7 +91,7 @@ const generateInContextReport = async ( | |||
}; | |||
|
|||
fetch( | |||
`${getApiPath()}/reporting/generateReport?${new URLSearchParams( | |||
`../api/reporting/generateReport?${new URLSearchParams( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is something wrong here - getApiPath is returning two different things for discover 1.0 and discover 2.0, causing reporting to fail when in new discover, need to look into this
Signed-off-by: Derek Ho <dxho@amazon.com>
it doesn't work for me with basepath set |
Signed-off-by: Derek Ho <dxho@amazon.com>
@@ -87,7 +91,7 @@ const generateInContextReport = async ( | |||
}; | |||
|
|||
fetch( | |||
`${getApiPath()}/reporting/generateReport?${new URLSearchParams( | |||
`../${getApiPath()}/reporting/generateReport?${new URLSearchParams( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instead of this, try adding if (window.location.href.includes('/data-explorer/discover/')) return '../../../api'
in line 339 (above the other if)
Signed-off-by: Derek Ho <dxho@amazon.com>
* Fix reporting discover Signed-off-by: Derek Ho <dxho@amazon.com> * Get it to work Signed-off-by: Derek Ho <dxho@amazon.com> * Revert api file and add extra quote for regex matching Signed-off-by: Derek Ho <dxho@amazon.com> * Add extra condition if coming from dashboards management Signed-off-by: Derek Ho <dxho@amazon.com> --------- Signed-off-by: Derek Ho <dxho@amazon.com> (cherry picked from commit 2d643cc) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Fix reporting discover Signed-off-by: Derek Ho <dxho@amazon.com> * Get it to work Signed-off-by: Derek Ho <dxho@amazon.com> * Revert api file and add extra quote for regex matching Signed-off-by: Derek Ho <dxho@amazon.com> * Add extra condition if coming from dashboards management Signed-off-by: Derek Ho <dxho@amazon.com> --------- Signed-off-by: Derek Ho <dxho@amazon.com> (cherry picked from commit 2d643cc) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Description
[Describe what this change achieves]
Issues Resolved
[List any issues this PR will resolve]
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.