Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

As username functionality can ignore service user error #219

Merged
merged 1 commit into from
Nov 28, 2024

Conversation

iLLiCiTiT
Copy link
Member

Changelog Description

It is possible to run as_username contextmanager and ignore error if used api key is not a service api key.

Additional review information

Sometimes the functionality to work as other user is not mandatory and can be done even if is not running as service user. Maintining that in code is hard because to work as other user a context manager must be used which complicates the code below it a lot.

Testing notes:

  1. It is possible to use with api.as_username("someuser", ignore_service_error=True) event if API key is not service API key.

@iLLiCiTiT iLLiCiTiT self-assigned this Nov 28, 2024
@iLLiCiTiT iLLiCiTiT added the type: enhancement New feature or request label Nov 28, 2024
@iLLiCiTiT iLLiCiTiT merged commit 7e2b9b4 into develop Nov 28, 2024
2 checks passed
@iLLiCiTiT iLLiCiTiT deleted the enhancement/allow-to-bypass-service-error branch November 28, 2024 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant