superset/superset-frontend
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
..
.storybook chore: bump storybook to 6.4.19, migrating config, and linting storybook config (#19245) 2022-03-28 14:02:47 -03:00
cypress-base Skip flaky Cypress test. (#20417) 2022-06-17 10:24:58 -06:00
packages chore: Convert QueryAutoRefresh to TypeScript functional React component [sc-48362] (#20179) 2022-06-22 13:20:02 -07:00
plugins fix(chart & table): make to prevent dates from wrapping (#20384) 2022-06-21 09:58:50 -03:00
scripts refactor(monorepo): update plugin dependencies (#17837) 2021-12-22 16:26:12 +08:00
spec fix: suppress translation warning in jest (#20404) 2022-06-21 20:38:58 +08:00
src chore: Convert QueryAutoRefresh to TypeScript functional React component [sc-48362] (#20179) 2022-06-22 13:20:02 -07:00
tools fix: rm eslint-plugin-translation-vars engine requirement (#20420) 2022-06-17 14:29:57 +08:00
.eslintignore chore: remove config of temporary_superset_ui (#18708) 2022-02-14 16:12:43 +08:00
.eslintrc.js chore: Changes the no-literal-colors lint rule to throw errors instead of warnings (#20034) 2022-05-12 15:07:56 -03:00
.gitignore Upgrade typescript to 3.8.2 (#9189) 2020-02-25 08:44:26 -08:00
.nvmrc chore: update node version in nvmrc (#17492) 2021-11-23 11:18:22 +02:00
.prettierignore chore: remove config of temporary_superset_ui (#18708) 2022-02-14 16:12:43 +08:00
applitools.config.js feat: Run Applitools on public Storybook (#19852) 2022-05-09 14:17:22 +02:00
babel.config.js refactor(monorepo): move superset-ui to superset(stage 2) (#17552) 2021-11-30 08:29:57 +08:00
cypress_build.sh build(deps-dev): update cypress to 5.5.0, improvements for running locally (#11603) 2020-11-10 15:51:47 -08:00
jest.config.js fix: superset-ui/core codes coverage (#20324) 2022-06-09 17:43:42 +08:00
js_build.sh
lerna.json refactor: move superset-ui dependencies to peerDependencies (#17965) 2022-01-11 13:53:37 +08:00
package-lock.json fix: suppress translation warning in jest (#20404) 2022-06-21 20:38:58 +08:00
package.json fix(fonts): Show the all the A's in our workspace correctly, not funky (#20361) 2022-06-15 00:28:54 -06:00
prettier.config.js refactor: merge/upgrade superset-ui packages (#10790) 2020-09-09 13:18:55 -07:00
tsconfig.json fix: suppress translation warning in jest (#20404) 2022-06-21 20:38:58 +08:00
webpack.config.js chore(build): upgrade less-loader (#19703) 2022-04-19 09:18:16 -07:00
webpack.proxy-config.js test: add React Testing Library (#11771) 2020-12-01 11:14:37 -08:00