From c7590fa440e5e503c5fbee176ecff05b89c8a004 Mon Sep 17 00:00:00 2001 From: jasquat Date: Thu, 22 Dec 2022 16:19:21 -0500 Subject: [PATCH] removed scripts for permissions since that code has been mostly moved and superseded by refresh_permissions w/ burnettk --- .../src/.coverage.jason-Gazelle.473795.719220 | Bin 0 -> 77824 bytes .../src/.coverage.jason-Gazelle.475245.497833 | Bin 0 -> 77824 bytes .../src/.coverage.jason-Gazelle.476451.578823 | Bin 0 -> 77824 bytes .../scripts/add_permission.py | 32 ---------------- .../scripts/add_user_to_group.py | 35 ------------------ .../scripts/clear_permissions.py | 25 ------------- 6 files changed, 92 deletions(-) create mode 100644 spiffworkflow-backend/src/.coverage.jason-Gazelle.473795.719220 create mode 100644 spiffworkflow-backend/src/.coverage.jason-Gazelle.475245.497833 create mode 100644 spiffworkflow-backend/src/.coverage.jason-Gazelle.476451.578823 delete mode 100644 spiffworkflow-backend/src/spiffworkflow_backend/scripts/add_permission.py delete mode 100644 spiffworkflow-backend/src/spiffworkflow_backend/scripts/add_user_to_group.py delete mode 100644 spiffworkflow-backend/src/spiffworkflow_backend/scripts/clear_permissions.py diff --git a/spiffworkflow-backend/src/.coverage.jason-Gazelle.473795.719220 b/spiffworkflow-backend/src/.coverage.jason-Gazelle.473795.719220 new file mode 100644 index 0000000000000000000000000000000000000000..3c5fc7087c6bf5119e52f8ca861578c24a7e868e GIT binary patch literal 77824 zcmeI532+=&na5vG_uMnxx)1AW*|KFt$4Ig*+p=uQS4<$AKrqCCjYq9fk2LmN>F$v& zJGRu5a4lQK7F$I~kzlHJ1G}&lwnAYxwUB5x1p$hfgkrM}MPe1HqF4e3Qbq|Rk@kCU zx<{kSD;DL6xL(_u@Adiq@AvMbXWsw5TVsYQM^jotG30Hi2yq-5kY$9B5B^Hw&)(eN z5bPbWT!DKfrw?`9`R<_fK@@O(21&<*$E5baBf*gWCxJ2V-}}GhKH-hS3AQl;i~u9R z2rvSKfcd_FyRy2P%bqiop}1;jN<`IipTUE79NvH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^zT$m4LxH8VtIoX+W^y5D8SEm?gYnI$_dLhBl ztf5xyVL`l~@c@DeiU ztl~~Rt;AC>Zitr-K&+p4fP{7I)U8DVz9#R#oxcBM#RL`s;Xfxp#IIw0vzG7|B!LVM z-Y3^D-CfW70&hb$@b=Jpdt2baT^x9@YyCVZnE%K9|624Al19WA#N+<&`w#iP>+AD= z(>nmG|7+Zzb(gvBbI!x+|Nn7}+F!IE7cL9$<$uWEX8V!tR_;lz1#W%YHpABk$+>p@ z!o7NXdi9>Fc?J@!8P#? zkg<+6@#;l~6%&i+w+&l22%s_+u)rZFp`gTab%BU78l^*l2(nTsw`O-i%48=fp_wzR zo?yOf;O+ngREG2NEG!Kqi4+u3hBF9SsB}~ET2`LkHn?_BvW|`B)$>VS$!$v%#};eto40 zcf;EZs;X%um(^4iw0X{Kr`6h6KA(KP2|!S(#0N1r1*RBod37}uu(*Sug6{a{(sxk}&jHXtWsWW%Kjc;UmEJ`)JOk9ltoknMSU(KfP+0<9 zkdyJ)fO9`Upfdh$dTiyFrSGCn?gJrIhDq{C1HLh!Ae-X%|BD@8M$*0Ftn-qnI(Pe@ z_rKfmW#6}bz23*XL3jt?PWNT^ao3Ms$NnO#C?<*#U<4QeM&Je~K<_=J-K|L@}Bjsr`C{zmM-yX`CtDa17iRH literal 0 HcmV?d00001 diff --git a/spiffworkflow-backend/src/.coverage.jason-Gazelle.476451.578823 b/spiffworkflow-backend/src/.coverage.jason-Gazelle.476451.578823 new file mode 100644 index 0000000000000000000000000000000000000000..ef7f5c499e4d86a1876c0ad2756b2056f2b7908f GIT binary patch literal 77824 zcmeI532+=&na5vG_uMnxqg%4BmMvRWbc{x}Wm}dl`HBf-69|Slu<@uh>XF8tE8R1) zWyh9!60T*d*kY>)DH2T8ZeSO-!d58ErWO+IrXWBOlTd8dp-8MERTN9WK*}hAB+`EG zP4{SYdBvhU5!Y*5^SwUb|NY*5^vwI;cWW%8%F&dTP%`p16hIt@24oo_~9zcfQ*%eGvH^pFz@b|1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;+f@%9?Ak1&tn?)9iV{92wx!$knUD~`Yyjr2G_*f zLB<-^#48saR!l6M-!^R9Kme7ofO!si2}LEAs~bdA&?p^>M39wA`8B)qQYJ#6gl5jL zdV+$sO%s}m+h{}jjfeO)N?%~D;*G4^J@)Lzc8p>`04OB*1%?8in`Ss-{ z+zoFlsH&xrTvk$5)aE&}l~!wG>3s6}763t|jucrY?6XNg1bN=7@BfcxXySz_% zcR>HY;ce^Mvj;N*i~u9R2rvSS03*N%{6!KlN{&FYmCBSyVIbuHdc)B`H-jcBgEMBA zn+(kqzd>er57X*f6tLvGo#8BgIi5`UYT0CxydGkd9Rf8}hG`0Fmh^S9Lhx7Qc%+u@{6;873(t4fw`@qHK!a|1WiX8AfGgj z-v4gLmwn&%^?D!k2H_omJKdMv$6P;l9sP@}qL?T~fDvE>7=as{0KNBY3svRHZSKSL z-bF5`vDy&U=)L*6d{Je7h~C#f7E~>5b01veua>ypDokr)lJtnoxfaJ-zp}p?0gDy_ zJJ*3h@j_ht8h>%wY7i97iVI_cky^u<>Far4dB=Gm3OaoJ++D)w0MbE+y4Up&;w)u literal 0 HcmV?d00001 diff --git a/spiffworkflow-backend/src/spiffworkflow_backend/scripts/add_permission.py b/spiffworkflow-backend/src/spiffworkflow_backend/scripts/add_permission.py deleted file mode 100644 index 113a92da..00000000 --- a/spiffworkflow-backend/src/spiffworkflow_backend/scripts/add_permission.py +++ /dev/null @@ -1,32 +0,0 @@ -"""Get_env.""" -from typing import Any - -from spiffworkflow_backend.models.script_attributes_context import ( - ScriptAttributesContext, -) -from spiffworkflow_backend.scripts.script import Script -from spiffworkflow_backend.services.authorization_service import AuthorizationService - -# add_permission("read", "test/*", "Editors") - - -class AddPermission(Script): - """AddUserToGroup.""" - - def get_description(self) -> str: - """Get_description.""" - return """Add a permission to a group. ex: add_permission("read", "test/*", "Editors") """ - - def run( - self, - script_attributes_context: ScriptAttributesContext, - *args: Any, - **kwargs: Any, - ) -> Any: - """Run.""" - allowed_permission = args[0] - uri = args[1] - group_identifier = args[2] - AuthorizationService.add_permission_from_uri_or_macro( - group_identifier=group_identifier, target=uri, permission=allowed_permission - ) diff --git a/spiffworkflow-backend/src/spiffworkflow_backend/scripts/add_user_to_group.py b/spiffworkflow-backend/src/spiffworkflow_backend/scripts/add_user_to_group.py deleted file mode 100644 index 814cf6dc..00000000 --- a/spiffworkflow-backend/src/spiffworkflow_backend/scripts/add_user_to_group.py +++ /dev/null @@ -1,35 +0,0 @@ -"""Get_env.""" -from typing import Any - -from spiffworkflow_backend.models.script_attributes_context import ( - ScriptAttributesContext, -) -from spiffworkflow_backend.models.user import UserModel -from spiffworkflow_backend.scripts.script import Script -from spiffworkflow_backend.services.group_service import GroupService -from spiffworkflow_backend.services.user_service import UserService - - -class AddUserToGroup(Script): - """AddUserToGroup.""" - - def get_description(self) -> str: - """Get_description.""" - return """Add a given user to a given group. Ex. add_user_to_group(group='Education', service_id='1234123')""" - - def run( - self, - script_attributes_context: ScriptAttributesContext, - *args: Any, - **kwargs: Any, - ) -> Any: - """Run.""" - username = args[0] - group_identifier = args[1] - - group = GroupService.find_or_create_group(group_identifier) - user = UserModel.query.filter_by(username=username).first() - if user: - UserService.add_user_to_group(user, group) - else: - UserService.add_waiting_group_assignment(username, group) diff --git a/spiffworkflow-backend/src/spiffworkflow_backend/scripts/clear_permissions.py b/spiffworkflow-backend/src/spiffworkflow_backend/scripts/clear_permissions.py deleted file mode 100644 index bf81acfc..00000000 --- a/spiffworkflow-backend/src/spiffworkflow_backend/scripts/clear_permissions.py +++ /dev/null @@ -1,25 +0,0 @@ -"""Get_env.""" -from typing import Any - -from spiffworkflow_backend.models.script_attributes_context import ( - ScriptAttributesContext, -) -from spiffworkflow_backend.scripts.script import Script -from spiffworkflow_backend.services.authorization_service import AuthorizationService - - -class ClearPermissions(Script): - """Clear all permissions across the system .""" - - def get_description(self) -> str: - """Get_description.""" - return """Remove all groups and permissions from the database.""" - - def run( - self, - script_attributes_context: ScriptAttributesContext, - *args: Any, - **kwargs: Any, - ) -> Any: - """Run.""" - AuthorizationService.delete_all_permissions()