Currently, the InstallationStore interface does not have any methods for data deletion. We can add the following methods for properly handling tokens_revoked and app_uninstalled events. All the built-in classes should implement these methods. For developers who do not handle these events, implementing these are totally optional.
def delete_installation(
self,
*,
enterprise_id: Optional[str],
team_id: Optional[str],
user_id: Optional[str],
) -> None:
raise NotImplementedError()
def delete_bot(
self,
*,
enterprise_id: Optional[str],
team_id: Optional[str],
) -> None:
raise NotImplementedError()
def delete_all(
self,
*,
enterprise_id: Optional[str],
team_id: Optional[str],
):
raise NotImplementedError()
Here is an example I've implemented for Google Cloud Datastore: https://gist.github.com/seratch/d81a445ef4467b16f047156bf859cda8
Category (place an x in each of the [ ])
Requirements
Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to those rules.
Currently, the
InstallationStoreinterface does not have any methods for data deletion. We can add the following methods for properly handlingtokens_revokedandapp_uninstalledevents. All the built-in classes should implement these methods. For developers who do not handle these events, implementing these are totally optional.Here is an example I've implemented for Google Cloud Datastore: https://gist.github.com/seratch/d81a445ef4467b16f047156bf859cda8
Category (place an
xin each of the[ ])Requirements
Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to those rules.