Commit Graph

8 Commits

Author SHA1 Message Date
JUST.in DO IT 6e1ef193dd
fix(sqllab): Add abort call on query refresh timeout (#29956) 2024-08-17 06:59:57 +09:00
JUST.in DO IT 8450cca998
fix: Revert "fix(sqllab): flaky json explore modal due to over-rendering (#26156)" (#26284) 2023-12-15 15:05:00 -08:00
JUST.in DO IT f30f685eb5
fix(sqllab): flaky json explore modal due to over-rendering (#26156) 2023-12-07 09:28:59 -08:00
JUST.in DO IT 8b2a408dea
fix(sqllab): Invalid start date (#25133) 2023-09-01 11:28:19 -07:00
JUST.in DO IT 8ba0b81957
fix(sqllab): Add threshold for checking inactive queries (#24536)
Co-authored-by: Justin Park <justinpark@apache.org>
2023-06-29 14:06:12 -07:00
JUST.in DO IT 0c0d2b38a6
fix(sqllab): infinite running state on disconnect (#23669) 2023-04-18 12:26:29 -07:00
Diego Medina 14878a160f
chore: Migrate /superset/queries/<last_updated_ms> to API v1 (#22611) 2023-01-27 13:20:56 -05:00
Eric Briscoe 9f9aae49c9
chore: Convert QueryAutoRefresh to TypeScript functional React component [sc-48362] (#20179)
* git commit -m 'Convert QueryAutoRefresh to functional component [sc-48362]'

* addressing PR comments [sc-48362]

Removes unneeded props and state tracking of offline, adds finally block to simplify clearing pending request, simplifies value comparison in array by using includes in place of indexOf

* Address PR comment to use enum for QueryState [sc-48362]

Original implementation had string literals used in multiple places representing Query.state value options.  This commit creates a formal TypeScript enum for QueryState so we can remove string literals and ensure better consistency

* Address PR comments for object type validation [sc-48362]

This commit resolves an issue why the TypeScript typing for queryList was marked as a Query[] but was actually a Dictionary (associative array) or Queries.  A new type QueryDictionary has been added and the QueryAutoRefresh code was adjusted to use QueryDictionary instead of Query[] in appropriate places as well as unit tests.  Commit also removes QueryAutoRefreshContainer by making the once component using QueryAutoRefresh (which is already redux connected) pass the needed values on props.  this simplifies the code base and reduce files that need unit testing while keeping QueryAutoRefresh out of needing a redux connection directly.

* Addresses PR comment to add QueryState.SCHEDULED to runningQueryStateList [sc-48362]

In previous implementation 'scheduled' was not included int he list of Query States.  Further investigation shows it should be added to as a running state.

* Fix prettier lint error [sc-48362]

* Adjust unit tests for props update hoisting callbacks out of actions wrapper object [sc-48362]

* Update with changes from master [sc-48362]

Merges in updates from master and resolves conflicts from relocation of some of the Query TypeScript definitions into core

* Removes logic setting user offline and relying on results panel error message [sc-48362]

* Fixes bad import after some TypeScript definitions were relocated to core [sc-48362]

* Fixes TypeScript errors [sc-48362]
2022-06-22 13:20:02 -07:00