Closed mariajgrimaldi closed 2 years ago
Question: should we fix the current backend or add a new one for maple?
Question: should we fix the current backend or add a new one for maple?
I prefer to create a new backend file because we have a hawthorn backend.
Can you review again please? @Alec4r
Description
get_current_site_orgs() obtains the current site orgs getting first the current site:
which doesn't exist in async processes. So, this adds an alternative: if the current org is not found then try getting them directly from the site settings.
Testing instructions
I'm currently testing this with an async task that enrolls users into a course. It's in a private repository, reach out if you want to test it out.
Additional information
I found this issue while trying to enroll users in a course using an async task and configuring the site with course_org_filter. With this change, it's working correctly.
Checklist for Merge