Refactoring for v0.99
Refactor
- [x] Use contextvars instead of
asgiref.Local - [x] Move domain-related handling to
routingmodule. - [ ] Make domain-related handling optional, together with all the related
TENANTSsettings. - [x] Use
TenantModel.routing - [ ] Implement middleware for session routing and headers routing
- [ ] Move to
pytest!! - [ ] Level up the typing game
more to come...
Looking forward to this! 😃
Sorry for the looooong delay. Life (not Zelda this time) is keeping me busy!
@lorinkoz Cheers!
Thanks!
Looking forward to this! 😃
btw what was specifically interesting to you from the TODO list?
Honestly I'll have to investigate! Are you able to summarize on the release notes since most things went to master?
I had my own implementation of Headers for routing because I use Django as a backend and communicate to it from the frontend over an internal route. I'll move to your supported format.
Ah, interesting.
Are you able to summarize on the release notes since most things went to master?
I will, still figuring out how to do it because there are quite some breaking changes.
I had my own implementation of Headers
Let me ask you here. What were you putting in the header? The schema name of the tenant, the id, or some other unique data?
I am putting the tenant PK, a UUID, in the header.
@ZipBrandon if one of these days you'd like to give a try to the v1 candidate, this is the place to start: https://github.com/lorinkoz/django-pgschemas/discussions/277