Commit Graph

236 Commits

Author SHA1 Message Date
Vitor Avila
7f9b0380e0 fix(embedded): adding logic to check dataset used by filters (#24808) 2023-07-31 14:10:57 -07:00
Sebastian Liebscher
14a27b1ba3 chore(api): clean up API spec (#24838) 2023-07-31 20:03:58 +03:00
EugeneTorap
fc89718d48 chore: Update pylint to 2.17.4 (#24700)
Co-authored-by: John Bodley <john.bodley@gmail.com>
2023-07-24 17:13:49 -07:00
Beto Dealmeida
9844b15e07 fix: embedded dashboard check (#24690) 2023-07-13 10:33:12 -07:00
Daniel Vaz Gaspar
0ddc0a6738 chore: remove marshmallow-enum dependency and bump FAB (#24499) 2023-06-27 08:37:43 +01:00
John Bodley
3e76736874 chore(dao): Organize DAOs according to SIP-92 (#24331)
Co-authored-by: JUST.in DO IT <justin.park@airbnb.com>
2023-06-18 18:32:32 -07:00
Daniel Vaz Gaspar
23bb1c48a1 chore: remove deprecated apis and ENABLE_BROAD_ACTIVITY_ACCESS (#24400) 2023-06-15 22:11:24 +01:00
Daniel Vaz Gaspar
c69634df27 chore: remove deprecated apis on superset, get_or_create_table, sqllab_viz (#24375) 2023-06-14 08:48:29 +01:00
Daniel Vaz Gaspar
c8e958fb7e chore: remove deprecated apis stop_query, queries, search_queries (#24360) 2023-06-13 15:56:06 +01:00
Ville Brofeldt
c09b8c6ec8 chore: remove user registrations menu for non-admins (#24198) 2023-06-13 14:03:58 +03:00
Daniel Vaz Gaspar
93ba59d868 chore: remove deprecated apis estimate_query_cost, results, sql_json, csv (#24359) 2023-06-13 09:31:16 +01:00
John Bodley
a3aacf2527 fix: Address dashboard permission regression in #23586 (#24350) 2023-06-12 11:15:27 -07:00
Michael S. Molina
a7f7f6645d feat: Convert ENABLE_BROAD_ACTIVITY_ACCESS and MENU_HIDE_USER_INFO into feature flags (#24345) 2023-06-12 10:40:22 -07:00
John Bodley
0e3f1f638c chore: Remove deprecated ENABLE_ACCESS_REQUEST workflow (#24266) 2023-06-09 18:54:31 -07:00
John Bodley
9adb023880 chore(druid): Remove legacy Druid NoSQL logic (#23997) 2023-06-09 15:33:23 -03:00
John Bodley
a4d5d7c6b9 chore(pre-commit): Add pyupgrade and pycln hooks (#24197) 2023-06-01 12:01:10 -07:00
John Bodley
d583ca9ef5 chore: Embrace the walrus operator (#24127) 2023-05-19 00:37:13 -07:00
Daniel Vaz Gaspar
694f93326d fix: methods incorrect type and update deprecated targets (#23935) 2023-05-05 18:57:27 +01:00
Daniel Vaz Gaspar
e5f512e348 fix: check sqlalchemy_uri (#23901) 2023-05-03 11:14:03 +01:00
Jack Fragassi
8bd432274a chore(api v1): Deprecate superset/override_role_permissions endpoint (#23714) 2023-04-18 11:09:39 -07:00
Ville Brofeldt
a8230336ff fix(dashboard-rbac): use normal rbac when no roles chosen (#23586) 2023-04-07 09:53:35 +03:00
Hugh A. Miles II
8fa77adf9a chore: Hugh/migrate estimate query cost to v1 (#23226)
Co-authored-by: Diego Medina <diegomedina24@gmail.com>
2023-03-17 18:02:25 -06:00
Beto Dealmeida
42e8d1b498 chore: improve schema security (#23385) 2023-03-17 08:05:50 -07:00
Beto Dealmeida
1b95da7487 fix: table schema permissions (#23356) 2023-03-14 15:18:18 -07:00
Hugh A. Miles II
b820eb8235 chore: Update pre-commit packages (#23173) 2023-03-13 17:05:13 -06:00
Ville Brofeldt
89576f8a87 fix(rbac): show objects accessible by database access perm (#23118) 2023-02-24 10:45:16 +02:00
Daniel Vaz Gaspar
d4362a3676 fix: reorganize role permissions (#23096) 2023-02-21 10:19:42 +00:00
Josh Soref
dec6ac49f6 chore(backend): Spelling (#19677)
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
Co-authored-by: Josh Soref <jsoref@users.noreply.github.com>
Co-authored-by: Evan Rusackas <evan@preset.io>
2023-02-17 10:48:24 -07:00
Daniel Vaz Gaspar
c39cf36d27 fix: css template permissions for gamma role (#23083) 2023-02-15 15:26:02 +00:00
Jack Fragassi
54f7a248a6 chore: deprecate /superset/filter/... endpoint, migrate to apiv1 (#22882) 2023-01-30 11:02:49 +00:00
Daniel Vaz Gaspar
d00ba15c78 chore: add statsd support to base API and refactor (#22887) 2023-01-27 17:52:08 +00:00
Artem Shumeiko
f3696ceef3 chore: Localization of several charts and elements (#22150)
Co-authored-by: ashumeiko <ashumeiko@ashumeiko.com>
2023-01-11 09:42:54 -07:00
Ville Brofeldt
5b2ca97341 fix(sqllab): remove link to sqllab if missing perms (#22566) 2023-01-09 14:02:36 +02:00
Ville Brofeldt
4c1777f20d fix(alerts): restrict list view and gamma perms (#21765) 2022-10-15 10:03:26 +03:00
Daniel Vaz Gaspar
ab7cfec975 feat: new config to filter specific users from dropdown lists (#21515) 2022-09-29 12:30:07 +01:00
Daniel Vaz Gaspar
7e2e8b8ad9 fix: dataset after insert when db relation does not exist (#21492) 2022-09-17 17:16:18 +01:00
Daniel Vaz Gaspar
64d216adb3 fix: permission sqlalchemy events (#21454) 2022-09-13 13:56:59 -07:00
Zef Lin
286474c3d8 fix: revert permission refactoring PR (#21313) 2022-09-06 19:18:22 +01:00
Daniel Vaz Gaspar
3f2e894af3 fix: dataset name change and permission change (#21161)
* fix: dataset name change and permission change
2022-08-31 18:11:03 +01:00
Daniel Vaz Gaspar
6223042050 fix: SQLAlchemy coercing subquery warning on RLS (#21257) 2022-08-31 08:16:57 +01:00
Shubham Sinha
d408393ba9 fixed guest role permissions (#21208) 2022-08-28 09:08:41 +02:00
Bogdan
ed6212a1f9 Reimplement permissions fetching to do it in a single transaction (#21156)
Co-authored-by: Bogdan Kyryliuk <bogdankyryliuk@dropbox.com>
2022-08-23 18:45:39 -07:00
Diego Medina
9291ad5d4c fix: Change dataset name affect data access role set to this dataset (#20574) 2022-08-02 14:06:53 -06:00
Daniel Vaz Gaspar
bfd2a3d79f fix: database permissions on update and delete (avoid orphaned perms) (#20081)
* fix: database permissions on update and delete (avoid orphaned perms)

* fix event transaction

* fix test

* fix lint

* update datasource access permissions

* add tests

* fix import

* fix tests

* update slice and dataset perms also

* fix lint

* fix tests

* fix lint

* fix lint

* add test for edge case, small refactor

* add test for edge case, small refactor

* improve code

* fix lint
2022-08-02 18:28:46 +01:00
John Bodley
e1094e2198 fix: Add migration to add created_by_fk as explicit owner for charts and datasets (#20617)
* fix: Add migration to add created_by_fk as owner

* Update 2022-07-05_15-48_409c7b420ab0_add_created_by_fk_as_owner.py

Co-authored-by: John Bodley <john.bodley@airbnb.com>
2022-07-26 10:22:19 -07:00
John Bodley
f0ca158989 fix: Refactor ownership checks and ensure consistency (#20499)
Co-authored-by: John Bodley <john.bodley@airbnb.com>
2022-07-07 11:04:27 -07:00
Reese
f9109583ce fix: Allow dataset owners to explore their datasets (#20382)
* fix: Allow dataset owners to explore their datasets

* Re-order imports

* Give owners security manager permissions to their datasets

* Update test suite

* Add SqlaTable to is_owner types

* Add owners to datasource mock

* Fix VSCode import error

* Fix merge error
2022-07-06 11:27:50 -03:00
Daniel Vaz Gaspar
f38dd1d42d feat: add hooks on set_perm for new data permissions (#20600)
* feat: add hooks on set_perm for new data permissions

* fix lint
2022-07-06 09:54:18 +01:00
John Bodley
ad308fbde2 chore(rls): Remove passing global username (#20344)
* chore(rls): Remove passing global username

* Update manager.py

* Update manager.py

* Update manager.py

* Update manager.py

Co-authored-by: John Bodley <john.bodley@airbnb.com>
2022-07-05 10:51:24 -07:00
John Bodley
3483446c28 refactor: Cleanup user get_id/get_user_id (#20492)
Co-authored-by: John Bodley <john.bodley@airbnb.com>
2022-06-24 17:57:04 -07:00