appsembler / tahoe-sites

Tahoe multi-tenancy app for site separation models and helpers for the edx-platform.
MIT License
0 stars 0 forks source link

Make create_tahoe_site atomic #59

Open shadinaif opened 1 year ago

shadinaif commented 1 year ago

Change description

Make create_tahoe_site atomic. It's three steps data insert, it should be atomic

Type of change

Related issues

Checklists

Development

Security

Code review

OmarIthawi commented 1 year ago

@shadinaif i recommend using the atomic in outter most possible place e.g. Django command or scripts one off command.

In very rare cases we can add it inside individual functions, but I don't think this one is one of them.