-
- Downloads
[FIX] website_slides: fix concurrency traceback
- Prior to this commit, slide content of type document or presentation is having src as '/slides/embed' and that controller tries to set slide as viewed. Along with this, for few slide types (including document and presentation) and for logged in user, it will try to set slide as completed once slide rendering is done with help of method `_setCompleted`, without waiting for the iframe to be loaded. This means, the controller called from the src of iFrame and the above method both tries to update same 'slide_slide' table at the same time, resulting into concurrency error. - This commit fixes the issue by marking the slide as completed (with help of method `_setCompleted`) only after the iFrame is loaded, avoiding the concurrent updation of 'slide.slide' table. TaskID 2265863 Closes https://github.com/odoo/odoo/pull/52918 closes odoo/odoo#59382 X-original-commit: c5f406c8 Signed-off-by:Thibault Delavallee (tde) <tde@openerp.com>
Showing
- addons/website_slides/static/src/js/slides_course_fullscreen_player.js 6 additions, 1 deletion...e_slides/static/src/js/slides_course_fullscreen_player.js
- addons/website_slides/static/src/tests/tours/slides_course_member.js 1 addition, 1 deletion...ite_slides/static/src/tests/tours/slides_course_member.js
Please register or sign in to comment