Commit Graph

325 Commits

Author SHA1 Message Date
x4base
40e1787948 Improve the error message in the slices (#555)
* Improve the error message in the slices

Let slice.error() accept msg and xhr

* Check error first in nvd3_vis.js
2016-06-21 09:42:44 -07:00
Maxime Beauchemin
7e8053abef Adding list of table names to show Dashboard view (#648) 2016-06-21 09:41:48 -07:00
Maxime Beauchemin
d71a67cdad Bumping FAB and cryptography to current version (#647) 2016-06-20 15:31:15 -07:00
George Ke
54e4be1d13 [hotfix] lint error should fail travis build 2016-06-20 15:17:04 -07:00
George Ke
fb0750710e [hotfix] missing semicolon breaking build 2016-06-20 14:14:20 -07:00
Chris Williams
668ede1133 expose /slice/<slice_id>/ endpoint to redirect to a slice's url (#633)
* expose /slice/<slice_id>/ endpoint to redirect to a slice's url

* remove residual print statement

* add unit test for caravel/slices/id endpoint
2016-06-20 09:18:03 -07:00
Maxime Beauchemin
deb197a1d8 Adding contribution to total option to Bar chart (#641) 2016-06-20 09:16:51 -07:00
Maxime Beauchemin
55c549d86f Adding option for reduceXTicks (#640) 2016-06-17 12:31:20 -07:00
Maxime Beauchemin
78eb1e6a54 [hotfix] fixing bug around looking up security access 2016-06-17 11:34:54 -07:00
yxjames
4c8523efc0 Prevent potential db upgrading problem (#628)
* fix general db upgrade problem

* add comments
2016-06-17 08:14:26 -07:00
Riccardo Magliocchetti
4400c70514 Make time grains translatable (#622)
* Make time grains translatable

Fix #616

* Refresh translations
2016-06-17 08:12:15 -07:00
Maxime Beauchemin
3105c9f9ae Improvments to NVD3 charts (axis labels & min bar width) (#629) 2016-06-17 08:11:53 -07:00
x4base
db30f20341 Only initiate permissions of valid metrics (#630) 2016-06-16 08:55:11 -07:00
x4base
65d9feb0a9 Check ownership before a slice is deleted (#624) 2016-06-15 14:27:36 -07:00
Rocky Qi
77c5c9400a Update sql.js to fix a invalid error msg (#621)
when using sql.html page to run sql directly, for any SELECT * sql, when click run! button for the second time,
the page will show error msg like: DataTables warning: table id={id} - Cannot reinitialise DataTable.
this can be fix by:https://datatables.net/manual/tech-notes/3#retrieve
2016-06-15 14:27:12 -07:00
x4base
ea8a7ec1ba Redirect to druid datasource page when the user wants to add slice. Also, provide a link to the table page (#625) 2016-06-15 14:23:25 -07:00
alanmcruickshank
b38590a0bb Added Hour time grain for MySQL (#615) 2016-06-15 14:22:27 -07:00
x4base
ee2d3330aa Prevent the cannot-overwrite error message from being removed before it can be seen (#626) 2016-06-15 14:19:50 -07:00
Maxime Beauchemin
91e272546a v0.9.1 2016-06-15 09:46:29 -07:00
Maxime Beauchemin
a117498991 Adding some CRUD field descriptions to clarify things 2016-06-15 08:50:50 -07:00
Maxime Beauchemin
e29d71d0ff [hotfix] passing payload to Slice.done everywhere 2016-06-13 22:58:04 -07:00
Maxime Beauchemin
bacbd909d1 [hotfix] parallel coordinates grey background on hover 2016-06-13 22:44:57 -07:00
Maxime Beauchemin
77d8ccba87 Compress before caching, store more in each memcache key (#614) 2016-06-13 21:59:03 -07:00
Junxian Wu
347c39b8e9 Better support for Druid cardinality estimation mertics (#613)
* added rocognition of thetasketch and HLL metrics

* make sure the name agreed with SQL convention
2016-06-13 20:49:51 -07:00
Maxime Beauchemin
bc58c5d031 [hotfix] delete cache key when set fails 2016-06-13 18:01:55 -07:00
Maxime Beauchemin
267c0191a8 Make sure cache.set never fails hard (#611) 2016-06-13 13:26:05 -07:00
Maxime Beauchemin
1a4c7afbef Fixing a potential FK error when doing bulk updates (#606)
I hit this upgrade issue in production where the FK for user wasn't
allowing null. Perhaps it is specific to our environment but I'd rather
fix this.
2016-06-12 21:39:06 -07:00
Maxime Beauchemin
c58fd63efc [hotfix] caching indicator was missing on dashboard view 2016-06-12 21:38:32 -07:00
Maxime Beauchemin
fa13b77cfa Adding postgres to the build matrix (#604) 2016-06-12 11:01:16 -07:00
Maxime Beauchemin
c490138afe Fixing json issues (#602) 2016-06-11 20:39:25 -07:00
Maxime Beauchemin
327fceefb7 [hotfix] fixes issue around multidict 2016-06-11 08:02:56 -07:00
Marigold
1631137da1 fix missing multiple values for the same parameter name (#565) 2016-06-11 07:55:01 -07:00
Junxian Wu
4661b0210d Popover to generate iframe html tag when standalone button is clicked (#575)
* fixed

* basic implementation of the iframe embed popover

* remove unecessary comments

* remove public embed iframe

* remove debug print line and public access

* remove uncessary extra line and use better text explain

* maintain the style of airbnb/master

* fixed style

* re-run the test locally. Made sure it passed
2016-06-11 07:48:30 -07:00
Riccardo Magliocchetti
a8136bb9f5 Update translations files (#595) 2016-06-11 07:47:42 -07:00
x4base
4c6026fdda Add access control over metrics (#584)
* Add the new field "is_restricted" to SqlMetric and DruidMetric

* Add the access control on metrics

* Add the more descriptions on is_restricted

* Update docs/security.rst

* Update docs/security.rst
2016-06-10 15:49:33 -07:00
Maxime Beauchemin
55baab413a [hotfix] fixing the build (#594) 2016-06-09 22:58:20 -07:00
Maxime Beauchemin
2f60801059 [hotfix] fixing the build 2016-06-09 21:12:44 -07:00
Maxime Beauchemin
c35e0e831c [hotfix] csv and json link are off (#592)
* Fixing bugs

* [hotfix] csv and json link are off
2016-06-09 18:06:20 -07:00
Maxime Beauchemin
60ed3e4050 TOX / Travis build matrix (#593)
* Building on many dbs

* Fixing some translation related error msg
2016-06-09 18:05:58 -07:00
Riccardo Magliocchetti
dd662eaca3 caravel: mark more strings for translations in viz (#586) 2016-06-09 16:46:27 -07:00
Riccardo Magliocchetti
e3da785321 caravel: reduce usage of choicify in forms (#591)
So that more string can be translated

Fix #583
2016-06-09 16:45:45 -07:00
Jeremi Joslin
f4c92da4e6 Make sure the APP_ICON config is used in the template (#590) 2016-06-09 16:45:03 -07:00
Riccardo Magliocchetti
eb208b921c config: there's no such thing as WEBSERVER_THREADS (#587)
The config option is CARAVEL_WORKERS. Bump example to 16 processes
to keep backward compatibility with the current default.
2016-06-09 16:44:13 -07:00
Riccardo Magliocchetti
8a579e2a2a Mark more strings for translations (#581)
* caravel: mark viz strings for translations

* caravel: mark templates string for translation

* caravel: make forms strings translatable

* Update translations
2016-06-08 17:38:43 -07:00
Riccardo Magliocchetti
ad5507c5f4 views: translate labels and not names (#567)
So that we can install caravel on postgresql:
```
2016-06-03 17:58:05,386:ERROR:flask_appbuilder.base:
Add Permission on Menu Error: (psycopg2.ProgrammingError) can't adapt type '_LazyString'
[SQL: 'SELECT ab_view_menu.id AS ab_view_menu_id, ab_view_menu.name AS
ab_view_menu_name \nFROM ab_view_menu \nWHERE ab_view_menu.name = %(name_1)s \n
LIMIT %(param_1)s'] [parameters: {'param_1': 1, 'name_1': l'Sources'}]
```

Other that translating names should be a recipe for disaster if
you switch language.

Fix #558
2016-06-07 17:43:51 -07:00
George Ke
24a68f5c48 Two hotfixes (#574)
* fix for dashboards created without slices

* [hotfix] check_ownership param needed for adding slice to dashboard
2016-06-07 11:07:25 -07:00
Maxime Beauchemin
0d800fa302 Fixing bugs where params aren't reflected on nvd3* (#564) 2016-06-07 08:10:49 -07:00
Maxime Beauchemin
dc33506bfa Removing deprecated refs to flask.ext.* (#566) 2016-06-05 21:37:03 -07:00
Maxime Beauchemin
89f9efd3a3 Fixing the dashboard's look after resizing the window (#556) 2016-06-03 11:53:37 -07:00
George Ke
52c2b2348a allow for multiple columns in NOT GROUP BY (#560) 2016-06-03 11:34:29 -07:00
Maxime Beauchemin
b5fe9dbe33 Adding a security section to the docs (#561) 2016-06-03 11:33:11 -07:00
Riccardo Magliocchetti
5bc50210ad utils: generalize utility to find find_constraint_name (#557)
See https://github.com/airbnb/caravel/pull/531
2016-06-03 09:47:51 -07:00
Riccardo Magliocchetti
fe402465b1 caravel: catch only ImportError when loading config (#559)
As you may want to see the exception raised on at leasts SyntaxError
2016-06-03 09:46:03 -07:00
Maxime Beauchemin
3ee9a68c09 Only owners can update their objects (#507) 2016-06-02 19:17:34 -07:00
Maxime Beauchemin
29170512ab Adapting default CSS templates to the new grid layout 2016-06-02 16:40:55 -07:00
Maxime Beauchemin
b5614a433e Fixing 2 bugs that happen when fields are removed from table (#551) 2016-06-02 12:39:21 -07:00
Giacomo Tagliabue
5f005d67e3 Add CORS support (#478)
* Add optional CORS

* make CORS an extra dependency

* add documentation
2016-06-02 12:34:36 -07:00
George Ke
c78d3682ac Reactify dashboard grid (#523)
* Use react-grid-layout instead of gridster

* visualizations show and resize

* display slice name and description; links work

* positioning of widgets to match gridster, rowHeight matches

* Change margins, rowHeight, unpositioned viz, and expandedSlices to match gridster

* Saving dashboard, deleting slices, formatting on slices (chart control and resize handle), expanded slices fixed.

* responsiveness + use es6 classes

* Minor ui fixes + linting

* CSS transforms on slices messes up nvd3 tooltip positioning.
Turn off CSS transforms for the time being, with a cost of painting speed.

Issue is currently being looked at on the nvd3 repo
PR: https://github.com/novus/nvd3/pull/1674

* Remove breakpoint listener, fires when it shouldn't (i.e. too often)

* resize is no longer buggy, minor cleanup

* gridster class, const, landscape error

* one source of data for data to front end from python
2016-06-02 12:31:05 -07:00
Luca Albertalli
fe6628b0a4 Fix #529 2 - "This Session's transaction has been rolled back" (#531)
* Created migration to fix the bug

* Working also on MySQL

* Added support for Vertica Grains (#515)

* Fix #529 1 "This Session's transaction has been rolled back" (#530)

* Fixing the specific issue

* Added an additional fix for a similar error in #529

Background:
- When an object is modified by SQLAlchemy, it is invalidated so need to be fetched again from the DB
- If there's an exception during a transaction, SQLAlchemy performs a rollback and mark the connection as dirty.

Bug:
- When handling exceptions, the exception handler tries to access the name of the cluster in the main object. Since the name has been invalidated due to a write, SQLAlchemy tries to fetch it on a 'dirty' connection and spits out an error. Solution:
- Fetch the information for handling the exception before starting the process.

* Modified the migration function to to automatically detect the the foreign keys based on the signature.
It supports also sqlite using batch migrations

* i18n: Fix typo in Druid cluster broker port label (#512)

* Update models.py (#541)

removing duplicated `user_id` def
2016-06-02 12:27:59 -07:00
George Ke
cb384d051b Fix for Not Grouped By on Table View (#544)
* fix for default metric in table visualization

* better location for form override; covers all parameters

* remove dead code, use items instead of iteritems for python 3
2016-06-01 22:59:06 -07:00
George Ke
849063c797 fix world_map appending to old world map when updating (#549) 2016-06-01 22:47:22 -07:00
Luca Albertalli
087c47a37e Fix #529 1 "This Session's transaction has been rolled back" (#530)
* Fixing the specific issue

* Added an additional fix for a similar error in #529

Background:
- When an object is modified by SQLAlchemy, it is invalidated so need to be fetched again from the DB
- If there's an exception during a transaction, SQLAlchemy performs a rollback and mark the connection as dirty.

Bug:
- When handling exceptions, the exception handler tries to access the name of the cluster in the main object. Since the name has been invalidated due to a write, SQLAlchemy tries to fetch it on a 'dirty' connection and spits out an error. Solution:
- Fetch the information for handling the exception before starting the process.
2016-05-31 21:16:32 -07:00
Riccardo Magliocchetti
b193539fa4 i18n: Fix typo in Druid cluster broker port label (#512) 2016-05-31 21:10:28 -07:00
Luca Albertalli
ae7fb012a9 Added support for Vertica Grains (#515) 2016-05-31 21:09:04 -07:00
Jiayu Liu
409233d4fc Update models.py (#541)
removing duplicated `user_id` def
2016-05-31 21:07:14 -07:00
Maxime Beauchemin
dee4c34411 [hotfix] adapting to pydruid 0.2.3 2016-05-24 18:35:10 +00:00
Maxime Beauchemin
57990bfd83 Implementing druid's regex filters (#501)
* Implementing druid's regex filters

* Debugging

* Debuggin'
2016-05-23 13:06:35 -07:00
Xuefeng Zhu
29f5ace436 complete Chinese translation (#503) 2016-05-23 11:46:46 -07:00
Maxime Beauchemin
0fcab30652 More translation instrumentation and some french to test (#502) 2016-05-23 11:46:33 -07:00
Maxime Beauchemin
c53874c8ab [hotfix] treemap was broken 2016-05-20 14:05:08 -07:00
Maxime Beauchemin
f0c6a98027 Gunicorn tweaks, unlimited limit-request-line & limit-request-field_size (#500)
This is mostly to enable long text in the Markdown widget
Related:
https://github.com/benoitc/gunicorn/issues/376
2016-05-20 11:35:41 -07:00
Maxime Beauchemin
58d78beeaa [bugfix] 'Y Axis Zero' would force 1 in Y axis (#497) 2016-05-20 11:10:46 -07:00
Riccardo Magliocchetti
e1a3854f2a utils: add special serializer for numpy.int64 (#492)
It looks like COUNT(*) returns a numpy.int64 value that the
default JSONEncoder does not handle.

While at if we get a type we are not handling make it easier to
debug the issue by throwing a TypeError exception with useful
data.

Fix #486
2016-05-20 11:10:29 -07:00
Riccardo Magliocchetti
3cfc58e3a2 Add italian translation (#491) 2016-05-20 11:05:08 -07:00
Josh Walters
3ee102b79f Made '__' prefix into suffix. (#496) 2016-05-20 11:03:49 -07:00
Maxime Beauchemin
f5180d8724 [hotfix] fix name change on test dashboard triggers error 2016-05-19 08:51:13 -07:00
Maxime Beauchemin
4738b01125 [hotfix] setting default value for druid_time_origin 2016-05-16 23:08:46 -07:00
Maxime Beauchemin
d1f0276408 Introducing Horizon charts (#472)
* Introducing Horizon charts

* JS Lintin
2016-05-16 22:49:12 -07:00
Maxime Beauchemin
1766f6edd6 [hotfix] making druid_time_origin stick 2016-05-16 22:48:32 -07:00
Andrii Sydorchuk
8a406b18f5 Add PUBLIC_ROLE_LIKE_GAMMA config flag (#473) 2016-05-16 21:24:43 -07:00
Maxime Beauchemin
2620aeca02 Fixing the heatmap calendar color ranges in the Welcome page (#474) 2016-05-16 21:22:38 -07:00
George Ke
5c0e30ed70 Added Calendar Heatmap (#475)
* Added sqlite Grains

* Calendar heatmap visualization

* Linting

* Explicit metric setting was breaking tests

* Python linting

* Code cleanup + review

* [fixing the build] a new version of eslint is more picky

* Linting

* Added sqlite Grains

* Calendar heatmap visualization

* Linting

* Linting

* Explicit metric setting was breaking tests

* Python linting

* Code cleanup + review
2016-05-16 17:59:38 -07:00
Maxime Beauchemin
607e1f941b Fixing the build 2 out of 2 2016-05-16 17:41:02 -07:00
Maxime Beauchemin
d30567959b [fixing the build] a new version of eslint is more picky 2016-05-16 16:33:08 -07:00
Maxime Beauchemin
83e0e58888 [hotfix] Druid explore/table dropdown doesn't change anything 2016-05-16 16:10:22 -07:00
x4base
5a870fe1c2 Mysql key length (#459)
* Use varchar(255) in MySQL

* Adjust the key lengths in old migration scripts
2016-05-12 10:27:38 -07:00
Maxime Beauchemin
a0099ad6d6 v0.9.0 2016-05-12 08:24:01 -07:00
Maxime Beauchemin
f28c2b2557 Cosmetric tweaks in the CRUD list view (#458) 2016-05-11 21:05:32 -07:00
Maxime Beauchemin
52bbb38188 Don't limit parallel coordinates table size (#455)
Before we limited the table size to 10 rows, now there's no limit and it
will overflow properly with a scrollbar.
2016-05-11 17:48:04 -07:00
Maxime Beauchemin
aa6e6bdf7a Allowing for templated urls in iFrame (#460)
* Allowing for templated urls in iFrame

This can allow for passing {{ width }} and {{ height }} as dynamic
attributes in the iFrame's URL.

The new method Slice.render_template method could do more eventually
exposing more variables to be used in dynamic strings.

* Passing function references

* js linting
2016-05-11 17:00:46 -07:00
Maxime Beauchemin
6c333d5010 Fixing the missing searchbox bug (#431)
* Fixing the missing searchbox bug

* Linting JS

* Layout tweaks
2016-05-10 11:49:32 -07:00
Maxime Beauchemin
673cce9e56 Attempting to fix #412 (#430)
* Attempting to fix #412

* More flushes
2016-05-10 11:19:30 -07:00
Maxime Beauchemin
d79089c587 Improving the parallel coordinate viz (#452)
* Improving the parallel coordinate viz

* Clear container on refresh
* Order of columns is kept
* Option to show/hide the series column in viz
* Color metric not shown by default

* JS linting
2016-05-10 09:39:33 -07:00
Maxime Beauchemin
c4e3020369 Conververting datetime based on database dialects (#446) 2016-05-10 09:29:29 -07:00
Maxime Beauchemin
77e9e6a5d7 Fixing issue #444 color function chokes on non-string param (#447) 2016-05-10 09:22:59 -07:00
Siddharth Gupta
a75d6bc52c add timestamp toggle in chart options (Table Viz) (#439)
* add timestamp toggle in chart options (Table Viz)

* refactor timestamp choices

* fix build error
2016-05-10 09:22:32 -07:00
x4base
c5fcbc0709 Support hyperUniqueCardinality type in post aggregation (#451) 2016-05-10 09:21:09 -07:00
Siddharth Gupta
2f64c42062 blacklist druid datasources to be refreshed because it takes forever to load all druid datasources metadata which is not even required (given the use cases user should be able to blacklist data sources which are not required to be refreshed). (#441) 2016-05-06 12:03:42 -07:00
Maxime Beauchemin
d304ee005a Bugfix in line chart where the series name is an empty string (#434) 2016-05-05 12:19:51 -07:00
Junshuo
82fa501dea Update Chinese translation (#438)
Change some Chinese translations to make them sound less robotic
2016-05-05 12:19:21 -07:00
x4base
bc7170769b Recursively get the dependency fields of post aggregators (#437) 2016-05-05 08:52:48 -07:00
andrewhn
6941f1de64 add unicode data to tests (#432)
* add unicode data to tests

* make tests pass on 2.7

* clean up data loading

- remove duplicate keys in slice_data
- reduce line length

* change manager option flag to -t, --load-test-data

* test --> load_test_data
2016-05-05 08:46:16 -07:00
Maxime Beauchemin
a3f549bb9e Some chinese translations as a Proof of Concept (#435) 2016-05-04 21:36:10 -07:00
Andrii Sydorchuk
0bedaed367 Make sure anonymous user with proper permissions can access data (#415)
* Make sure anonymous user with proper permissions can access data

* Review fixes: naming changes

* Review fixes: add more granular tests for public user dashboard access

* Review fixes: test that public user has access only to permitted data sets
2016-05-03 22:31:37 -07:00
x4base
1d0863abfe Rename the dummy variable _ to avoid conflict with lazy_gettext (#427)
Otherwise "local variable '_' referenced before assignment" will be raised
2016-05-03 22:28:30 -07:00
Maxime Beauchemin
a3a9ec926f [hotfix] piechart goes black on refresh (#424) 2016-05-03 12:49:52 -07:00
Giacomo Tagliabue
9a08c45e59 add additional postgres and redshift time grains (#429) 2016-05-03 12:44:42 -07:00
Maxime Beauchemin
88c9516e20 Getting started on translations (#423) 2016-05-02 10:50:23 -07:00
Maxime Beauchemin
ec7dbed800 Blank theme (#419)
* A white theme

* Updating TODO

* Fixing tests
2016-05-02 10:04:29 -07:00
Maxime Beauchemin
26d273643b Allowing for druid post aggregations (#418)
* Druid post aggregations

* Fixing tests
2016-05-02 10:00:39 -07:00
Maxime Beauchemin
0ca3f5ec80 Improving SQLA query generation (#421)
* Improving SQLA query generation

* Fixing debug
2016-05-02 10:00:28 -07:00
Siddharth Gupta
d7ea47387f enable timerotateloghandler (configurable) (#311)
* attempt to enchance logging

* clean up logging

* clean up logging

* reset to logger

* clean up imports

* add comments in config.py

* remove redundant declaration of logging.config. Already exists in caravel/__init__.py

* replace RotatingFileHandler with TimedRotatingFileHandler

* revert back running web server in debug mode

* fix debug in bin/caravel

* resolve build errors - formatting

* need to test

* enable time rotateloghandler

* revert back print statements - add feature for rotatetimelog which is needed and make it configurable

* revert back to default in master

* fix build issues

* remove extra print statement

* change log location to default

* configure console log level and format
2016-05-01 07:59:08 -07:00
x4base
7b5b602e96 Use batch_alter_table to drop column in the migration script (#406) 2016-04-30 08:30:40 -07:00
Chris Williams
b78ec54650 Merge pull request #414 from airbnb/chris/fix-sunburst-level-trunc
[bugfix] allow repeated values across levels when building sunburst hierarchy
2016-04-29 10:59:29 -07:00
Maxime Beauchemin
337c9d59ae v0.8.9 2016-04-27 19:38:36 -07:00
Maxime Beauchemin
89d1a77281 [hotfix] filter_immune_slices fix 2016-04-27 13:41:06 -07:00
Maxime Beauchemin
b634d03ac3 Show only Slices and Dashboards users have access to (#404)
* Introducing more security features

* Many to many owners for slices and dashboards
* Slices are filtered to only slices that the user has access to

* Adding unit tests
2016-04-26 16:44:51 -07:00
Maxime Beauchemin
ab64a26b5b fix img loading overlay in explore view (#403) 2016-04-26 16:14:40 -07:00
andrewhn
a2f2ad84da add navigation, zoom to treemap (#396)
* add navigation, zoom to treemap

* don't use stale form data
2016-04-26 11:51:01 -07:00
Maxime Beauchemin
c0fb9eeca4 [bugfix] big_number doesn't fadeout on hover 2016-04-26 09:29:40 -07:00
Maxime Beauchemin
42ac46c1e1 [bugfix] fix context confusion in Slice 2016-04-26 09:29:19 -07:00
Maxime Beauchemin
7b1075990c [hotfix] periodic refresh dashboard feature had broken caching 2016-04-25 15:28:14 -07:00
Maxime Beauchemin
37be01bc12 [hotfix] adding cache_key in payload 2016-04-25 12:41:30 -07:00
Maxime Beauchemin
7d90f26554 Fixing #388 (#391) 2016-04-21 21:10:09 -07:00
Maxime Beauchemin
f1e10d8d25 One more Druid test (#387) 2016-04-21 08:17:15 -07:00
x4base
b01d378475 Fix the label of the periodic-refresh button (#386) 2016-04-21 08:16:52 -07:00
Maxime Beauchemin
f4177bfa94 More examples / tests (#385)
* More examples / tests

* Fixing the dashboards positioning
2016-04-20 17:36:37 -07:00
x4base
d8a2b621d8 Periodically update the slices in the dashboard (#374)
* Periodically update the slices in the dashboard

* Make the refresh interval changeable

* Add the button and the modal for the user to change the refresh interval

* Don't use callback for refreshing

* Randomize to prevent all widgets refreshing at the same time

* Show the loading icon as an overlay when the slices refresh
2016-04-20 17:35:07 -07:00
Maxime Beauchemin
9a33557112 Removing forgotten print statement 2016-04-20 15:28:02 -07:00
Kim Pham
efc6bf4eb8 Redirect application log to stderr, which is picked up by gunicorn. (#335) 2016-04-20 15:09:15 -07:00
Maxime Beauchemin
17e711fda2 Druid unit tests using Mock (#384)
* Initial Druid mock unit tests

* More unit tests

* Test for Druid query

* Adding a groupby test
2016-04-20 15:08:10 -07:00
Chris Williams
d96b634ded split sunburst breadcrumb names on '_' to apply ' '-dependent wrapping more freqently (#376) 2016-04-19 14:42:36 -07:00
Siddharth Gupta
afcdcf06a1 Fixing overwrite and save slice permissions for a give role (#298)
* Fixing overwrite and save slice permissions for a give role

* fix function name - build failed

* fix function name and test user permissions

* disable the button in the UI

* fix build error - characters too long in 1 line

* try to disable button on the UI

* disable cursor in caravel css. You wont be able to click anymore if no access

* fix build issues

* fix build errors! god bless me

* disable main features in dashboard and slice

* fix build issues
2016-04-18 13:56:00 -07:00
Maxime Beauchemin
5597eb4cc4 Fix db upgrade script b4456560d4f3 (#370)
* Recreating db upgrade error first

* Wrapping alter table calls in try statements
2016-04-18 12:49:13 -07:00
Siddharth Gupta
3f0171b77b Configure Visualizations (#365)
* make viz types configurable

* make visualizations configurable

* deault every viz is true

* add blacklist viz_type

* fix build
2016-04-18 09:00:03 -07:00
Maxime Beauchemin
badcd8bfa1 Storing version number in only one place (#362) 2016-04-17 08:20:11 -07:00
Maxime Beauchemin
04f1b176c4 Fixes issue #364 2016-04-17 08:17:08 -07:00
Maxime Beauchemin
899fe19afb [WiP] Attempting to support Druid's granularity origin as a hidden url param (#194)
* Supporting Druid'd time origin feature

* Adding origin to form, making it free form
2016-04-15 17:00:44 -07:00
Maxime Beauchemin
f3168518e2 New url default for iframe viz 2016-04-15 16:50:16 -07:00
Maxime Beauchemin
04d769ff24 Some more error handling when rendering the explore view (#361) 2016-04-15 15:00:49 -07:00
Maxime Beauchemin
01c2c7baf8 Fixing unique constraint in SqlaTable model (#360) 2016-04-15 14:53:06 -07:00
Maxime Beauchemin
2d420eee25 v0.8.8 2016-04-14 21:25:47 -07:00
Maxime Beauchemin
1a6757f10a Better type detection for inference of column matrix (#353) 2016-04-14 21:24:04 -07:00
Maxime Beauchemin
63e5e932cb Hide password from database 'show' view (#355) 2016-04-14 21:23:49 -07:00
Maxime Beauchemin
e6e8ec9620 [bugfix] missing redirect when datasource is missing (#352) 2016-04-14 20:25:40 -07:00
Maxime Beauchemin
ffdae19312 v0.8.7 2016-04-13 22:45:50 -07:00
Maxime Beauchemin
e5fabf39df Adjusting positioning in the examples 2016-04-13 22:39:23 -07:00
Ludovic
eb5a41728e Change the size of the column datasource_name in datasource creation … (#345)
* Change the size of the column datasource_name in datasource creation table to fix a Sql server specific issue.

* Change the model according to the change of the database script done in the PR 345
2016-04-13 22:32:48 -07:00
Maxime Beauchemin
91a3594be3 Fixing the thumbs and the galery (#346) 2016-04-13 22:32:03 -07:00
andrewhn
52ebdc5017 add treemap (#344) 2016-04-13 20:27:00 -07:00