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

readme: used to_prepare instead of to_complete for tenant reset on console reload #346

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pragun16
Copy link

@pragun16 pragun16 commented Dec 31, 2024

Issue Description:
The QoL tip in the configuration option specifies the use of to_complete reloader callback to set ActsAsTenant.current_tenant which works fine during the console startup but does not reset the tenant on console reload.

Also referenced in this issue.

Proposed fix:
to_complete does not seem to work well in a console environment and thus, replacing it with to_prepare resets the tenant correctly, although the callback runs twice on console reload!

@pragun16 pragun16 force-pushed the update-qol-tip-config branch from 24a0667 to 3177d40 Compare December 31, 2024 09:36
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.

1 participant