Skip to content

[pull] main from permitio:main#3

Merged
pull[bot] merged 1 commit intoalexstojda:mainfrom
permitio:main
Jun 23, 2025
Merged

[pull] main from permitio:main#3
pull[bot] merged 1 commit intoalexstojda:mainfrom
permitio:main

Conversation

@pull
Copy link

@pull pull bot commented Jun 23, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.1)

Can you help keep this open source service alive? 💖 Please sponsor : )

* Enhance Consistent Updates feature with new role unassignment endpoints

- Updated `FactsClient` to support optional query parameters in `build_forward_request` and `send_forward_request` methods, improving flexibility in request handling.
- Added new DELETE endpoints for unassigning user roles and deleting role assignments in the `facts_router`, allowing for better management of user roles with a `return_deleted` query parameter.
- Refactored `forward_request_then_wait_for_update` to accommodate the new query parameters, ensuring consistent behavior across requests.

* Refactor FactsClient methods to remove optional query parameters

- Updated `build_forward_request` and `send_forward_request` methods in `FactsClient` to eliminate the optional `query_params` argument, simplifying the request handling process.
- Adjusted related calls in `facts_router` to align with the new method signatures, ensuring consistent behavior across the application.

* fix pre-commit

* Enhance FactsClient and router with query parameter support

- Updated `FactsClient` methods to accept optional `query_params`, improving flexibility in request handling.
- Introduced a `pre_return_callback` parameter to `convert_response` for custom response processing.
- Modified `facts_router` endpoints to utilize the new query parameter functionality, specifically for handling `return_deleted` logic in user role management.
- Added a utility function to convert 200 responses to 204, enhancing response consistency.

* Refactor FactsClient and router to remove pre_return_callback parameter

- Eliminated the `pre_return_callback` parameter from `convert_response` in `FactsClient`, simplifying response handling.
- Updated `unassign_user_role` and `delete_role_assignment` functions in `facts_router` to remove references to `pre_return_callback`, ensuring consistent response processing.
- Adjusted `forward_request_then_wait_for_update` to align with the new method signature, enhancing clarity and maintainability.

* Refactor query parameter handling in FactsClient

- Updated the `FactsClient` to use a separate variable for merging query parameters, improving code clarity.
- Simplified the request parameter construction by directly using the new variable, enhancing maintainability.
@pull pull bot added the ⤵️ pull label Jun 23, 2025
@pull pull bot merged commit cfcebf4 into alexstojda:main Jun 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant