Skip to content

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.

2 participants