Scratch asset importing by zetter-rpf · Pull Request #755 · RaspberryPiFoundation/editor-api

added 5 commits

March 27, 2026 16:43
We have permission from the Scratch Foundation to use the library assets available with Scratch.

These tasks imports them assets defined in the in the library configuration files. See [1] for instructions on how to run.

RaspberryPiFoundation/digital-editor-issues#1229
It's good practice when performing a lots of requests to add in time so not to overload any servers.
When running rake tasks locally there can be a lot of output from SQL queries and active storage, making it harder to see warnings.
Make it possible to configure the Rails log level in development using environment variables.
This is just like the code in production.rb except it uses the development default of debug.
Some of these tasks may take a while, the ruby progress bar library makes it easy to get a sense of progress.

I've not shown the progress bar in tests as it messes the test output.