Commit Graph

4116 Commits

Author SHA1 Message Date
Christine Chambers
e47a1b2868
Split tags migration (#7002)
This PR removes the iteration over charts, dashboards and saved queries to create tags in the original migration, leaving only the logic to create the tags and the tagged objects tables.
Tested locally by running `superset db downgrade` to revert to the previous migration and then running `superset db upgrade` to the current version.
2019-03-08 16:27:13 -08:00
ankursinghal2005
83b48a901e fix(fetch-datasource-meta-data): Chart data is not showing after in charts added by edit mode (#6980)
UIC-1046
2019-03-06 23:57:31 -08:00
Krist Wongsuphasawat
23f4c95d47
refactor: bump @superset-ui versions (#6982)
* feat: bump @superset-ui versions

* refactor: remove visUtils and use @superset-ui/dimension

* refactor: remove dead code

* fix: update package lock

* fix: lint two files

* fix: package lock
2019-03-06 22:30:05 -08:00
michellethomas
e6194051f4
Adding custom control overrides (#6956)
* Adding extraOverrides to line chart

* Updating extraOverrides to fit with more cases

* Moving extraOverrides to index.js

* Removing webpack-merge in package.json

* Fixing metrics control clearing metric
2019-03-06 15:04:04 -08:00
Maxime Beauchemin
c1ba914a41 docs: warn that docker installation instructions are contrib/ (#6925)
* [docs] warn that docker installation instructions are `contrib/`

* Words
2019-03-06 08:33:11 -08:00
Thomas Wang
8346e62dec Sort Chart Types based on Usage (#6849)
* initial commit for VIZ-58

* address @kristw's comments

* per @mistercrunch's comment to use a static list for now

* fix javascript test errors

* fix lint errors

* per @betodealmeida's comments

* remove unnecessary loop
2019-03-05 21:32:10 +02:00
John Bodley
3e076cb60b
[sql-parse] Fixing LIMIT exceptions (#6963) 2019-03-05 09:36:08 -08:00
Maxime Beauchemin
0421786fed
[dashboard editor] use the theme's btn-primary (#6859) 2019-03-04 20:54:17 -08:00
Maxime Beauchemin
ed79134e7f
auto-set 'Is Temporal' to true where column_name == '__time' (#6857)
* auto-set 'Is Temporal' to true where column_name == '__time'

* Adress comments

* lint

* clarifying name and comments
2019-03-04 20:51:11 -08:00
Conglei
d5b9795f87 Enhancement of query context and object. (#6962)
* added more functionalities for query context and object.

* fixed cache logic

* added default value for groupby

* updated comments and removed print
2019-03-04 18:06:59 -08:00
John Bodley
aded70a156 [date-filter] Adding minus infinity (#6968)
* [date-filter] Adding minus infinity

* Update DateFilterControl.jsx

eqeqeq
2019-03-04 11:34:21 -08:00
John Bodley
48431ab5b9
[csv-upload] Fixing message encoding (#6971) 2019-03-03 15:27:08 -08:00
Kim Truong
0a8bc84a02 Exclude venv for python linter to ignore (#6965) 2019-03-01 13:38:06 -08:00
Beto Dealmeida
41041f2113
Show charts and dashboards based also on database permissions (#6933)
* Per database policies for slices

* Show charts and dashboards based on DB perms as well

* Revert indentation change

* Fix reference

* Fix pylint
2019-02-28 10:05:28 -08:00
Serg
6f82f974d2 re-added deleted example file (#6952) 2019-02-27 21:33:06 -08:00
Kim Truong
5026401171 VIZ-190 fix (#6958) 2019-02-27 21:00:56 -08:00
Benjamin
57ef1a06b2 All french translations (#6955) 2019-02-27 18:02:12 -08:00
Maxime Beauchemin
3ae02d1a54
Allow for dynamic feature flags (#6808)
* Allow for dynamic feature flags

Giving more control over feature flags, allowing administrator to define
custom logic around whether features are enabled for particular users /
roles.

The exposed function can be used for things like:
* progressive rollout of features (1%, 5%, 50%, 100%)
* experimentation
* role-based feature affectation (only admins see a particular feature)

* fix build

* Addressing comments

* Addressing @hughhh's comments
2019-02-27 15:11:38 -08:00
Beto Dealmeida
e0feec9117
Fix deck.gl form data (#6953)
* Fix deck.gl viz

* Fix more form data

* Fix a few more places

* Fix unit tests
2019-02-27 10:19:52 -08:00
Maxime Beauchemin
8f2ce75665
Remove Cypress from package.json (#6912)
* Remove Cypress from package.json

I'm building some Docker images these days and realizing just how big
the Cypress package is. Looks like its ~500mb or so.

I prefer adding it as needed only as opposed to having to play tricks as
in `npm ci && rm node_modules/cypress`

* Pin cypress version

* Add script entry install-cypress

* bump cypress and fix ts-jest warning
2019-02-26 15:51:14 -08:00
Maxime Beauchemin
0ffccb76bd
[js deps] fix dependencies vulnerabilities (#6904)
* [js deps] fix dependencies vulnerabilities

* Addressing comments

* Fix bug with Mapbox default example
2019-02-26 15:16:13 -08:00
Maxime Beauchemin
ac198754f2
Erase previously shown chart on error (#6905)
* Erase previously shown chart on error

* Addressing comments

* lint
2019-02-26 15:15:44 -08:00
Prashant Shahi
3c2e3d7f97 Fixes #6842: Refreshes all metadata and datasource (#6944) 2019-02-25 17:44:47 -08:00
Christine Chambers
73cdb37f7e
Fix rendering regression from the introduction of bignumber (#6937)
In superset-ui 0.8.0, we used bignumber.js to transform numbers in chartProps' payload from plain 64-bit floats to BigNumber instances. This causes a number of charts to render incorrectly when comparison functions in the rendering algorithms operate on BigNumber objects instead of floats. This PR uses the preTransformProps step in SuperChart to transform BigNumber instances back to floats so charts can render properly.
2019-02-25 16:14:56 -08:00
Jack Zhang
a0402b76c7 [datasource editor] Add description and label fields (#6927)
* Add description field for columns

* Add label for metrics
2019-02-25 14:21:41 -08:00
Ville Brofeldt
e112659173 Remove redundant UTC casts (#6786) 2019-02-23 10:33:21 -08:00
agrawaldevesh
b5d03c85c5 Do label name mutation before anything else on the dataframe (#6831)
This problem especially happens with pinot when you select two metrics
with different aliases but same function. For example, effectively the
sql like 'select type, count(*) as one, count(*) as two from bar group
by type'. In such a case, pinot will return two columns, both named
count_star.

So when we try to do a df['count_star'], the result is a Dataframe and
not a Series. This causes a KeyError in the get_df method.

So we push the DB specific label mutation inside get_df before we do any
other mutation.
2019-02-22 20:32:46 -08:00
Ignacio Pérez Vergara
5c484e78a2 [fix] fix for css not loading on docker dev mode (#6934) 2019-02-22 20:03:17 -08:00
Ville Brofeldt
ea9d22b2ec Force quotes on non-expression time grains on Postgres (#6897)
* Force quotes on non-expression time grains on postgres

* Change to or semantics

* Return lower case column name as unmutated

* Add testcases for postgres time grains

* Make expression MixedCase
2019-02-21 13:16:28 -08:00
Ville Brofeldt
f5277fe684 Refactor dataframe and column name mutation logic (#6847)
* Merge dataframe and column name mutation logic, add flag for disabling column aliases and add column name length checking

* Remove custome mutate_label from oracle spec

* Move hashing from mutate_label() to make_label_compatible()

* Remove empty line

* Make label mutating and truncating more robust

* Rename variables and make proposed changes from review

* Always execute labels_expected codepath

* Fix linting error

* Add comments and fix subquery errors

* Refine column compatibility

* Simplify label assignment

* Add unit tests for BQ and Oracle

* Linting
2019-02-20 23:05:35 -08:00
不知是哪个号
1cac31dcce Update CHANGELOG.md (#6920)
Update CHANGELOG.md
2019-02-20 22:16:18 -08:00
Grace Guo
16f4721a92
[fix] minor fix for Superset logger (#6922) 2019-02-20 15:38:45 -08:00
michellethomas
ba9523c7c4 Adding dropdown to DatasourceControl and ability to change datasource (#6816)
* Adding dropdown to DatasourceControl and ability to change datasource

* Style fixes

* Adding unit tests for datasource/get endpoint

* Fixing issue with dropdown overflow and style changes

* Fixing issues rebasing metadata button and fixing sort for datasource with no name
2019-02-20 14:32:33 -08:00
Christine Chambers
c04c0cd8f0
Add a safety check before getting clientHeight (#6923)
Seeing an intermittent repro of the `current` nodes of the sql editor and south pane refs returning null. Adding a safety check for both nodes.
2019-02-20 14:31:28 -08:00
Beto Dealmeida
25ec00b3c6 Fix database typeahead in SQL Lab (#6917)
* Fix database typeahead in SQL Lab

* Fix lint

* Use string interpolation
2019-02-19 16:10:17 -08:00
Beto Dealmeida
3f96b0c5c4 Fix tooltip (#6895) 2019-02-19 10:32:14 -08:00
Maxime Beauchemin
f715f36ed3
[box plot] add X tick layout control (#6903) 2019-02-19 09:47:04 -08:00
Christine Chambers
f8cf0fb7f3
Add show metadata button back to the explore view (#6911)
* Add show metadata button back to the explore view

- Add the show metadta button, accidentally removed from PR #6046, back to the explore view
- Remove dead code that is no longer reachable from DataSourceModal.jsx.

* Adding additional code back to make the button function and remove more dead code.
2019-02-19 09:44:35 -08:00
Ville Brofeldt
30cd0e3836 Raise exception if long or lat not set in mapbox viz (#6867) 2019-02-18 09:20:59 -08:00
Marcus
3956bd20c2 add Filters copy change (#6885) 2019-02-17 20:42:38 -08:00
Krist Wongsuphasawat
dce853d450 Fix npm warning by bumping @superset-ui version (#6894)
* Fix npm warning by bumping @superset-ui version

* bump one more time
2019-02-17 20:16:56 -08:00
Daniel Vaz Gaspar
a97f3b639e [fix] Typo on config comments for SILENCE_FAB (#6901) 2019-02-17 14:03:04 -08:00
Grace Guo
47f42ed351
Improve Superset logger (#6879)
* enable beacon

* add middleware

* add unit tests
2019-02-15 23:10:05 -08:00
Krist Wongsuphasawat
bd9a2c15e7
remove dead code (#6884) 2019-02-15 11:51:49 -08:00
John Bodley
5728946270
[sqla] Fixing order-by for non-inner-joins (#6862) 2019-02-15 11:23:02 -08:00
michellethomas
b0f7f51ab7
Adding template_params to datasource editor for sqla tables (#6869) 2019-02-15 11:16:04 -08:00
Maxime Beauchemin
49868748e6
[ci] take #2, improve build times by saving TerserPlugin cache (#6882)
The problem with the previous solution was that the `npm ci` command
nuke the `node_modules` folder, including the `.cache` that was used by
default. By moving the cache out of `node_modules`  we get to both run
`npm ci` and accelerate `TerserPlugin`
2019-02-15 08:53:06 -08:00
Christine Chambers
ec6657ab2d
Relayout SQL Editor (#6872)
* Relayout SQL Editor

- Refactor SQL editor to remove usage of bootstrap col, row and collapse to simplify the layout
- Replace the react-split-pane libraray with react-split to allow custom styling of the gutter area without sacrifice correctness of the ace editor height calculation
- Rewrite the left pane animation via plain css transition and animate it to slide in and out
- General code and css clean up

* Smooth out the visual transition during dragging

(cherry picked from commit 19f82b729c7a939f12b1c5da6022c0fd76fa3ec9)

* Adjust how the height of the south pane is computed, fixing cypress tests
2019-02-14 18:03:43 -08:00
Krist Wongsuphasawat
8302b9a276
Update webpack config to facilitate debugging charts via npm link (#6880)
* Update webpack config to facilitate debugging charts via symlink and update babel plugin version

* update @superset-ui-legacy version

* update packages
2019-02-14 17:57:34 -08:00
Maxime Beauchemin
16ae747da1
Speed up CI by caching TerserPlugin cache (#6874)
* Speed up CI by caching TersetPlugin cache

This should accelerate the `npm run build` part of the build by ~5
minutes or so I believe.

* targeting terser-webpack-plugin/
2019-02-14 12:14:07 -08:00