Commit Graph

417 Commits

Author SHA1 Message Date
Mayur
8226110be8 fix: revert RESTful apis and react view for RLS (#22818) 2023-01-26 18:04:00 -08:00
Rémy DUBOIS
80b31130b4 fix(async-queries): make global async. queries cookie SameSite option configurable (#21185)
Co-authored-by: Ville Brofeldt <ville.brofeldt@apple.com>
2023-01-16 09:52:15 +02:00
Artem Shumeiko
31e639318b chore(celery): update celery config variables names (#22499) 2023-01-13 16:56:15 +00:00
solanksh
cf00970cde feat(charts): allow query mutator to update queries after splitting original sql (#21645)
Co-authored-by: Akash <Akash.Nallani@bakerhughes.com>
Co-authored-by: anallani <98122184+anallani@users.noreply.github.com>
Co-authored-by: Robert Bean <robert.bean@bakerhughes.com>
Co-authored-by: Akash <anallani@umich.edu>
Co-authored-by: AkashN7 <70606604+AkashN7@users.noreply.github.com>
Co-authored-by: Ville Brofeldt <ville.brofeldt@apple.com>
2023-01-12 14:04:03 +02:00
Ville Brofeldt
7b15e6e3c7 fix(nav): make doc and bug buttons customizable (#22682) 2023-01-11 19:24:18 +02:00
Cemre Mengu
0b22287ad9 feat: make CTA text in Alerts & Reports mails configurable (#19779) 2023-01-10 11:52:54 -07:00
wanghong1314
8bf6d80155 fix: Stop query in SQL Lab with impala engine (#22635) 2023-01-10 16:52:07 +02:00
Mayur
159dcd7e62 feat(RLS): RESTful apis and react view for RLS (#22325) 2023-01-09 13:34:20 -07:00
Zamar
001100ddf0 feat(db_engine_specs): big query cost estimation (#21325)
Co-authored-by: zamar roura <zamar.roura@cabify.es>
Co-authored-by: Zamar Roura <zamarfazal@gmail.com>
2023-01-09 08:56:19 +02:00
Elizabeth Thompson
af34e454be fix: change example comment to match type (#21772) 2023-01-05 15:45:37 -08:00
Ville Brofeldt
037deb9a1d feat(rbac): add customizable related filters (#22526) 2023-01-05 16:42:08 +02:00
Hugh A. Miles II
ebaad10d6c feat(ssh-tunnelling): Setup SSH Tunneling Commands for Database Connections (#21912)
Co-authored-by: Antonio Rivero Martinez <38889534+Antonio-RiveroMartnez@users.noreply.github.com>
Co-authored-by: Elizabeth Thompson <eschutho@gmail.com>
2023-01-03 17:22:42 -05:00
Ville Brofeldt
b954f8f560 feat(welcome): make examples tab customizable (#22302) 2022-12-21 09:28:41 +02:00
Ville Brofeldt
aa0cae9b49 feat(thumbnails): add support for user specific thumbs (#22328) 2022-12-14 15:02:31 +02:00
Rui Zhao
d1989a4766 fix(report): Capture unexpected errors in report screenshots. Fixes #21653 (#21724)
Co-authored-by: Rui Zhao <zhaorui@dropbox.com>
2022-12-13 14:31:36 -07:00
Daniel Vaz Gaspar
e33a08693b fix: datasource save, improve data validation (#22038) 2022-11-07 10:33:24 +00:00
Michael S. Molina
7d1df3b78d feat: Improves SafeMarkdown HTML sanitization (#21895) 2022-11-04 10:34:02 -04:00
Ville Brofeldt
a02a778cc3 feat(reports): execute as other than selenium user (#21931)
Co-authored-by: Ville Brofeldt <ville.brofeldt@apple.com>
2022-10-31 14:32:49 +02:00
Rui Zhao
edce579047 feat(dashboard): Move dashboard auto refresh intervals options to config (#21924)
Co-authored-by: Rui Zhao <zhaorui@dropbox.com>
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>
2022-10-27 08:31:49 -03:00
Michael S. Molina
779d9f7533 feat: Adds the HORIZONTAL_FILTER_BAR feature flag (#21935) 2022-10-26 08:39:10 -03:00
Geido
c2834cc14c chore: Remove CROSS_REFERENCES feature flag (#21815) 2022-10-21 15:11:49 +03:00
Usiel Riedl
9a063abb3b feat(explore): add config for default time filter (#21879)
Co-authored-by: Usiel Riedl <usiel.riedl@automattic.com>
2022-10-20 20:09:51 +08:00
Michael S. Molina
f4da74ce8d feat: Adds a Content Security Policy (CSP) check for production environments (#21874) 2022-10-20 08:45:28 -03:00
Stephen Liu
7a7181a244 feat(color): color consistency enhancements (#21507) 2022-10-17 17:01:20 +08:00
Kamil Gabryjelski
406e44bba1 perf(dashboard): Virtualization POC (#21438) 2022-10-11 15:06:00 +02:00
Elizabeth Thompson
f58227a912 feat: add denylist for db engines (#21486) 2022-10-08 19:45:21 -07:00
Michael S. Molina
1cbf066415 feat: Adds the CROSS_REFERENCE feature flag (#21708) 2022-10-06 08:53:51 -03:00
Victor Arbues
ebd75366c0 feat(chart): add feature flag that displays the data pane closes by default (#21649) 2022-10-05 15:34:03 +08:00
Daniel Vaz Gaspar
ab7cfec975 feat: new config to filter specific users from dropdown lists (#21515) 2022-09-29 12:30:07 +01:00
John Bodley
eac6fdcd29 chore(sqllab): Cleanup /tables/... endpoint (#21284) 2022-09-13 08:22:12 -07:00
Sam Firke
0112a112bf docs: correct location of existing time grain definition (#21309) 2022-09-08 16:39:14 +08:00
Daniel Vaz Gaspar
c3f8417139 fix: disallow users from viewing other user's profile on config (#21302) 2022-09-05 13:32:48 +01:00
Daniel Vaz Gaspar
9fd752057e feat: adds TLS certificate validation option for SMTP (#21272) 2022-09-01 10:51:34 +01:00
Hugh A. Miles II
f2d67f75d0 Revert "ok (#21116)" (#21247)
This reverts commit 642a0d7704.
2022-08-30 09:31:34 -07:00
Hugh A. Miles II
c61a507e14 fix: add back custom sql filtering with Query as source (#21190) 2022-08-26 19:12:21 -07:00
Reese
25cc7897b1 feat: Environment tag (#20295)
* Added environment tag and relevant tests

* Reorganize imports

* Prevent errors when config value not set

* Default production tag to be hidden

* Change tag to Label component

* Fix import order

* Allow tag to be colored with theme

* Use theme for tag border radius

Co-authored-by: Lyndsi Kay Williams <55605634+lyndsiWilliams@users.noreply.github.com>

* Fix styling

Co-authored-by: Lyndsi Kay Williams <55605634+lyndsiWilliams@users.noreply.github.com>
2022-08-26 16:08:24 -06:00
Hugh A. Miles II
642a0d7704 ok (#21116) 2022-08-18 12:00:14 -04:00
AAfghahi
dda1dcf8ee feat: add header_data into emails (#20903)
* test sparkpost

* added logging info

* header function implementation

* added test

* daniel revisions

* daniel revision

* elizabeth review
2022-08-18 10:32:25 -04:00
Daniel Vaz Gaspar
db7e2b2e37 docs: improve encrypted field adapter docs (#21111) 2022-08-17 16:08:32 +01:00
Michael S. Molina
3df8335f87 feat: Adds drill to detail context menu for ECharts visualizations (#20891)
* feat: Adds drill to detail context menu for ECharts visualizations

* Rebases and adds time grain

* Fixes selected gauge values

* Fixes Treemap edge click

* Adds right click to big number trendline

* Address some comments
2022-08-09 17:02:31 -03:00
Jesse Yang
77db0651d8 feat(sql lab): display presto and trino tracking url (#20799) 2022-07-26 20:20:08 -07:00
Geido
a69f016bca chore: Feature flag for embedding charts (#20804)
* Add EMBEDDABLE_CHARTS feature flag

* Pretty

* Update test
2022-07-26 17:55:44 +03:00
Kamil Gabryjelski
de4f7db57e feat(dashboard): Transition to Explore with React Router (#20606)
* feat(dashboard): Use react-router for transition to Explore + cmd click to open in new tab

* Update tooltip

* Add a feature flag

* Update edit chart onclick event

* Fix lint

* Fix tests

* Change feature flag name

* Add tooltip to Edit chart
2022-07-07 11:52:03 +02:00
Rui Zhao
818962cc89 fix(embedded): Retry when executing alert queries to avoid sending transient errors to users as alert failure notifications (#20419)
Co-authored-by: Rui Zhao <zhaorui@dropbox.com>
2022-07-05 13:23:05 -07:00
Rahul Raj
4137fe03a0 fix(schedule-query): getUISchema function called in SchemaForm component (#20256)
* Revert "Superset - Release and Improvements (12-05-2022)"

* merging conflic changes

* Revert "Revert "Superset - Release and Improvements (12-05-2022)""

This reverts commit 6d18661e03.

* fixed breaking changes

* sync with master

* fixed breaking flows

* fixed getUISchema function call

* added default placeholder and updated docs

* fixed format and comments

* changed flag to configuration

* fix: indentation of SCHEDULED_QUERIES dict

* fix: changed intendation for SCHEDULED_QUERIES

* fix: updated docs for SCHEDULED_QUERIES

* fix: replaced button to menu item for SCHEDULED_QUERIES

* fix: updated docs for SCHEDULED_QUERIES

* fix: trailing whitespace
2022-07-05 14:16:37 +02:00
cccs-Dustin
daded10992 feat(SQL Lab): Make SQL Lab explore use the default viz from the config file (#20056)
* Modified SQL Lab so it uses the default viz to explore a new dataset with

* Added a comment to the config file

* Remove trailing whitespace

* [CLDN-1312] Removed the 'viz_type' variable so that when it is undefinded in the back-end, it gets set to the default viz

* [CLDN-1312] Only sets the 'all_columns' variable if the default viz type is a 'table'

* Will only pop 'selectedColumns' out of 'form_data' if it is present

* [CLDN-1312] Updated files so that the default viz is now being used again in SQL Lab Explore
2022-06-22 11:33:44 -06:00
Samira El Aabidi
68af5980ea feat(chart): Enable caching per user when user impersonation is enabled (#20114)
* add username to extra cache keys when impersonation is enabled.

* don't put effective_user in extra_cache_key

* get_impersonation_key method in engine_spec class  to construct an impersonation key

* pass datasource when creating query objects

* adding an impersonation key when construction cache key

* add feature flag to control caching per user

* revert changes

* make precommit and pylint happy

* pass a User instance

* remove unnecessary import
2022-06-20 18:14:08 -07:00
Stephen Liu
80b5578680 feat(superset-ui-core): add feature flag for the analogous colors (#19987)
* feat(superset-ui-core): add feature flag for the color analogous generator

* fix: test
2022-06-03 21:32:32 +08:00
cccs-RyanS
ddc01ea781 feat(business-types): initial implementation of SIP-78 (#18794)
* add BUSINESS_TYPE_ADDONS to config with example callback

* Removing uneeded whitespace

* [Work in progress] Modifying cidr function to allow for  single ip and adding port outline

* Added test REST endpoint, added some more ports

I've thrown in a test.py script as well that will try to connect to the
business_type endpoint.

* Moving code from config.py into the business api

Very simple api is exposed that will allow someone to call a checkport
endpoint and get back a response.

* Removing commented out bits.

* Adding fucntion dict back to the config

* Moving business_type endpoint to charts

* Adding schema for get endpoint

* Removing imports, updating docstring, fixing typo

Just some small changes as described in the title.  I've updated the
test.py as well so it functions with the endpoint changes.

* Adding translation dict

* Fixing ops

* Adding check for list

* Modifying changes to add quotes where needed

Also changed BusinessTypeResponse to resp.

* Adding in some code to call the filter config

If a column starts with "cidr_" it will call the code in config.py to
try to translate the filter.  Nothing is changed in the JSON being
executed, just some information is dumped to console.

* Porting Ryan's changes

* Adding migration script (as per Ryan's PR)

* Fixing typo

* Prettier fixes

* [CLDN-1043] Adding rough version of filter changes for business types

* fix down migration

* Fixing bugs after merge

* adding functionality to appy filters in back end

* Fixing linting issues

* fix down revision

* Changing conversion callback to handle multiple values at once

* Adding string representation of values

* Code cleanup plus fixing debouce to only be called once for each entry

* Removing non needed logginh

* Changing operator list to use sting values

* Using text value operators

* Removing clear operator call

* Moving business type endpoints

* fix down revision

* Adding port functions

* update migration

* fix bad rebase and add ff

* implement validator

* dont add invalid values to response

* [CLDN-1205] Added a new exception type for a business type translation error. Added the error message in the display_value field within the business type response. Modified the IP and Port business types to populate the error message field in the response if an error occurs

* [CLDN-1205] Added meaningful error message for port translation errors

* Removing status field from businesstype Response and adding in error message

* [CLDN-1205] Added check to make sure the port business type is within the valid range of ports, if it is not, it will populate the error message

* [CLDN-1205] Fixed the if statement that checks to see if the string_value is in the valid range of port numbers. It did not corrently verify this before now.

* [CLDN-1205] Fixed an error where it was trying to use string_value in <= statements. I just casted string_value to an integer if it is numeric, which allows <= operators to be used on it

* [CLDN-1207] Added unit tests for the cidr_func and port_translation_func functions which are located in /superset/config.py

* [CLDN-1207] removed the assertRaises line as it does not work with the cidr_func and port_translation_func functions

* [CLDN-1207] Added the skeleton of the test_cidr_translate_filter_func unit test, still need to update what the expected response from the function will be.

* [CLDN-1207] Added the remainder of the back-end unit tests for the business types

* [CLDN-1207] Fixed the syntax error which caused the test_cidr_translate_filter_func_NOT_IN_double unit test to fail

* [CLDN-1207] Removed the logging that was added for debugging purposes

* [CLDN-1207] Formatted the commands_tests.py file to make it nicer to look at/read through

* [CLDN-1207] Fixed the code so that it conformed to the pylint requirements (i.e., pylint no longer complains about the code in commands_tests.py)

* [CLDN-1207] Modified some of the docstrings so they made better use of the 100 character per line, line limit

* [CLDN-1207] Added the beginnings of the unit tests for the
business types API

* [CLDN-1207] Added a comment to the top of the commands_tests.py file explaining how to run the unit tests. This prevents the next person who tries to run them from having to waste time trying the different forms of testing that Superset supports (e.g., pytest, tox, etc.)

* [CLDN-1207] Added a grammar fix to the comments describing how to run the unit tests

* [CLDN-1207] Modified the description of the business_type API endpoints as they did not represent what the API was actually doing

* [CLDN-1207] Added further instructions on how to run the unit tests that are within the business_type/api_tests.py file

* add request validation

* disable request if business type missing

* [CLDN-1207] Unit tests for the business type API are now working, however, they need to be modified to make use of @mock as we don't want to have to run the server to be able to run the unit tests

* Removing businesss types deffinitons from config

* Adding select to only show valid business types

* Fixed Enzyme tests

* Added scalfolding for selecting filter dropdown

* Adding intigration tests

* fix revision

* fix typos and unnecessary requests

* break out useBusinessTypes

* Added front-end RTL unit tests for the business type API endpoint

* Fixed error from unit tests

* Added a unit test to ensure the operator list is updated after a business type API response is received

* Removing elect compoenet for business types

* Adding feature flag and allowing saving when no business type present

* fixing useEffect hooks

* Adding feature flag to model

* Changing behavior such that an empty string returns a default response

* add form validation

* Modified comments in unit test as command to run test has changed

* Modified comments in unit test as filename to run test has changed

* Modified the api_tests.py file to conform to the linting requirements

* Changed the name of one of the tests to reflect what the test is actually testing

* Added cypress back to the package.json

* Added informative comments

* Updated comments in files as well as removed imports which were not being used

* Changes made by npm run prettier

* Fixed spelling mistakes

* Updated models.py to remove placeholder comments used in development

* Added feature flag mocking in unit test

* Fixing open api failure

* Fixing business types to pass unit tests

* Reverting unsafe connections back to false

* Removing print statement

* Adding business tpye to export test

* setting default feature flag to false for business type

* Reverting pre commit

* Reverting pre commit and running pre commit

* Reverting pre commit and running pre commit

* Fixing formatting

* Adding license

* Fixing Linting

* Protecting api enpoints

* updating model

* Fixing code path when business type exists

* Linting

* Linting

* Fixing linting

* Fixing spelling

* Fixing schemas

* Fixing app import

* fixing item render

* Added RTL test to make sure business type operator list is updated after API response

* Fixing linting

* fix migration

* Changing unit tests

* Fixing import and DB migration after rebase

* Renaming to advanced types

* Fixing Linting

* More renaming

* Removing uneeded change

* Fixing linting and test errors

* Removing unused imports

* linting

* Adding more detailed name for migration

* Moving files to plugins

* more renaming

* Fixing schema name

* Disabling feature flag that should not be enabled by default

* Adding extra cehck

* NameChange

* formatting

* Fixing equals check

* Moveing all advanced type classes and types to one file, and converting tests to functional

* Adding advanced type to test and fix linitng

Co-authored-by: Ville Brofeldt <ville.v.brofeldt@gmail.com>
Co-authored-by: Dan Parent <daniel.parent@cse-cst.gc.ca>
Co-authored-by: GITHUB_USERNAME <EMAIL>
Co-authored-by: cccs-Dustin <96579982+cccs-Dustin@users.noreply.github.com>
2022-05-16 17:58:21 +03:00
John Bodley
449d08b25e fix: Refactor SQL username logic (#19914)
Co-authored-by: John Bodley <john.bodley@airbnb.com>
2022-05-12 21:03:05 -07:00