Skip to content

Conversation

Roffenlund
Copy link
Contributor

  • Create a main celery task which delegates the cache update for each community to a child task.
  • Implement tests.
  • Implement migration.

@Roffenlund Roffenlund requested a review from MythicManiac April 1, 2025 15:20
@Roffenlund Roffenlund force-pushed the update-communities-in-parallel branch from f134202 to 90c30b0 Compare April 1, 2025 15:23
@Roffenlund Roffenlund force-pushed the update-communities-in-parallel branch from 90c30b0 to baccb0e Compare April 2, 2025 12:25
Refactor task for updating chunked community packages to update each
community in parallel. Introduce a new task which is spawned by the main
update task to fire on each community.

Remove function responsible for updating all community caches and
introduce a new function doing the same thing but for a single
community, taking the community as a parameter.

Update cache tests because the old cache update function was removed.

Add update_single_community_cache to celery tests.

Add a create_batch method to CommunityFactory to help with testing.

Add test for the newly updated celery task to assert that the child
tasks are indeed spawned per community.

Refs. TS-2378
@Roffenlund Roffenlund force-pushed the update-communities-in-parallel branch from baccb0e to e7b3d98 Compare May 20, 2025 09:49
Copy link

codecov bot commented May 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.06%. Comparing base (0d673f3) to head (e7b3d98).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1128      +/-   ##
==========================================
+ Coverage   93.02%   93.06%   +0.04%     
==========================================
  Files         324      324              
  Lines        9685     9698      +13     
  Branches      858      859       +1     
==========================================
+ Hits         9009     9025      +16     
+ Misses        554      552       -2     
+ Partials      122      121       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants