Unipoll-api

Latest version: v0.12.2

Safety actively analyzes 625566 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 5

0.12.2

Chore

* chore: Fixed mypy linting ([`42e6e4a`](https://github.com/unipoll/api/commit/42e6e4a548e7be5ae13c54012aa054caf43d5df0))

Ci

* ci: Fixed file name ([`66b2835`](https://github.com/unipoll/api/commit/66b28353594530e0c079a2ad09c07ac197a3bda6))

* ci: Changed artifact download path ([`15c2f41`](https://github.com/unipoll/api/commit/15c2f41e6de1dec36ab8d3dec71d02bcd1fc2c10))

* ci: Added trigger on changelog update ([`3197245`](https://github.com/unipoll/api/commit/3197245d4784d83ea482f3b10edf6bf0a43d6e1b))

* ci: Updated changelog workflow ([`4c98e25`](https://github.com/unipoll/api/commit/4c98e2549b40055d29bb3ab1817edc3760fa4810))

* ci: update ([`f8cd7b3`](https://github.com/unipoll/api/commit/f8cd7b31910e99db4d58a87ee76f28832da5bc63))

* ci: update ([`7d897f9`](https://github.com/unipoll/api/commit/7d897f9b489b3c162a9ed52dac46b46239e423cc))

* ci: updated git installation step ([`04f002c`](https://github.com/unipoll/api/commit/04f002cc70f914b7b3f04f39aecef32741e994f5))

* ci: fixed needs ([`4f552fb`](https://github.com/unipoll/api/commit/4f552fb8a8ed088a7f3bfd49ae6855869c6b4e9d))

* ci: Changed test ci ([`acd9969`](https://github.com/unipoll/api/commit/acd9969f83cb8d8cbdd1a4671166e2923642bad1))

* ci: Changed workflow name ([`1c6a2e6`](https://github.com/unipoll/api/commit/1c6a2e607b2c2383c5336124986a4e1afce5ff00))

* ci: Added workflow to test ([`442fa8f`](https://github.com/unipoll/api/commit/442fa8fa386fd9e3c8972aecfd6212eaf082aa49))

* ci: Update docs job ([`73f6975`](https://github.com/unipoll/api/commit/73f6975b4f5b6e283a1617d5bc0639c5ad3f48ef))

* ci: app_id and private_key deprecated ([`3e3692d`](https://github.com/unipoll/api/commit/3e3692ddcb1aea17dfdf9e378653f6a3350f4c9c))

Fix

* fix: Fixed get and create polls actions ([`b9bdc72`](https://github.com/unipoll/api/commit/b9bdc72a52013a4797ad1803da875a26dc01b7e7))

Refactor

* refactor: Resolved mypy issues caused by original_field ([`73aa72b`](https://github.com/unipoll/api/commit/73aa72bed31dc58a5bd31855761b87e085231b17))

* refactor: Changed Poll document

Replace workspace Link with BackLink, removed redundant declarations ([`394a16e`](https://github.com/unipoll/api/commit/394a16ef01b9dd1007d01199cc64f1faf45a56b5))

Style

* style: Fixed flake8 errors ([`5390021`](https://github.com/unipoll/api/commit/5390021c65cf54a6e4164839c916fecef5a470c1))

* style: Removed extra spaces ([`1531b13`](https://github.com/unipoll/api/commit/1531b13cfec14c72da80f1cebbae053f9d804511))

Unknown

* Merge branch &39;main&39; of github.com:unipoll/API ([`ff0de73`](https://github.com/unipoll/api/commit/ff0de7356f2d4d29661c63521c6e618502639e05))

0.12.1

Fix

* fix: Changed policy_holder_type for new policies

The policy_holder_type was set to &34;member&34;, updated the method to use type of policy_holder via get_document_type() method ([`6f595ff`](https://github.com/unipoll/api/commit/6f595ffb31be2b257ce477a91348499317e303e5))

Refactor

* refactor: Changed argument type in ErrorWhileRemovingMember

Changed user: Account to member: Member ([`4301c36`](https://github.com/unipoll/api/commit/4301c36e258d206ff5ae94a2f69b87cc5636a4fa))

Unknown

* Merge pull request 78 from unipoll/members

Patch Policies ([`a5100c0`](https://github.com/unipoll/api/commit/a5100c0b39265c63744b39fcb3e37f95c7ae9941))

0.12.0

Feature

* feat: Added Member document ([`8199204`](https://github.com/unipoll/api/commit/8199204906b16fe2ca4170b68c2ad004ad571d62))

Fix

* fix: Removed PathOperations import ([`1cbfc93`](https://github.com/unipoll/api/commit/1cbfc9382cf38609a6a7572ca84db150cf7a0b0c))

* fix: Updated group request to get policies

Updated route get_group_policies to find member using dependency and use it for get_policies action ([`c16a981`](https://github.com/unipoll/api/commit/c16a9812a3f54be8f3f3387ad38bbd71d4b88098))

Refactor

* refactor: Fixed mypy issues ([`d6ec5b8`](https://github.com/unipoll/api/commit/d6ec5b83b7a0e14f31b28995b94e13f4b9b4f785))

* refactor: Added get_document_type classmethod

Added classmethod to Beanie Document get_document_type which returns Document type as a string ([`cfeebf7`](https://github.com/unipoll/api/commit/cfeebf7efacac5e46699baa1948c625e9fd23804))

* refactor: Updated to accommodate member update ([`73e4017`](https://github.com/unipoll/api/commit/73e4017d3ce140bceba55ee43e779b657cd68fcd))

* refactor: Deleted obsolete path_operations file

This file included functions to read actions for building permissions and check permissions based on operation_id, both functions are not obsolete ([`095c103`](https://github.com/unipoll/api/commit/095c103f2aed2f9a66dfdcdf3de861d931185dc1))

Style

* style: flake8 ([`b08c103`](https://github.com/unipoll/api/commit/b08c103344bbfc86c77544c2c4ba62f76d9a0124))

* style: Updated comments

Changed account to member ([`d29213a`](https://github.com/unipoll/api/commit/d29213a82dc473d081811e382982099cb4fb41a7))

Test

* test: Updated tests to use new member document ([`8f7f352`](https://github.com/unipoll/api/commit/8f7f35244d09fe7159bf2f50c8980d32b1805e98))

* test: Updated workspace tests due to member update ([`af1dd25`](https://github.com/unipoll/api/commit/af1dd25c9d1d74a8d32e7158361a0d557dfdc949))

Unknown

* Merge pull request 77 from unipoll/members

Updated Members ([`102afff`](https://github.com/unipoll/api/commit/102afff96b4df76433c4d497540f168084359040))

* Update README.md

Fixed link to developer wiki ([`a521dac`](https://github.com/unipoll/api/commit/a521dac3b95e70bc2a75c63eb5b961d89fb13df6))

0.11.3

Ci

* ci: Added job to trigger docs workflow

On release, the api release workflow will trigger workflow in the docs repository with event update_api_changelog ([`c68bd48`](https://github.com/unipoll/api/commit/c68bd48bc94afd34c8cdafd285e9d000356c09b6))

Fix

* fix: Fixed delete actions of Workspace/Group

Due to changed to policies, upon deletion of Workspace/Group the related Policies could not be fetched and therefore deleted. Using DBref, the updated actions find and delete policies without even fetching them first ([`764cd57`](https://github.com/unipoll/api/commit/764cd5757f89668c92d653388bd58e4b458718c9))

* fix: Updated policy as a workaround for 75

A workaround for issue 75, the `parent_resource` was converted to the **Link** type, which is manually populated using create_link() method. Since Beanie cannot/struggles to fetch links of multiple types, two new class methods were added: get_parent_resource() uses link reference to find and return parent document(Workspace/Group/Poll), and get_policy_holder() finds and returns document of policy holder(Account/Group). ([`7ac8180`](https://github.com/unipoll/api/commit/7ac8180b6e634ff2dfe5003f196506d0f02f7184))

* fix: Changed the default permission for new group

Replaced GROUP_BASIC_PERMISSIONS with WORKSPACE_BASIC_PERMISSIONS ([`ff0a65f`](https://github.com/unipoll/api/commit/ff0a65fd820072e7f215ee1001cd096e6151fde0))

Refactor

* refactor: Fixed mypy issues ([`8cb2916`](https://github.com/unipoll/api/commit/8cb291613123b10f87e5a232fdca16094e434bdf))

* refactor: Changed remove_policy method

Renamed remove_policy to remove_member_policy, and added new remove_policy method which takes policy as an argument ([`ddfe048`](https://github.com/unipoll/api/commit/ddfe048f5840b176c2982c0e3d4269c7de8bcf87))

Style

* style: Fixed resource spelling ([`6ffa917`](https://github.com/unipoll/api/commit/6ffa917c8d5b2c0d046ee25ce549356424cfbb20))

Test

* test: Styling

Provided query parameter using params argument instead of passing as a part of url string ([`d4f986c`](https://github.com/unipoll/api/commit/d4f986c484f9eb8fa23924c5d98cb48e9d55b754))

* test: Fixed set_permission_test

Added account_id parameter when checking account permissions ([`b68a4b1`](https://github.com/unipoll/api/commit/b68a4b15c8c32fa1f86fe85e0ca46d2d5c81073e))

Unknown

* Merge pull request 76 from unipoll/development

Policies Patch ([`697406d`](https://github.com/unipoll/api/commit/697406dd17ed22a8fd4f1e2c7ac2220ad8accf1f))

* Untrack .vscode ([`3885ec1`](https://github.com/unipoll/api/commit/3885ec19f7f8ccc352cb83d9ce2ea4853874ef0a))

* Update README.md

Updated Postman Documentation link ([`9d17121`](https://github.com/unipoll/api/commit/9d17121eee9038c23b5452f60ecbe2b0d8582944))

* Merge branch &39;main&39; of github.com:unipoll/API ([`f60d80b`](https://github.com/unipoll/api/commit/f60d80b3e95c2ebb44aa3922e3f277b1694cf60a))

0.11.2

Fix

* fix: Fixed routes to get/update policies

Updated Policy endpoints in Workspace and Group routes: Added account_id query parameter to GET resource/{resource_id}/policies, deleted GET resource/{resource_id}/policy, changed PUT resource/{resource_id}/policy to resource/{resource_id}/policies/{policy_id} and removed all the conditions inside ([`3404c17`](https://github.com/unipoll/api/commit/3404c17c670c693db5898512364bce1954d074cd))

Test

* test: Updated policies in workspace/group tests

Updated tests to accomodate workspace/group route changes to get/update policies ([`b65dc01`](https://github.com/unipoll/api/commit/b65dc018971d3f4a1a87811069cd2ba5ea10e10d))

Unknown

* Merge pull request 74 from unipoll/development

Updated get/update policies routes ([`6a950e6`](https://github.com/unipoll/api/commit/6a950e649a72cb07502114002449a22e4a0649fe))

0.11.1

Ci

* ci: Update postman.yaml

Changed vars.POSTMAN_API_ID to secrets.POSTMAN_API_ID ([`9c34ea9`](https://github.com/unipoll/api/commit/9c34ea9c713a19ba925878eda6e586b74f12a02e))

Fix

* fix: Added comma to workspace permission list ([`166184d`](https://github.com/unipoll/api/commit/166184d788be3ae743b9d199296d44b5c62c690a))

* fix: Updated set policy routes

Added case when user does not provide account_id in update_policy request, with the else statement, the route will find current user&39;s policy ([`f072769`](https://github.com/unipoll/api/commit/f07276900de423642c92f11cfffb3b7b6823cc4d))

* fix: Replace required permission for update_policy

Changed old permission set_policy to the new update_policies ([`edccfa9`](https://github.com/unipoll/api/commit/edccfa92d18143397dd74532d4c79c169557c21b))

* fix: updated get_policies_from_resource

check_permissions does not return anything but raises an exception in case user does not have the required permission, so the check must be made using try-catch block ([`c116990`](https://github.com/unipoll/api/commit/c1169909962064a00a5b45a78ad18786cbb97a7c))

* fix: Changed required permission

Changed required permissions from add_members to get_members ([`785b889`](https://github.com/unipoll/api/commit/785b889531a0ed97d086c5315cc37d0e4826bcf0))

* fix: Resolved issue with not getting group

check_permissions raises UserNotAuthorized from ResourceExceptions, so even though the permission is checked inside workspace, it will not raise WorkspaceExceptions ([`97808c3`](https://github.com/unipoll/api/commit/97808c3132025c43864a8d82ddb2a6b5b7df177a))

* fix: Resolved circular import ([`e5eb703`](https://github.com/unipoll/api/commit/e5eb703a12bcc55f83371224aa808b56c25b5b23))

Refactor

* refactor: resolved mypy issues ([`762fa14`](https://github.com/unipoll/api/commit/762fa149e2ee0adcb20eff5eeb501f8b309b8470))

* refactor: Added permission check to actions

Added permission check to actions using new check_permission function ([`3b83508`](https://github.com/unipoll/api/commit/3b83508134d8a5d1a2f10ffc423e34a060059d1c))

* refactor: Updated dependencies functions

Removed permission check dependencies, added http wrapper for resource accessors ([`05db0f0`](https://github.com/unipoll/api/commit/05db0f03e8df3db95719d2738617f625595f6c7c))

* refactor: Updated Permissions

Updated permission names, added utility function check_permissions which checks if user has required permissions based on provided resource and permission requirements, renamed check_permission to compare_permissions ([`4451376`](https://github.com/unipoll/api/commit/445137656e549833b76f02045216c4b2f84d6434))

* refactor: Removed permission check based on operation_id ([`5bd9b3b`](https://github.com/unipoll/api/commit/5bd9b3b5dfdc3ebe770c3cdbbbd26b0af8e21fbe))

Style

* style: flake8 styling ([`44a7dce`](https://github.com/unipoll/api/commit/44a7dceafbde475ac360470e747e5f8245cfc473))

Test

* test: Change group test

The new policy action will return the users policy even if the user does not have permission to get_policies ([`d4d7980`](https://github.com/unipoll/api/commit/d4d79802815dbe16515620d89bd958ca7e6e1518))

Unknown

* Merge pull request 73 from unipoll/permissions

Overhaul of Permission System ([`5e0ed7d`](https://github.com/unipoll/api/commit/5e0ed7dc21d07fd7619e2fc6da8dae5302bac275))

Page 1 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.