Skip to content

Remove ProcessorService.register_modules() in favor of set_modules() - #836

Open
allenporter wants to merge 1 commit into
mainfrom
refactor/remove-register-modules
Open

allenporter wants to merge 1 commit into
mainfrom
refactor/remove-register-modules

Conversation

@allenporter

Copy link
Copy Markdown
Owner

Summary

  • Removes ProcessorService.register_modules() from supernote/server/components/processor/service.py, which had zero production callers and hardcoded domain stage names (hashing, metadata, png, ocr, embedding, summary) on the generic ProcessorService orchestrator.
  • Migrates the 25 test call sites across 5 test files to call set_modules([...]) directly.

Verification

  • git grep register_modules returns zero matches.
  • ./script/lint passes.
  • All 45 tests across the 5 updated test modules pass.

@github-actions github-actions Bot added the tech-debt Refactoring, performance, test infrastructure, and internal maintenance label Nov 26, 2026
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.54%. Comparing base (dc616e3) to head (9b48bcd).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #836      +/-   ##
==========================================
- Coverage   95.54%   95.54%   -0.01%     
==========================================
  Files         256      256              
  Lines       27907    27905       -2     
==========================================
- Hits        26665    26663       -2     
  Misses       1242     1242              

☔ View full report in Codecov by Harness.
📢 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.

This branch has not been deployed

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

Labels

tech-debt Refactoring, performance, test infrastructure, and internal maintenance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants