Skip to content

Scratch asset importing#755

Draft
zetter-rpf wants to merge 5 commits intomainfrom
scratch-asset-importing
Draft

Scratch asset importing#755
zetter-rpf wants to merge 5 commits intomainfrom
scratch-asset-importing

Conversation

@zetter-rpf
Copy link
Copy Markdown
Contributor

@zetter-rpf zetter-rpf commented Mar 27, 2026

Status

Points for consideration:

  • Security
  • Performance

What's changed?

Description of what's been done - bullets are often best

Steps to perform after deploying to production

If the production environment requires any extra work after this PR has been deployed detail it here. This could be running a Rake task, a migration, or upgrading a Gem. That kind of thing.

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.
@cla-bot cla-bot bot added the cla-signed label Mar 27, 2026
@github-actions
Copy link
Copy Markdown

Test coverage

89.65% line coverage reported by SimpleCov.
Run: https://github.com/RaspberryPiFoundation/editor-api/actions/runs/23657773173

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant