Skip to content

Use new cached project count column (part 2 of 2)#805

Open
zetter-rpf wants to merge 1 commit intocache-submitted-countfrom
cache-submitted-count-part-2
Open

Use new cached project count column (part 2 of 2)#805
zetter-rpf wants to merge 1 commit intocache-submitted-countfrom
cache-submitted-count-part-2

Conversation

@zetter-rpf
Copy link
Copy Markdown
Contributor

@zetter-rpf zetter-rpf commented May 1, 2026

MUST BE DEPLOYED AFTER #804

Status

Related to: https://github.com/RaspberryPiFoundation/digital-editor-issues/issues/1313
Follows on from: #804

What's changed?

In part 1 we started caching the value of submitted projects. Now we can use that value to simplify the code and reduce N+1 queries.

@cla-bot cla-bot Bot added the cla-signed label May 1, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 1, 2026

Test coverage

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

@zetter-rpf zetter-rpf force-pushed the cache-submitted-count branch from 9def7db to 6ff71db Compare May 1, 2026 15:28
In [1] we started caching the value of submitted projects. Now we can use that value to simplify the code and reduce N+1 queries.

[1] #804

Note that I've had to split the loading of remixes for teachers and students as teachers no longer need remixes (which causes bullet to complain)

Co-authored-by: Copilot <copilot@github.com>
@zetter-rpf zetter-rpf force-pushed the cache-submitted-count-part-2 branch from ed1ecb5 to a503b60 Compare May 1, 2026 15:41
@zetter-rpf zetter-rpf marked this pull request as ready for review May 1, 2026 15:41
@zetter-rpf zetter-rpf temporarily deployed to editor-api-p-cache-subm-lcmxl0 May 1, 2026 15:41 Inactive
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