* feat: add support for conditional requests
* feat: add unit tests for conditional requests
* feat: use invariant
* feat: add type guard
* feat: fix lint
* feat: add more unit tests
* fix: 🐛 Fixed typ definiton for chart plugin
This PR is to fix the type definiton for transformProps and LoadData.
* fix: 🐛 Type compatibility
Change the output of preTransformProps to ChartProps
* fix: 🐛 Fixed Test
Fixed the test according to the changes:
* chore(chart): remove faux @superset-ui/core TS declaration
* test(chart): test all ChartPlugin.register() branches
* refactor(chart): support loaders that return esmodules
* refactor(chart): rename ChartMetaDataConfig => ChartMetadataConfig
* test(chart): fix loader test + branch coverage
* test(chart): hit all branches in sanitizeLoader
* refactor(chart): use ChartMetadata in registry
* docs: [demo][connection] add ConfigureCORS story for testing CORS
* docs: [demo][ConfigureCORS] better instructions
* feat: [chart] add mvp DataProvider component
* docs: better CORS story, update webpack for @babel/polyfill
* docs: [chart] add DataProvider story with WordCloudPlugin
* docs: [chart] add DataProvider deets to Readme
* test(chart): move SuperChart.test.jsx => .tsx and instead use @ts-ignore
* fix(connection): point interface.request to client.request
* feat(chart): re-write DataProvider as ChartDataProvider
* docs(demo): re-write LegacyWordCloudStories => ChartDataProviderStories
* refactor(chart): use IDENTITY as ChartPlugin buildQuery default
* feat(chart): support legacy + v1 loadQueryData endpoints in ChartClient
* docs(demo): add sankey + sunburst plugins to ChartDataProvider story
* style(chart): run prettier on SuperChart
* feat(chart): export QueryData type from models/ChartProps
* feat(chart): export Metrics and BaseFormData from types/ChartFormData
* feat(chart): add request option overrides in ChartDataProvider
* fix(chart): use Partial<> for ChartClient request option overrides
* test(chart): add ChartDataProvider tests
* build: include demo pkg in type script
* build: move storybook/mocks to test/fixtures
* build: move json-bigint TS declaration to root
* test(chart): clean up ChartDataProvider test TS
* chore(chart): lint fix SuperChart
* fix(chart): set ChartPlugin.buildQuery default back to undefined
* test(connection): fix expected Client.get call count
* test(chart): fix ChartClient tests and add test for legacy API
* fix(chart): uninitialized typo, change fetching => loading
* docs(chart): update README to final ChartDataProvider API
* docs(chart): fix typo
* test(chart): get ChartDataProvider to one hundo
* feat(chart): add and export more meaningful Datasource type
* feat(chart): use Datasource type in ChartClient
* feat: 🎸 Improved QueryObject to handle more fields
The commit is to ensure the feature parity between frontend and backend
QueryOjbect
* test: 💍 Added tests to improve the coverage
* feat: implement smart number format
* test: add unit tests
* refactor: Rename number formats
BREAKING CHANGE: NumberFormat.xxx are renamed
* feat: Make smart number default formatter
* fix: add unit test
* refactor: move formatters outside
* scaffold
* resolve dependency issues
* use d3 v4
* - Update peer dependencies
- Getting src to build
* Type word cloud
* Add tests for transformProps
* Update and simplify d3-cloud typing as the fix we've been waiting was merged.
* resolve all tests
* update unit tests
* fix unit test
* update readme
* Handle BigNumber conversions in JSON properly (without loss of precision)
* Rewrap "errors" from JSONbig.parse in proper error object.
* Use DefinitelyTyped's fetch-mock type def
* Improved type def for json-bigint
* Added type casts to some tests due to addition of fetchMock type def
* Add superchart and convert to ts
* fix compilation error
* fix build issue
* unit test working
* Add default width and height to ChartProps
* export SuperChart
* Add null check and update unit tests
* update unit tests
* complete test coverage
* Add generic
* reduce timeout
Metrics can take shape of an array of metrics in form data for a given metrics key. For example, `{ metrics: ['sum__num'] }`. This PR changes Metrics class to handle the array case.
* Make connection and color packages peer dependencies
- Also updating the version of the color package in the demo package to be the latest
* Addressing PR comments. Only updating the version of the color package in the demo package
* migrate query code from incubator-superset
* Getting tests to pass
- Up build-config version to pick up a fix to eslint-typescript-parser
- Remove usage of default exports in favor of named exports unless the export is the only thing being exported out of a module
- Fixing up a few linting errors
* - Remove DatasourceKey interface in favor of readonly id and type properties on the DatasourceKey class directly.
- Adding tests for DatasourceKey.
feat: Add @superset-ui/time-format
* update unit test (+6 squashed commits)
Squashed commits:
[5fae1ed] fix lint
[7672544] support local and utc
[c33fae7] update unit tests
[97fdc0d] fix all unit tests
[88e8029] add formatter code
[a33c76c] initialize
* update readme
* add formatDate and formatDateVerbose equivalent
* add unit test
* extract constants
* get to 100 coverage
* update readme
* Update preview test
* explicitly disable magic number
* [typescript] add build support for typescript
* [typescript] working lint and build
* [typescript] refactor SupersetClient to TS
* [typescript][connection] leverage RequestInit types when relevant
* [typescript][connection] callApi.js => callApi.ts
* [typescript][connection] remaining .js => .ts
* [typescript][connection] add and export src/types.ts, refactor things, convert test to .ts and fix
* [typescript] build:ts only in typescript-containing packages
BREAKING CHANGE: Change Registry constructor API to take object instead of single string name.
feat: Add overwritePolicy for Registry so developer can customize whether overwriting is ALLOW, WARN or PROHIBIT.
* Feat: Use the recently added ExtensibleFunction to make an instance of CategoricalColorScale be a function
* BREAKING CHANGE: Remove categoricalColorScale.toFunction().
* BREAKING CHANGE: The color scale no longer convert input to lowercase before finding color.
* Fix: Also transform input value before setting color.
* import main lodash instead of lodash/fp
* add factory and unit test
* more unit test to increase branch coverage
* refactor color
* update unit test and references
* add generator to monorepo
* Squash all attempts (+21 squashed commits)
Squashed commits:
[cca27ae] enable jest projects
[e7dc4ce] wip
[dd3ea7a] run in order
[cf87275] define projects
[69baf16] use specific version
[c880cfa] ignore generator test
[e9e0fd3] update travis
[4bbb3c0] update travis
[d63118b] update travis config
[267fe08] remove config
[44883e8] update travis
[40580c3] reduce node version
[59b6add] update ignore rule
[fbbd03c] update readme
[b299dfe] remove script
[a988933] fix test and lint
[95b7d5b] try install and not install
[f4583b4] remove unnecessary files
[c735329] remove eslint-config-xo
[49b3106] pass lint and test
[56c6def] remove git and readd
* can get test to pass if exclude generator-superset
* add afterall to correct working directory
* update config
* add readme
* [core][deps] remove unused deps
* [core][test] add test for response.ok=false
* [core] support csrf_token=''
* [core][tests] move mock to sole function that uses it
* [core] expose 'parseMethod' in SupersetClient and callApi for text responses
* [parseResponse][test] fix parseMethod test
* [monorepo] gitignore .npmrc
* [core][deps] @data-ui/build-config => ^0.0.14
* [monorepo] tweak npm scripts
* [core] clean up parseResponse
* [core] clean up parseResponse more
* [core] don't fallback to text parsing if response is supposed to be json, allow for null responseParser
* [core][tests] fix borken tests, return promises instead of calling done()