Commit Graph

1083 Commits

Author SHA1 Message Date
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 aa2b8b42d0 Updating CHANGELOG 2016-06-15 10:13:48 -07:00
Maxime Beauchemin 91e272546a v0.9.1 2016-06-15 09:46:29 -07:00
Maxime Beauchemin d90a2c861a Pinning all dependencies to specific versions (#627) 2016-06-15 09:29:37 -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 9ed8c32f76 Cranking up FAB to latest (1.7.1) version (#609) 2016-06-13 09:25:22 -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 2644dd1984 Adding a test for welcome page 2016-06-09 18:11:24 -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 cdb573e793 caravel: add missing test requirements in setup.py (#582) 2016-06-08 13:50: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