Commit Graph

4246 Commits

Author SHA1 Message Date
Kim Truong
200efacc36 fix: [lyftga] pass the latest deckgl props (#7208) 2019-04-02 17:13:18 -07:00
Kim Truong
74a0b57d80 Update necessary packages (#7205) 2019-04-02 15:00:11 -07:00
Kim Truong
62cfb2d2e3 Change number format default (#7137)
* Sparkline dates aren't formatting in Time Series Table (#6976)

* Exclude venv for python linter to ignore

* Fix NaN error

* Fix the white background shown in SQL editor on drag (#7021)

This PR sets the background-color css property on `.ace_scroller` instead of `.ace_content` to prevent the white background shown during resizing of the SQL editor before drag ends.

* Show tooltip with time frame (#6979)

* Fix time filter control (#6978)

* 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

(cherry picked from commit d5b9795f87)

* [fix] /superset/slice/id url is too long (#6989)


(cherry picked from commit 6a4d507ab6)

* [WIP] fix user specified JSON metadata not updating dashboard on refresh (#7027)


(cherry picked from commit cc58f0e661)

* feat: add ability to change font size in big number (#7003)

* Add ability to change font sizes in Big Number

* rename big number to header

* Add comment to clarify font size values

* Allow LIMIT to be specified in parameters (#7052)

* [fix] Cursor jumping when editing chart and dashboard titles (#7038)


(cherry picked from commit fc1770f7b7)

* Changing time table viz to pass formatTime a date (#7020)

(cherry picked from commit 7f3c145b1f)

* [db-engine-spec] Aligning Hive/Presto partition logic (#7007)


(cherry picked from commit 05be866117)

* [fix] explore chart from dashboard missed slice title (#7046)


(cherry picked from commit a6d48d4052)

* fix inaccurate data calculation with adata rolling and contribution (#7035)


(cherry picked from commit 0782e831cd)

* Adding warning message for sqllab save query (#7028)


(cherry picked from commit ead3d48133)

* [datasource] Ensuring consistent behavior of datasource editing/saving. (#7037)

* Update datasource.py

* Update datasource.py

(cherry picked from commit c771625f10)

* [csv-upload] Fixing message encoding (#6971)


(cherry picked from commit 48431ab5b9)

* [sql-parse] Fixing LIMIT exceptions (#6963)


(cherry picked from commit 3e076cb60b)

* 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

(cherry picked from commit e6194051f4)

* [sqlparse] Fixing table name extraction for ill-defined query (#7029)


(cherry picked from commit 07c340cf82)

* [missing values] Removing replacing missing values (#4905)


(cherry picked from commit 61add606ca)

* [SQL Lab] Improved query and results tabs rendering reliability (#7082)

closes #7080

(cherry picked from commit 9b58e9f492)

* Fix filter_box migration PR #6523 (#7066)

* Fix filter_box migration PR #6523

* Fix druid-related bug

(cherry picked from commit b210742ad2)

* SQL editor layout makeover (#7102)

This PR includes the following layout and css tweaks:
- Using flex to layout the north and south sub panes of query pane so resizing works properly in both Chrome and Firefox
- Removal of necessary wrapper divs and tweaking of css in sql lab so we can scroll to the bottom of both the table list and the results pane
- Make sql lab's content not overflow vertically and layout the query result area to eliminate double scroll bars
- css tweaks on the basic.html page so the loading animation appears in the center of the page across the board

(cherry picked from commit 71f1bbd2ec)

* [forms] Fix handling of NULLs

(cherry picked from commit e83a07d3df)

* handle null column_name in sqla and druid models

(cherry picked from commit 2ff721ae07)

* Use metric name instead of metric in filter box (#7106)


(cherry picked from commit 003364e74e)

* Bump python lib croniter to an existing version (#7132)

Package maintainers should really never delete packages, but it appears
this happened with croniter and resulted in breaking our builds.

This PR bumps to a more recent existing version of the library

(cherry picked from commit 215ed392a1)

* Revert PR #6933 (#7162)

* [bugfix] SQL Lab 'Filter Results' doesn't stick (#7104)

When using a "Search Results" criteria, the subset of rows that match
the criteria get displayed. While this the filter is applied, if another
query is run, the filter is still active, but not displayed in the input
text box. After this change, the state of the input box sticks after
subsequent queries.

(cherry picked from commit d5e8d663dc)

* Injectable statsd client (#7138)

* Add ability to inject statsd client; some py test/reqs updates

- Updated the metrics logger to allow construction with an existing
statsd client, so that it can be configured by external systems or libs.
- added requirements to requirements-dev.txt which are needed to run
  tests-eg coverage, nose
- removed dependency on mock lib, it is in python stdlib now
- updated tox.ini to remove the now-superfluous deps

* add license to test file, and remove blank line at EOF

(cherry picked from commit ba19a62412)

* [Lyft-GA] Enable color consistency in a dashboard (#7135)

* Enable color consistency in a dashboard

Moved actions, minor UI, allowed dashboard copy

Fix linting errors

Undo unintentional change

Updated and added unit tests

Fail quietly if package has not been updated

Fail quietly on dashboard copy if package is old

* Update packages

* Remove unnecessary code

* Addressed Grace's comments

* Small fix for item key

* Reset chart's color during exploration

* Do not reset chart form data when exploring chart

* Fix double scroll bars when content of sql result table overflows horizontally (#7168)

The PR substracts the scrollbar height from the height of the container of the react virtualized table so we don't see double scrollbars.

(cherry picked from commit 7ffcabd5c0)

* Change number format default

* Use smart formatter instead

* fix merge issues

* Use SMART_NUMBER
2019-04-01 22:04:31 -07:00
Beto Dealmeida
ca6a73b028 Fix race condition when fetching results in SQL Lab (#7198)
* Fix race condition when fetching results in SQL Lab

* Fix lint
2019-04-01 22:04:31 -07:00
Beto Dealmeida
82cf55375d Revert PR #6933 (#7162) 2019-04-01 22:04:31 -07:00
Kim Truong
e974a23f90 [Lyft-GA] Enable color consistency in a dashboard (#7135)
* Enable color consistency in a dashboard

Moved actions, minor UI, allowed dashboard copy

Fix linting errors

Undo unintentional change

Updated and added unit tests

Fail quietly if package has not been updated

Fail quietly on dashboard copy if package is old

* Update packages

* Remove unnecessary code

* Addressed Grace's comments

* Small fix for item key

* Reset chart's color during exploration

* Do not reset chart form data when exploring chart
2019-04-01 22:04:31 -07:00
Beto Dealmeida
f66b598d37 Allow LIMIT to be specified in parameters (#7052) 2019-04-01 22:04:31 -07:00
Kim Truong
7d95036554 feat: add ability to change font size in big number (#7003)
* Add ability to change font sizes in Big Number

* rename big number to header

* Add comment to clarify font size values
2019-04-01 22:04:31 -07:00
Beto Dealmeida
7488b4d329 Fix time filter control (#6978) 2019-04-01 22:04:31 -07:00
Beto Dealmeida
fb9fdc87d7 Show tooltip with time frame (#6979) 2019-04-01 22:04:31 -07:00
Thomas Wang
a717a90577 fix: deck.gl polygon tooltip (#7188) 2019-04-01 21:26:30 -07:00
Maxime Beauchemin
c5bdbc0964
[security] make it easier to redefine Alpha/Gamma (#7036)
* [security] make it easier to redefine Alpha/Gamma

While talking about some security aspect and as to how you'd alter Alpha
or Gamma role in a specific environment, I realized that these
module-scoped constants would be much more useful as class attributes.

This way, someone can override these sets in their security manager
to alter base roles.

* fix

* flake8
2019-04-01 18:06:40 -07:00
Grace Guo
a1d4635627
[fix] a typo in variable name (#7197) 2019-04-01 17:55:40 -07:00
Enrico Berti
37d7b2c040 feat: added i18n statements to sqllab (#7194)
Closes #7193
2019-04-01 13:43:22 -07:00
Krist Wongsuphasawat
2af9a84d09
fix: do not crash when a vis type is disabled. (#7180)
* fix: make vis type control handle unregistered type

* fix: hide when not needed

* fix: do not try to read controlpanelconfig for invalid type

* feat: add t
2019-04-01 13:37:40 -07:00
rasmi-ranjan-guavus
efede0af91 fix(sqllab): remove duplicate selector in style file (#7126) 2019-04-01 12:33:23 -07:00
Hannah Squier
03752af4e8 fix PRODUCT-67916 Click OK button cannot close error message modal (#7179) 2019-04-01 10:00:22 -07:00
John Bodley
f13e0a8d58
Update __init__.py (#7166) 2019-04-01 09:50:20 -07:00
Enrico Berti
03c95c86dd [SQL Lab] Show tooltip on schema and table select options (#7120)
Closes #7119
2019-03-30 11:45:53 -07:00
michellethomas
ceb86df063 chore: add main pull request template (#7176)
* Add main pull request template

* Removing individual pull request templates
2019-03-29 13:06:45 -07:00
michellethomas
7059c52a79
Adding pull request templates (#7159) 2019-03-29 08:52:28 -07:00
Christine Chambers
7ffcabd5c0
Fix double scroll bars when content of sql result table overflows horizontally (#7168)
The PR substracts the scrollbar height from the height of the container of the react virtualized table so we don't see double scrollbars.
2019-03-29 06:45:44 -07:00
Alan Carson
41c13152a9 docs: add cloudsmith to company list (#7158)
Thanks!
2019-03-28 22:24:27 -07:00
John Bodley
36a6fade90
[migration] Fixing issue with fb13d49b72f9 downgrade (#7145)
* [migration] Fixing issue with fb13d49b72f9 downgrade

This PR fixes an issue with the downgrade step of migration fb13d49b72f9 which wrongfully labeled the field `metrics` rather than `metric`.

to: @graceguo-supercat @michellethomas @mistercrunch

* Update fb13d49b72f9_better_filters.py
2019-03-28 10:07:55 -07:00
John Bodley
6e79e84b02
[migration] Fixing issue with c82ee8a39623 downgrade (#7144)
* [migration] Fixing downgrade

* Trigger notification
2019-03-27 22:23:21 -07:00
Maxime Beauchemin
d5e8d663dc [bugfix] SQL Lab 'Filter Results' doesn't stick (#7104)
When using a "Search Results" criteria, the subset of rows that match
the criteria get displayed. While this the filter is applied, if another
query is run, the filter is still active, but not displayed in the input
text box. After this change, the state of the input box sticks after
subsequent queries.
2019-03-27 17:53:32 -07:00
Dave Smith
ba19a62412 Injectable statsd client (#7138)
* Add ability to inject statsd client; some py test/reqs updates

- Updated the metrics logger to allow construction with an existing
statsd client, so that it can be configured by external systems or libs.
- added requirements to requirements-dev.txt which are needed to run
  tests-eg coverage, nose
- removed dependency on mock lib, it is in python stdlib now
- updated tox.ini to remove the now-superfluous deps

* add license to test file, and remove blank line at EOF
2019-03-27 14:08:36 -07:00
Enrico Berti
cd54a567dd fix: Superset logo link when logged out (#7118)
Closes #7107
2019-03-27 13:49:34 -07:00
John Bodley
ee36ce8b31 chore: updating extra requires (#7115) 2019-03-27 13:48:11 -07:00
Enrico Berti
c99d9b5d3c [SQL Lab] Avoid closing save query modal on backdrop click (#7111)
Closes #7110
2019-03-27 13:46:39 -07:00
Maxime Beauchemin
c2b971af91
[docs] CONTRIBUTING.md - how to setup SQL Lab in async mode (#7103) 2019-03-26 22:50:19 -07:00
Maxime Beauchemin
215ed392a1 Bump python lib croniter to an existing version (#7132)
Package maintainers should really never delete packages, but it appears
this happened with croniter and resulted in breaking our builds.

This PR bumps to a more recent existing version of the library
2019-03-26 13:27:16 -07:00
Maxime Beauchemin
68d2880bce
Remove super verbose logging.debug call (#7122)
I left this behind on a previous PR, and it gets kind of crazy on large
SQL statements, so decided it's probably a good thing to clean this up.
2019-03-26 08:42:13 -07:00
rasmi-ranjan-guavus
f556da80cb fix(useless-self-assignment): correct useless-self-assignment (#7090)
* fix(useless-self-assignment): correct useless-self-assignment

* udated code formatting
2019-03-26 08:35:44 -07:00
Maxime Beauchemin
ebb32101c9
Scripts & instructions to craft official Apache source releases (#7054)
* Apache Releases

https://github.com/mistercrunch/superset/blob/apache-releases/RELEASING.md#apache-releases

* npm run prod -> npm run build
2019-03-25 16:21:26 -07:00
Don Bowman
4c5e6ca208 Add HTTP Basic Auth for Druid (Issue #4776) (#6795)
* Add HTTP Basic Auth for Druid (Issue #4776)

This should resolve [Issue #4776](https://github.com/apache/incubator-superset/issues/4776)

Add HTTP Basic Auth to the Druid Broker.

Signed-off-by: Don Bowman <don@agilicus.com>

* Encrypt broker password in database

Signed-off-by: Don Bowman <don@agilicus.com>

* Merge from master, new migration needed

Signed-off-by: Don Bowman <don@agilicus.com>

* Do not expose hashed druid basic auth password

* docs: add description_columns for druid basic auth
2019-03-25 16:20:12 -07:00
Christine Chambers
71f1bbd2ec
SQL editor layout makeover (#7102)
This PR includes the following layout and css tweaks:
- Using flex to layout the north and south sub panes of query pane so resizing works properly in both Chrome and Firefox
- Removal of necessary wrapper divs and tweaking of css in sql lab so we can scroll to the bottom of both the table list and the results pane
- Make sql lab's content not overflow vertically and layout the query result area to eliminate double scroll bars
- css tweaks on the basic.html page so the loading animation appears in the center of the page across the board
2019-03-25 15:19:43 -07:00
Maxime Beauchemin
87fae5c602
[docs] improve UPDATING.md around 0.31's [now] optional deps (#7117) 2019-03-25 15:03:08 -07:00
michellethomas
003364e74e
Use metric name instead of metric in filter box (#7106) 2019-03-25 09:57:39 -07:00
John Bodley
b3c4bd95ef
[forms] Fix handling of NULLs (#7078) 2019-03-25 00:24:26 -07:00
Ville Brofeldt
23e823f0c1 Bump SQLAlchemy to 1.3 (#7099)
* Bump sqla to >=1.3.1

* Refine mssql column types to only use N-prefixing when necessary

* make join explicit

* replace set with list

* Add additional test case for N-prefix

* Replace engine with dialect and fix linting error

* Remove unneeded import
2019-03-24 20:44:05 -07:00
John Bodley
80d6f5a090 [mypy] Adding mypy linting (#7053) 2019-03-24 20:35:48 -07:00
Grace Guo
60a7b6df59
handle null column_name in sqla and druid models (#7063) 2019-03-22 20:21:25 -07:00
Chris Williams
7457a35b12
[api] add available_domains/ endpoint (#7097)
* [api] add available_domains/ endpoint

* [available_domains] no trailing whitespaces
2019-03-22 17:51:28 -07:00
Yongjie Zhao
33d67dad79 [Dashboard] Keeping refresh frequency value in Dashboard (#5741)
* Keeping refresh frequency value in Dashboard

* fix eslint

* Fix arrow function

* Update ut

* start refresh when load dashboard
2019-03-22 14:29:18 -07:00
Krist Wongsuphasawat
4631b7b791
fix: bump pivot table version (#7088)
* fix: bump pivot table version

* fix: update package.json
2019-03-21 22:26:20 -07:00
hitdemo
5241486971 [bugfix] throw "TypeError: 'NoneType'..." when save chart to new/existing dash. (#5835) 2019-03-21 21:03:53 -07:00
Daniel Vaz Gaspar
10d003346f Bump FAB to 1.12.5 (#7085)
* Bump FAB to 1.12.5

* [requirements] New dependency pyJWT added on FAB 1.12.4 for OAuth redirect

* [requirements] Fix, pip-tools bump to 3.5.0 related to #714
2019-03-21 17:03:52 -07:00
Enrico Berti
9b58e9f492 [SQL Lab] Improved query and results tabs rendering reliability (#7082)
closes #7080
2019-03-21 15:13:42 -07:00
Maxime Beauchemin
b210742ad2
Fix filter_box migration PR #6523 (#7066)
* Fix filter_box migration PR #6523

* Fix druid-related bug
2019-03-20 21:41:33 -07:00