superset/tests
altef dee16de03e
[SIP-29] Add support for row-level security (#8699)
* Support and apply filters.

* Added the UI for row level security, and moved it all under SQLA in order to access the Table model more easily.

* Added a row level security filter documentation entry.

* Accidentally added two new lines to this file.

* Blacked and iSorted, hopefully.  Also, sometimes g.user may not be set.

* Another isort, and handling g not having a user attribute another way.

* Let's try this again #CI tests.

* Adjusted import order for isort; I was sure I'd already done this..

* Row level filters should be wrapped in parentheses in case one contains an OR.

* Oops, did not think that would change Black's formatting.

* Changes as per @mistercrunch.

* RLS filters are now many-to-many with Roles.

* Updated documentation to reflect RLS filters supporting multiple rows.

* Let's see what happens when I set it to the previous revision ID

* Updated from upstream.

* There was a pylint error.

* Added RLS ids to the cache keys; modified documentation; added template processing to RLS filters.

* A new migration was merged in.

* Removed RLS cache key from query_object.

* RLS added to the cache_key from query_context.

* Changes as per @etr2460.

* Updating entry for RLS pull request.

* Another migration to skip.

* Changes as per @serenajiang.

* Blacked.

* Blacked and added some attributes to check for.

* Changed to a manual query as per @mistercrunch.

* Blacked.

* Another migration in the meantime.

* Black wanted some whitespace changes.

* AttributeError: 'AnonymousUserMixin' object has no attribute 'id'.

* Oops, did hasattr backwards.

* Changes as per @mistercrunch.

* Doesn't look like text us required here anymore.

* Changes as per @dpgaspar

* Two RLS tests.

* Row level security is now disabled by default via the feature flag ENABLE_ROW_LEVEL_SECURITY.

* New head to revise.

* Changed the comment.
2020-02-22 11:21:31 +02:00
..
db_engine_specs Enable running of tests in tests/db_engine_specs (#8902) 2019-12-31 14:45:33 +02:00
fixtures Re-enable pylint for common, connector, and test files (#8774) 2019-12-09 22:32:54 -08:00
__init__.py Add licenses to translations (#6732) 2019-01-22 08:21:13 -08:00
access_tests.py factor out datasource_access_request model (#8809) 2019-12-17 16:17:49 -08:00
base_api_tests.py [tox] Allowing running of specific tests (#9097) 2020-02-06 16:45:37 -08:00
base_tests.py [database] Fix, tables API endpoint (#9144) 2020-02-20 10:15:22 +00:00
cache_tests.py [ci] Deprecate flake8 (#8409) 2019-10-18 14:44:27 -07:00
celery_tests.py Replace pandas.DataFrame with PyArrow.Table for nullable int typing (#8733) 2020-01-03 11:55:39 -05:00
chart_api_tests.py [mypy] Disallowing implicit optional (#9150) 2020-02-16 22:34:15 -08:00
core_tests.py [database] Fix, tables API endpoint (#9144) 2020-02-20 10:15:22 +00:00
dashboard_api_tests.py [mypy] Disallowing implicit optional (#9150) 2020-02-16 22:34:15 -08:00
dashboard_tests.py [tox] Allowing running of specific tests (#9097) 2020-02-06 16:45:37 -08:00
database_api_tests.py [database] new, select star API migration (#9054) 2020-02-14 14:30:49 +00:00
dataframe_test.py [tox] Allowing running of specific tests (#9097) 2020-02-06 16:45:37 -08:00
datasource_tests.py guard against duplicate columns in datasource save (#8712) 2019-12-04 11:05:06 -08:00
dict_import_export_tests.py [db migration] change datasources-clusters foreign key to cluster_id (#8576) 2020-01-13 11:02:36 -08:00
druid_func_tests.py [tox] Allowing running of specific tests (#9097) 2020-02-06 16:45:37 -08:00
druid_tests.py [fix] Fix table viz column order (#9122) 2020-02-16 22:51:35 -08:00
email_tests.py Moving away from using the root logger everywhere (#9099) 2020-02-07 23:38:48 -08:00
event_logger_tests.py Event logger config takes instance instead of class (#7997) 2019-08-08 13:47:18 -07:00
feature_flag_tests.py Flask App factory PR #1 (#8418) 2019-11-20 15:47:06 +00:00
form_tests.py [format] Using Black (#7769) 2019-06-25 13:34:48 -07:00
import_export_tests.py [dashboard] use filter_scopes metadata when import old dashboard (#9145) 2020-02-19 09:06:52 -08:00
load_examples_test.py Flask App factory PR #1 (#8418) 2019-11-20 15:47:06 +00:00
log_api_tests.py [tox] Allowing running of specific tests (#9097) 2020-02-06 16:45:37 -08:00
logging_configurator_tests.py Add LogConfigurator, and add logging for CSV export (#8085) 2019-08-27 13:22:18 -07:00
macro_tests.py [ci] Deprecate flake8 (#8409) 2019-10-18 14:44:27 -07:00
migration_tests.py [tests] Fix, removing deprecated function for future Python release compatibility. (#8353) 2019-10-21 15:49:12 +01:00
model_tests.py [tox] Allowing running of specific tests (#9097) 2020-02-06 16:45:37 -08:00
result_set_tests.py Catch TypeError on PyArrow array instantiation (#9139) 2020-02-17 08:34:00 -08:00
schedules_test.py Refactor Dashboard and Slice models (#8820) 2019-12-18 11:40:45 -08:00
security_tests.py [SIP-29] Add support for row-level security (#8699) 2020-02-22 11:21:31 +02:00
sql_parse_tests.py [tests] Fix, removing deprecated function for future Python release compatibility. (#8353) 2019-10-21 15:49:12 +01:00
sql_validator_tests.py [tox] Allowing running of specific tests (#9097) 2020-02-06 16:45:37 -08:00
sqla_models_tests.py [tox] Allowing running of specific tests (#9097) 2020-02-06 16:45:37 -08:00
sqllab_tests.py [tox] Allowing running of specific tests (#9097) 2020-02-06 16:45:37 -08:00
stats_logger_tests.py [format] Using Black (#7769) 2019-06-25 13:34:48 -07:00
strategy_tests.py [tox] Allowing running of specific tests (#9097) 2020-02-06 16:45:37 -08:00
superset_test_config_sqllab_backend_persist.py SIP-23: Persist SQL Lab state in the backend (#8060) 2019-11-14 09:44:57 -08:00
superset_test_config.py Add feature flags to control query sharing, KV exposure (#9120) 2020-02-19 09:51:50 -08:00
tagging_tests.py Wrap tagging endpoints in a feature flag (disabled by default) (#9078) 2020-02-05 11:10:13 -08:00
test_app.py Flask App factory PR #1 (#8418) 2019-11-20 15:47:06 +00:00
utils_tests.py [tox] Allowing running of specific tests (#9097) 2020-02-06 16:45:37 -08:00
utils.py [format] Using Black (#7769) 2019-06-25 13:34:48 -07:00
viz_tests.py [fix] Fix table viz column order (#9122) 2020-02-16 22:51:35 -08:00