-
Notifications
You must be signed in to change notification settings - Fork 59
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
Fixed bugs in explorer redirection #1609
Fixed bugs in explorer redirection #1609
Conversation
Signed-off-by: Paul Sebastian <[email protected]>
Signed-off-by: Paul Sebastian <[email protected]>
Signed-off-by: Paul Sebastian <[email protected]>
Signed-off-by: Paul Sebastian <[email protected]>
Signed-off-by: Paul Sebastian <[email protected]>
d6aa0ff
to
e48ae4e
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1609 +/- ##
==========================================
- Coverage 57.75% 57.66% -0.10%
==========================================
Files 367 367
Lines 13825 13880 +55
Branches 3627 3640 +13
==========================================
+ Hits 7985 8004 +19
- Misses 5777 5813 +36
Partials 63 63
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: Paul Sebastian <[email protected]>
Signed-off-by: Paul Sebastian <[email protected]>
Signed-off-by: Paul Sebastian <[email protected]>
Signed-off-by: Paul Sebastian <[email protected]>
Signed-off-by: Paul Sebastian <[email protected]>
Signed-off-by: Paul Sebastian <[email protected]>
Signed-off-by: Paul Sebastian <[email protected]>
Signed-off-by: Paul Sebastian <[email protected]>
Signed-off-by: Paul Sebastian <[email protected]>
@@ -6,6 +6,8 @@ | |||
|
|||
import { BaseItem } from '@algolia/autocomplete-core'; | |||
|
|||
export const textAreaMaxLength = 16384; |
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.
Just curious: where is this limit from? I don't see 2^14 often.
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.
arbitrary amount where I looked at how long certain sql queries could be, i made a value judgement. we can always change it later, though
); | ||
setTempQuery(queryToRun); | ||
if (datasourceName && datasourceType) { | ||
dispatch( |
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.
Another question out of curiosity: what's the benefit of dispatch
over useEffect
? I'm not sure what'd motivate me to use one over the other, I haven't looked deeply into redux.
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.
the extent of my knowledge is that dispatch would be used for updating redux state, i'm not sure about if useEffect could be used for the same thing
* allow for redirection in associated objects skipping indices Signed-off-by: Paul Sebastian <[email protected]> * redirection in datasources table implemented Signed-off-by: Paul Sebastian <[email protected]> * moderate s3 callout changes Signed-off-by: Paul Sebastian <[email protected]> * lint complaint Signed-off-by: Paul Sebastian <[email protected]> * update snap Signed-off-by: Paul Sebastian <[email protected]> * fix discover to explorer url redirection Signed-off-by: Paul Sebastian <[email protected]> * include glue cache s3 callout Signed-off-by: Paul Sebastian <[email protected]> * update snapshot Signed-off-by: Paul Sebastian <[email protected]> * expand text area max length Signed-off-by: Paul Sebastian <[email protected]> * s3 no results page updated implementation Signed-off-by: Paul Sebastian <[email protected]> * open up acceleration flyout when direct query visualization Signed-off-by: Paul Sebastian <[email protected]> * update snapshots Signed-off-by: Paul Sebastian <[email protected]> * update one last snap Signed-off-by: Paul Sebastian <[email protected]> * fix lint complaint for a file i didnt even touch Signed-off-by: Paul Sebastian <[email protected]> --------- Signed-off-by: Paul Sebastian <[email protected]> (cherry picked from commit faf9c23) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* allow for redirection in associated objects skipping indices Signed-off-by: Paul Sebastian <[email protected]> * redirection in datasources table implemented Signed-off-by: Paul Sebastian <[email protected]> * moderate s3 callout changes Signed-off-by: Paul Sebastian <[email protected]> * lint complaint Signed-off-by: Paul Sebastian <[email protected]> * update snap Signed-off-by: Paul Sebastian <[email protected]> * fix discover to explorer url redirection Signed-off-by: Paul Sebastian <[email protected]> * include glue cache s3 callout Signed-off-by: Paul Sebastian <[email protected]> * update snapshot Signed-off-by: Paul Sebastian <[email protected]> * expand text area max length Signed-off-by: Paul Sebastian <[email protected]> * s3 no results page updated implementation Signed-off-by: Paul Sebastian <[email protected]> * open up acceleration flyout when direct query visualization Signed-off-by: Paul Sebastian <[email protected]> * update snapshots Signed-off-by: Paul Sebastian <[email protected]> * update one last snap Signed-off-by: Paul Sebastian <[email protected]> * fix lint complaint for a file i didnt even touch Signed-off-by: Paul Sebastian <[email protected]> --------- Signed-off-by: Paul Sebastian <[email protected]> (cherry picked from commit faf9c23) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* allow for redirection in associated objects skipping indices * redirection in datasources table implemented * moderate s3 callout changes * lint complaint * update snap * fix discover to explorer url redirection * include glue cache s3 callout * update snapshot * expand text area max length * s3 no results page updated implementation * open up acceleration flyout when direct query visualization * update snapshots * update one last snap * fix lint complaint for a file i didnt even touch --------- (cherry picked from commit faf9c23) Signed-off-by: Paul Sebastian <[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>
* allow for redirection in associated objects skipping indices * redirection in datasources table implemented * moderate s3 callout changes * lint complaint * update snap * fix discover to explorer url redirection * include glue cache s3 callout * update snapshot * expand text area max length * s3 no results page updated implementation * open up acceleration flyout when direct query visualization * update snapshots * update one last snap * fix lint complaint for a file i didnt even touch --------- (cherry picked from commit faf9c23) Signed-off-by: Paul Sebastian <[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>
…ject#1609) (cherry picked from commit d3b3f84d988e10d848cd8cd71828145d39c9768f) Co-authored-by: Darshit Chanpura <[email protected]>
…rch-project#1624) * allow for redirection in associated objects skipping indices * redirection in datasources table implemented * moderate s3 callout changes * lint complaint * update snap * fix discover to explorer url redirection * include glue cache s3 callout * update snapshot * expand text area max length * s3 no results page updated implementation * open up acceleration flyout when direct query visualization * update snapshots * update one last snap * fix lint complaint for a file i didnt even touch --------- (cherry picked from commit faf9c23) Signed-off-by: Paul Sebastian <[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> (cherry picked from commit 256eeda)
Description
allow for redirection in associated objects skipping indices
redirection in datasources table implemented
extended associated object type
fixed url redirection to stop causing crashes and unexpected issues, used mainly in the discover to explorer flow
extended the query text area character limit now to 2^14
change the direct query visualization error to open acc flyout in Q.W.
s3 no results page changes with sample queries and glue data cache support to populate a functioning query, shown in the following flows:|
s3 PPL empty page (no query run yet):



s3 SQL empty page (no query run yet):
s3 no results (post query run w/ no data returned):
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.