Closed fiskus closed 1 week ago
Attention: Patch coverage is 68.47091%
with 233 lines
in your changes missing coverage. Please review.
Project coverage is 39.02%. Comparing base (
5e7ce5d
) to head (eabaec7
). Report is 1 commits behind head on master.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
1.blocking pop-ups on errors encountered while trying to run a query (try "list tables" or some other invalid sql) feel quite odd. i'd much prefer a persistent error message that doesn't block the ui and doesn't disappear
I know how to fix this. And it, probably, even makes the state/data more consistent. Added TODO notes, and going to implement this, if I have time.
- getting an error (can't access property 0, rows[0] is undefined)
Thanks! I thought, I fixed that. Fixed now
- "load more" button...loads the same data again
Fixed
- workgroup looks a off ... use a stock control
Done
- "query executions" heading seems too small (especially considering that it gets larger when navigated to)
That's intentional, but probably overthought. Index page has the main element "Query body" and this header is the biggest, other headers are equal sized, including "Query executions". The results page has two main elements, "Query body" and results with breadcrumbs (including "Query executions"). I think, I'm going to do 2 things:
Done
- it feels somewhat confusing that in query executions table only the completion date is clickable (quite easy to miss imo)
Noted and understood. But, I think, it is more or less familiar pattern from social media. I'll make the whole row clickable, if I have time.
- query execution ui jumps when expanded / collapsed
Fixed
- ux suggestion: a button to insert the query into the editor, not just copy it
I'm not sure about this. The copy and paste is, probably, the main use case, so it can be replaced by insertion. But I don't know what icon I can use ("edit" icon, I guess). And it is somewhat off, that I click here, but UI is changed in a different place. Also, user can go to execution query (click on "Date completed" link), and edit it there. I need to experiment with this.
- layout jumps when switching to / from individual executions
Fixed
Also, user can go to execution query (click on "Date completed" link), and edit it there. I need to experiment with this.
probably that's good enough (i only noticed that "feature" after posting the review)
Persistent query error - done.
The whole execution row clickable - done.
Re-tested manually, and wrote some more tests.
Fixed two bugs:
Also, added a couple of tests more
The main ideas for refactoring are
replacing
with
use state
Provider
instead of passing data as propsBesides refactoring, there are numerous changes and improvements:
I suggest to start reading the code from Athena.tsx:
and then into
Model.Provider
→app/containers/Buckets/Athena/model/state.tsx