authentik
authentik copied to clipboard
blueprints: find another way to run reconcile than with dir()
Now looking at it again I think there's probably a better way to do this than using `dir()` and then `getattr()`, probably something using a decorator?
Pseudo code:
@self.reconcile
def do_something(self):
pass
(Not really part of this PR tbh)
Originally posted by @BeryJu in https://github.com/goauthentik/authentik/pull/7590#discussion_r1422312556
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
@BeryJu I think this has been somewhat resolved with the changes in #8454
yeah after playing around a bit with implementing this with a @ManagedAppConfig.reconcile_tenant
decorator, that doesn't really help with code readability I think? It might still have an advantage to make it harder to accidentally misname a reconcile function and spend hours debugging why something isn't working