Skip to content

Commit

Permalink
Athena refactor (#2975)
Browse files Browse the repository at this point in the history
* reduce callback hell of components inside State and then inside Athena
* reduce dependencies of components each from the other, or at least make them more predictable

Co-authored-by: Alexei Mochalov <[email protected]>
  • Loading branch information
fiskus and nl0 authored Aug 12, 2022
1 parent 8f59d6e commit 9c1d054
Show file tree
Hide file tree
Showing 14 changed files with 697 additions and 749 deletions.
14 changes: 10 additions & 4 deletions catalog/app/constants/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,14 +150,20 @@ export const bucketESQueries = {
url: (bucket) => `/b/${bucket}/queries/es`,
}

export const bucketAthenaQueries = {
export const bucketAthena = {
path: '/b/:bucket/queries/athena',
url: (bucket) => `/b/${bucket}/queries/athena`,
}

export const bucketAthenaQueryExecution = {
path: '/b/:bucket/queries/athena/:queryExecutionId',
url: (bucket, queryExecutionId) => `/b/${bucket}/queries/athena/${queryExecutionId}`,
export const bucketAthenaWorkgroup = {
path: '/b/:bucket/queries/athena/:workgroup',
url: (bucket, workgroup) => `/b/${bucket}/queries/athena/${workgroup}`,
}

export const bucketAthenaExecution = {
path: '/b/:bucket/queries/athena/:workgroup/:queryExecutionId',
url: (bucket, workgroup, queryExecutionId) =>
`/b/${bucket}/queries/athena/${workgroup}/${queryExecutionId}`,
}

// legacy stuff
Expand Down
Loading

0 comments on commit 9c1d054

Please sign in to comment.