discourse/app
Martin Brennan 2461ed303c
DEV: Move loadLibs to explicit install message in media-optimization-worker (#14707)
Previously, `loadLibs` was called inside the `optimize` function of
the media-optimization-worker, which meant that it could be hit
multiple times causing load errors (as seen in b69c2f7311)

This commit moves that call to a specific message handler (the `install` message)
for the service worker, and refactors the service for the media-optimization-worker
to wait for this installation to complete before continuing with processing
image optimizations.

This way, we know for sure based on promises and worker messages
that the worker is installed and has all required libraries
loaded before we continue on with attempting any processing. The
change made in b69c2f7311 is no
longer needed with this commit.
2021-10-25 13:17:43 +10:00
..
assets DEV: Move loadLibs to explicit install message in media-optimization-worker (#14707) 2021-10-25 13:17:43 +10:00
controllers FIX: 2N+1 sql in admin /api/keys endpoint (#14679) 2021-10-21 17:00:17 +02:00
helpers DEV: Allow actions to change the manifest endpoint (#14522) 2021-10-06 15:41:52 -05:00
jobs SECURITY: Improve validation of SNS subscription confirm (#14671) 2021-10-20 22:20:52 +01:00
mailers FIX: Do not show recipient user in email participants list (#14642) 2021-10-19 15:26:22 +10:00
models FIX: Remove superfluous topic allowed users on group invite (#14656) 2021-10-22 08:57:51 +10:00
serializers DEV: Remove code that is no longer valid. (#14657) 2021-10-21 10:47:22 +08:00
services FEATURE: Change all core to use uppy-image-uploader (#14428) 2021-10-19 13:25:42 +10:00
views FIX: improvements for download local dates (#14588) 2021-10-14 09:22:44 +11:00