learningequality / studio

Content curation tools for Kolibri
https://studio.learningequality.org/
MIT License
112 stars 160 forks source link

Copying inline gets stuck #2556

Closed jayoshih closed 3 years ago

jayoshih commented 3 years ago

Original report I selected all the items under this list, and the topics ended up getting stuck in this state image

Potentially related report

Channel Edit → I imported contents from another channel and they appear now - but the grayed out "loading state" version of the channel still shows (image inside) - the screenshots are 15+ minutes since I did the import. It may have been an issue with my copying the parent topic of the target where those channels are loading into? image image

sentry-io[bot] commented 3 years ago

Sentry issue: STUDIO-B85

rtibbles commented 3 years ago

Fairly sure that I've isolated the cause of this - I think it is specifically a concurrency issue, caused by the fact that the 'get descendants' queryset uses fixed MPTT field values that are calculated once, as there are other copies happening in parallel that make these values outdated, it causes the subquery for the files to be incorrect, giving the key error.