Commit Graph

3458 Commits

Author SHA1 Message Date
Joshua Brooks 5e6efae155 Geojson property names (#5708)
* Add geojson for Myanmar

* Adds 'myanmar.geojson' file

* Adds "iso-3166" codes

* Uppercase ISO fieldname in TL, MY geodata
2018-08-23 15:48:26 -07:00
Krist Wongsuphasawat 0448db3b8d remove console.log and change wording (#5702) 2018-08-23 15:46:32 -07:00
Krist Wongsuphasawat 9fb28b5f4e Revise markup.js and iframe.js (#5672)
* Do not call slice.xxx

* remove iframe id

* remove old code

* use import instead of require

* update iframe.js
2018-08-23 15:45:45 -07:00
timifasubaa 5c49514e2f
[sqlparse] fix sqlparse bug (#5703)
* fix sqlparse bug

* add one more test case
2018-08-23 11:20:25 -07:00
Maxime Beauchemin 71866f6a12 [deck arcs] add JS hooks for sourceColor & targetColor 2018-08-22 20:28:19 -07:00
John Bodley 89927558e8
[security] Moving set/merge perm to security manager (#5684) 2018-08-22 11:15:22 -07:00
Beto Dealmeida 54c9ceb78d
Merge pull request #5623 from mistercrunch/fix_templates
Fix menu on 'import dashboards' page
2018-08-22 10:31:04 -07:00
Hugh A. Miles II b92e73084b Allow users to select color for big number (#5694)
* allow user to choose color

* add color control

* remove rgbToHex reference

* change to color picker control

* add d3-color

* remove module

* use d3-colors

* add semicolon
2018-08-22 10:27:19 -07:00
Joshua Brooks 0e057d50f1 Adds geodata for Myanmar (#5697)
* Add geojson for Myanmar

* Adds 'myanmar.geojson' file

* Adds "iso-3166" codes
2018-08-22 09:26:15 -07:00
Joshua Brooks 1c85192c6b adds TimorLeste geodata (#5698) 2018-08-22 09:25:57 -07:00
Maxime Beauchemin b42f8a23b1
[bugfix] geohash lat/long is reversed (#5695)
* [bugfix] geohash lat/long is reversed

This allows support for reversing geohashes. Note that the default option
was the wrong way.

* addressing comments

* make reverse_geohash_decode a staticmethod
2018-08-21 22:58:47 -07:00
Beto Dealmeida 2a8cd43881 Make brush send events (#5663)
* Make brush send events

* Make sure object is date

* Send event only on brushend
2018-08-21 21:40:26 -07:00
Maxime Beauchemin 6e8c7f7b20
[viz flow] detect TIMESTAMP, transition to line chart (#5634)
* [viz flow] detect TIMESTAMP, transition to line chart

* Refactor is_date
2018-08-21 21:33:34 -07:00
Beto Dealmeida 6959b70c1c Add categories and time slider to arc deck.gl viz (#5638)
* Fix legend position

* Add categories and play slider to arc viz

* New functionality to arc viz
2018-08-21 21:31:03 -07:00
Beto Dealmeida bcc0954bb9 Fixes to the play slider (#5675)
* Fixes to the play slider

* Address comments

* Make CSS rules more strict

* Fix CSS and improve code
2018-08-21 21:01:44 -07:00
Beto Dealmeida 359b31ebab Increase pylint jobs (#5646) 2018-08-21 20:50:53 -07:00
Krist Wongsuphasawat 0a4014937a Repair and refactor Word Cloud (#5669)
* create reactize function

* update function signature

* adjust word cloud controls

* Fix broken word cloud logic

* Repair and refactor word cloud

* remove file

* Add PropTypes

* change module.exports to export default

* change order

* update proptypes
2018-08-21 20:50:01 -07:00
Krist Wongsuphasawat 3929f0f79d Refactor force-directed graph (#5691)
* Refactor and add props to Force Directed Graph

* update label and enable renderTrigger
2018-08-21 20:48:58 -07:00
Yongjie Zhao ebe585df3d [bugfix] Encode unicode error message response (#5687)
* Fix unicode error message response

* Update
2018-08-21 20:47:40 -07:00
Sumedh Sakdeo 80e777823b Field names in big query can contain only alphanumeric and underscore (#5641)
* Field names in big query can contain only alphanumeric and underscore

* bad quote

* better place for mutating labels

* lint

* bug fix thanks to mistercrunch

* lint

* lint again
2018-08-21 13:45:42 -07:00
Maxime Beauchemin 71e0c07904
[bugfix] making secondary_metric optional (#5682)
I noticed that `secondary_metric` was required in the chart that users
it, namely sunburst, parallel coordinates, and world_map.

I set the control as allowing null, and found related bugs in the
process:
* parallel coordinates did not have support for the new MetricControl
* added color scheme support for parallel coordinates
* added option to set row_limit on these viz types
* sunburst to support numeric columns (number would show as blank)
2018-08-21 11:31:33 -07:00
Emily Littleworth 8dfa565c22 Upgrade mysqlclient to 1.3.13 (#5665) 2018-08-21 11:29:48 -07:00
Beto Dealmeida 14b5c6b8b1 Fix CSS (#5640) 2018-08-21 11:24:39 -07:00
Krist Wongsuphasawat fdb8001e0b change title from hotkeys to keyboard shortcuts (#5688) 2018-08-21 11:16:06 -07:00
Maxime Beauchemin 50042af25d
[bug] 'an error has ooccured' when saving datasource (#5683)
The check_ownership was failing when Alpha user was saving a datasource
from the datasource editor.
2018-08-21 10:10:44 -07:00
hitdemo 5e5360fc11 make some text localizable, mainly in dashboard, explore, datasource editor, webpage title (#5685) 2018-08-21 10:10:09 -07:00
Sumedh Sakdeo 0fbda33c68 Handling bigquery dialect when previewing data (#5655)
* Handling bigquery dialect when previewing data

* review comments

* lint
2018-08-20 22:04:22 -07:00
Maxime Beauchemin 2d23ae1065
[bugfix] df is None breaks df.empty check (#5657) 2018-08-20 17:01:03 -07:00
Krist Wongsuphasawat 683edc377e Refactor Chord vis (#5671)
* refactor Chord vis

* Add PropTypes

* change module.exports to export default
2018-08-20 17:00:25 -07:00
Beto Dealmeida fef39a7878 Fix time filter in cache (#5681) 2018-08-20 16:37:19 -07:00
Krist Wongsuphasawat cdd348ab94 Minor improvements to SQL Lab UI (#5662)
* Remove "for"

* add space

* Separate control to select table from database and schema.

* Adjust schema displays

* Fix caret and arrow position in Select and Tab

* Reduce space after caret in tab header

* Use translator

* Align icons in the pop-up menu in Sql Lab

* Add new table in front of the list (so it will appear on top)

* shorten message

* reduce line
2018-08-19 22:43:00 -07:00
Beto Dealmeida 4c5142d969 Filter out null locations by default (#5642)
* Filter out null locations by default

* Move exception to better place

* Add unit test

* Return columns in order for test and readibility
2018-08-19 16:04:01 -07:00
Hugh A. Miles II dd5e0ba70b
Update CONTRIBUTING.md (#5668) 2018-08-19 15:42:09 -07:00
Chris Williams 3d15d910af
[sqllab] call out transient state of tabs to users (#5652) 2018-08-17 17:44:56 -07:00
Maxime Beauchemin 0a1aa6dd50
[bugfix] TypeError: adhocMetric.comparator.join is not a function (#5661)
Somehow we have a "IN" filter where the filter is a string, not an
array. While this may need to get fixed upstream as well, this prevents
the explore view from completely crashing.

Side note: this function looked somewhat brittle, I'm assuming it's used to keep
the free form SQL tab in sync and not used to generate the actual SQL
being executed.
2018-08-17 15:53:04 -07:00
Yongjie Zhao 5a4b70dad7 Fix checkbox is fails When disable Druid datasource (#5645) 2018-08-16 23:54:27 -07:00
Junda Yang 97acfc7f17 fix multilayer viz backend error (#5649) 2018-08-16 23:52:39 -07:00
Sumedh Sakdeo cc9324ae8b handle exception and set dtype value to JSON, when column type JSON (#5644)
* handle exception and set dtype value to JSON, when column type JSON

* review comment

* only when we handle exception
2018-08-16 20:04:08 -07:00
timifasubaa 4ff5686e0c
make filters use security manager (#5567)
* make filters use security manager

* remove the superset short-circuit
2018-08-16 14:17:41 -07:00
michellethomas 32b3d00825 Updating yarn.lock for the vx upgrade (#5648) 2018-08-16 13:16:52 -07:00
michellethomas 2e0418034f Upgrading vx responsive to fix ResizeObserver issue (#5647) 2018-08-16 11:17:22 -07:00
michellethomas 492ad6c49a use_slice_data in slice_json calls (#5643) 2018-08-16 09:35:34 -07:00
Sumedh Sakdeo 5966a674e5 Explore View Perf Fix (#5637) 2018-08-15 12:27:08 -07:00
michellethomas bf0afef7a9 Fix form data issue switching viz types (#5100)
* Fixing issue with extra params in formData

* Pass in param use_slice_data to decide whether to use slice data

* Fixing core_tests to not use explore_json overrides
2018-08-15 11:25:06 -07:00
John Bodley 4e3b2e7cbc
[title] Fix issue with non-string names in series title (#5433) 2018-08-15 09:35:44 -07:00
Sumedh Sakdeo c9bd5a6167 Fetch a batch of rows from bigquery (#5632)
* Fetch a batch of rows from bigquery

* unused const

* review comments
2018-08-14 21:44:04 -07:00
John Bodley 46f89f4516
[bubble] Fixing ad-hoc metric labels (#5630) 2018-08-14 17:11:40 -07:00
Maxime Beauchemin d601ff4747
Tackling late-arriving comments from #5186 (#5626) 2018-08-14 16:30:50 -07:00
Maxime Beauchemin be04c98cd3
[sql lab] always use NullPool (#5612)
I think that the only place where we want db connection pooling would be
to talk to the metadata database. SQL Lab should close its connections
and never pool them.
Given that each Gunicorn worker will create its own pool that can lead
to way too many connections opened.

closes https://github.com/apache/incubator-superset/issues/4666
2018-08-14 16:27:13 -07:00
Conglei 2171ffb630 [bug fix] Fixed forced percentage format on tooltips and bubble chart tooltips format. (#5631)
* fixed forced percentage format on tooltip and correct reflection on bubble chart tooltip format

* re-trigger build
2018-08-14 16:04:24 -07:00