Skip to content

Conversation

@kofrezo
Copy link
Contributor

@kofrezo kofrezo commented Jun 24, 2020

This PR from @hasegeli aims to make it possible to subscribe to changes of objects matching a custom Query using the adminapi module. One can use the subscribe_changes method to register a callback to act on changes.

Example Usage:

>>> from adminapi.dataset import Query
>>>
>>> to_observe = Query({'responsible_admin': 'john.doe'})
>>> to_observe.subscribe_changes(lambda commit: print('Something changed {}'.format(commit))

Besides the age of the PR this is a great feature and it comes already with some improvements to the history which we aim for on the long term.

@kofrezo kofrezo marked this pull request as draft June 25, 2020 14:09
@TheFRedFox TheFRedFox marked this pull request as ready for review July 21, 2021 10:49
@TheFRedFox TheFRedFox marked this pull request as draft July 21, 2021 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants