Commit Graph

1601 Commits

Author SHA1 Message Date
ʈᵃᵢ
7b97764dbc [dashboard] New, list view (react) (#8845)
* adds dashboard listview component

* use new api

* use json over rison

* lint

* adds seperate dashboard list view

* edit and delete actions

* fix lint ignore

* fix common_bootstrap_payload is now a function

* fix license

* fix pylint

* isort

* fix tests

* lint

* lint ts

* fix js tests

* fix double import from bad rebase

* fix indent error

* lookup permissions

* generic permission lookup

* get tslint to pass

* adds js specs

* lint

* fix rebase

* lint

* lint again

* fix type errors preventing build

* adds more specs

* fix tslint error

* fix null check

* remove unecessary code

* use translations provided by api

* more translations

* linting

* fix spec

* i18n

* fix register order
2020-01-16 00:48:55 -05:00
David Aaron Suddjian
7e6719050b fix empty slug breaking url (#8974) 2020-01-16 00:34:23 -05:00
Erik Ritter
ff9bc74c86 Refactor sql editor autocomplete (#8967) 2020-01-15 13:05:56 -08:00
Maxime Beauchemin
31d7f69193 fix: lighten CSS border for data preview table (#8966)
this has been bugging me
2020-01-15 00:17:50 -05:00
David Aaron Suddjian
614f13377b [dashboard] Modal for editing dashboard properties & metadata (#8876)
* wip

* wip

* wip

* modal to update dashboard properties

* cleanup

* translations and flavor text

* linted

* more explanatory text in the modal
2020-01-14 14:29:59 -05:00
Grace Guo
50f21cb7db [filter_box] Fix ; separated filter_box default values (#8949) 2020-01-13 20:35:33 -08:00
Evan Rusackas
d9e7db69fe [css] Bringing Bootswatch in line with external variables, and other CSS tweaks (#8781)
* Bumping less-loader

* moving/updating styles, with a bit of linting as I go.

* more whittling

* caught a couple more colors

* reverting plugin config changes I was hacking around with.

* toast messages now use status colors across the board.

* no more pink.

* expanding scope of linting

* a little more CSS linting

* fixing popover adhoc metric title height issue

* eslint: Ignoring nore modules in subfolders
2020-01-13 12:59:20 -05:00
Daniel Vaz Gaspar
5b2499984d [dashboard] Deprecate superset published API (#8914) 2020-01-10 08:48:17 +00:00
Rob DiCiuccio
6537d5ed8c Replace pandas.DataFrame with PyArrow.Table for nullable int typing (#8733)
* Use PyArrow Table for query result serialization

* Cleanup dev comments

* Additional cleanup

* WIP: tests

* Remove explicit dtype logic from db_engine_specs

* Remove obsolete  column property

* SupersetTable column types

* Port SupersetDataFrame methods to SupersetTable

* Add test for nullable boolean columns

* Support datetime values with timezone offsets

* Black formatting

* Pylint

* More linting/formatting

* Resolve issue with timezones not appearing in results

* Types

* Enable running of tests in tests/db_engine_specs

* Resolve application context errors

* Refactor and add tests for pyodbc.Row conversion

* Appease isort, regardless of isort:skip

* Re-enable RESULTS_BACKEND_USE_MSGPACK default based on benchmarks

* Dataframe typing and nits

* Renames to reduce ambiguity
2020-01-03 11:55:39 -05:00
Grace Guo
cd8aa92cbb [explore view] fix: Inline edit chart title cause unintended overwrite original query parameter (#8835)
* [explore view] fix: Inline edit chart title cause unintended overwrite original query parameter

* add more unit tests

* handle new slice case
2019-12-18 16:17:48 -08:00
ʈᵃᵢ
cbf860074b move cypress into its own directory with package.json (#8627)
* move cypress into it's own directory with package.json

* update contributing and include cypress fixtures dir

* newline

* fix rebase

* add cypress dep

* bump cypress
2019-12-18 09:59:42 -08:00
Beto Dealmeida
9ed4b24533 Add toast presenter to Welcome app (#8854)
* Add toast presenter

* Improve message when unauthenticated

* Lint
2019-12-17 15:50:36 -08:00
Evan Rusackas
5780d9d53b Version number and SHA added to user menu (#8850)
* working!

* sigh... linting.

* more linting
2019-12-16 23:48:27 -08:00
Grace Guo
b6f31abcfe [dashboard] fix duplicated chart fetching when dashboard has default_filters (#8829) 2019-12-13 11:40:27 -08:00
John Bodley
18fbe56462 [fix] Adding time grains to Table (#8825) 2019-12-13 09:27:20 +13:00
Beto Dealmeida
ec43609820 Fix for when there are no dashboards (#8815) 2019-12-12 11:15:40 -08:00
Grace Guo
1d3c93ccb2 [filter_box] dashboard should carry defaultValue in filter_box (#8812) 2019-12-12 11:01:18 -08:00
Grace Guo
a96eae46af [dashboard] fix time granularity display values (#8806)
* [dashboard] fix time granularity display values

* fix review comments
2019-12-11 12:01:11 -08:00
Maxime Beauchemin
9f16d053e1 fix: don't show filter popover on explore view load (#8729)
* fix: don't show filter popover on explore view load

There's this confusing "feature" that I thought was a bug that shows the
metric popover opened when entering the explore view when the filter
comes from an active dashboard filter, based on the "fromFormData"
attribute of the filter.

The popover is confusing and often shows as misaligned with the actual
element it's supposed to float over when overflowing.

* warn

* fix cypress

* also shut off  metrics
2019-12-09 21:59:53 -08:00
Evan Rusackas
8b1022f66b darker opacity on shadow border for highlighted cards (#8797)
* darker opacity on shadow for highlighted cards

* removing unnecessary LESS fade

* lightening the lightest segment of the shadow again.
2019-12-09 21:58:59 -08:00
John Bodley
2fb95cc2b0 [fix] Adding time grains to DualLine (#8800) 2019-12-10 14:21:07 +13:00
John Bodley
665e94784c [fix] Adding time grains to PivotTable (#8764) 2019-12-05 09:55:33 -08:00
ʈᵃᵢ
f7c33680a4 adds react-router to welcome component (#8654)
* adds react-router to welcome component

* prettify

* empty commit
2019-12-04 18:23:53 -08:00
Erik Ritter
737c52541f Bump viz plugins for bug bash (#8759) 2019-12-04 17:27:21 -08:00
John Bodley
e72533506b [fix] Fixing time controls when switching datasource types (#8748)
* [fix] Fixing time controls when switching datasource types

* Update exploreReducer.js

* Update exploreReducer.js

* Fix linting
2019-12-04 16:55:08 -08:00
Maxime Beauchemin
e127579fc8 fix: remove unused .js module (#8741)
* fix: remove unused .js module

* fix tests, remove more references

* lints
2019-12-04 16:51:05 -08:00
Evan Rusackas
b107cc03bf SHA display touchups (#8614)
* Only showing last 8 chars of SHA

* visual touchups

* Grabbing first 8 rather than last 8

* 10 char SHA rather than 8

* atting config var for SHA length
2019-12-04 13:13:51 -08:00
John Bodley
3d2117809f [fix] Remedying filter-box w/ invalid metrics (#8722) 2019-12-04 11:34:56 -08:00
Beto Dealmeida
5b934bb377 Change column to longtext (#8739)
* Change column to longtext

* Manual merge heads
2019-12-04 11:24:23 -08:00
David Aaron Suddjian
0a5e4603c9 Correcting some issues with the Time-Series Table (#8746)
* default timeLag to 0

* correct placeholder

* remove random link default
2019-12-04 10:32:33 -08:00
ʈᵃᵢ
c88bb591eb improve performance for filter form selects (#8757) 2019-12-04 10:05:02 -08:00
John Bodley
38782e260a [charts] Chart specific time controls (#8674) 2019-12-03 17:41:51 -08:00
Grace Guo
89950440f2 [filter_box] Fix show time column in filter_box (#8740) 2019-12-03 17:02:09 -08:00
David Aaron Suddjian
b0b93768bb handle nulls in bar chart series/breakdown (#8724)
* handle nulls in bar chart series/breakdown

* snake_case

* add tests for null groups in bar charts

* black

* comments will save us
2019-12-03 16:11:15 -08:00
ʈᵃᵢ
5e1a6eafe4 bump style-loader to fix FOUC when sourcemaps are enabled (#8738) 2019-12-03 16:07:24 -08:00
David Aaron Suddjian
f055231e52 require a series on a bar chart in the UI (#8726) 2019-12-03 15:30:12 -08:00
Bogdan
003e98c231 Support schema permissions (#8219)
* Build support for schema access in Superset and SQLab

* Lint
* Test for old and new flask
* Black formatting
* Cleanup modified files
* Support schema permissions
* Add migration
* Make it work for slices as well
* TODO and remove unused field
* Apply schema access check to dashboards as well

Cleaner schema permissions check

Fetch schema permissions in 1 query

Bugfix

Better datasource check

Use security manager for permissions checks and remove dead code

Properly handle anon user

Add database permissions on the database updates

Fix schema filtering

Lint / flake changes

Increase cypress request timeout

Run black

Resolve multiple alembic heads

* Use set comprehensions

* Fixes for the pylint
2019-12-03 14:57:24 -08:00
Erik Ritter
43f637e403 [Explore] Fix annotation layer select box formatting (#8734) 2019-12-03 13:13:42 -08:00
Grace Guo
69dcaca324 [explore] should not triger chart render when overlay is on (#8719) 2019-12-03 10:36:15 -08:00
Maxime Beauchemin
871af05f68 fix: #8711 CSS loads late and app flickers (#8715) 2019-12-02 17:20:43 -08:00
Erik Ritter
57631f8962 [SQL Lab] Fix unadjustable sql editor height (#8716) 2019-12-02 16:39:49 -08:00
Maxime Beauchemin
6810174fcd fix: vulnerabilities by running 'npm audit fix' (#8657) 2019-12-02 10:18:39 -08:00
Erik Ritter
e06a138aad [SQL Lab] Re-add erroneously removed css (#8707) 2019-12-02 10:09:21 -08:00
Erik Ritter
44d919c757 Prettify the frontend code (#8648)
* Add Prettier global configs

* Format js/jsx/ts/tsx/less files
2019-11-27 14:02:48 -08:00
Evan Rusackas
172b90ec50 Font styling consolidation (#8633)
* Font weights standardized

* now with more glob!

* Linting touchups

* caught a low-value color declaration

* first wave of font size alignment

* getting the CRUD styles caught up to speed.

* unneeded inline-block - float does that for ya.

* a few errant colors that snuck in.

* more font stylings.

* caught some more colors that needed variable alignment

* le typo

* whittle, whittle

* dead styles

* whittling

* whittling

* whittling away at font sizes

* since we appear to be adjusting icon sizes for optics, let's get this one too.

* Prettier 

* whittling at line height standardization.

* placing vars, take 1

* 2 more down...

* cleaning out some styles that had no real effect.

* seemingly no change if this is removed for consistency.

* allowing one 8px line height for proper icon placement - adding comment.

* last one, I reckon.

* linting fixes
2019-11-27 10:36:25 -08:00
Evan Rusackas
f3555486f5 Filter edit icon component replaced with Font Awesome (#8600)
* replaced!

* added role to the FA image/button

* adding tabindex.

* capitalization of tabIndex matters. I'll have another cup of coffee now.

* added newine at end of file, added stylelint rule to track this.

* re-removing these files after merge conflict resolution.
2019-11-27 18:07:12 +00:00
Evan Rusackas
044348708e Fixing variable conflicts between Superset and Boot(swatch/strap) (#8650)
* Fixing @gray conflict between Superset and Bootswatch

* removing duplicate import... whoops!

* making bootswatch bend it's namespace rather than superset/
2019-11-27 17:53:46 +00:00
Evan Rusackas
badcf820c9 now with sourcemaps! (#8637) 2019-11-26 10:09:39 -08:00
Grace Guo
acf0753504 [dashboard scoped filters] Add all time related options to filter scope settings (#8636) 2019-11-25 10:21:09 -08:00
serenajiang
b34c9d36ba [fix] TimeTable timelag error (#8619) 2019-11-22 16:28:40 -08:00