Repository navigation
Extract NoteMetadataModule out of PageHashingModule - #835
Merged
Merged
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #835 +/- ##
==========================================
- Coverage 95.56% 95.54% -0.02%
==========================================
Files 255 256 +1
Lines 27810 27907 +97
==========================================
+ Hits 26577 26665 +88
- Misses 1233 1242 +9 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements Step 3 of ADR 0004 (preparing for #501).
Summary
NoteMetadataModule(TaskType.NOTE_METADATA,TaskScope.FILE) insupernote/server/components/note_metadata/processor.py:ProcessorServicevianote_metadata'sprocessorplatform (depends_on = (TaskType.PAGE_HASHING,),supports_standalone_images = False).has_ink,has_drawables), persistsNoteMetadataDO,NotePageMetadataDO, andNoteTitleDO(in reading order with stale title crop cleanup), and emits legacy<PAGEID>-less page diff metrics.cleanup_file()scoped by(user_id, file_id)to remove metadata rows and{file_id}/titles/*cache blobs on file purge.PageHashingModuleinsupernote/server/components/processor/page_hashing.py:parse_metadataonly,NotePageContentDOsync, checkpoint invalidation,NotePagesDeltaEvent, and orphan page PNG cleanup).transcriptdependency graph:TranscriptComponent.dependenciesnow includes"note_metadata", andOcrModule.depends_on = (TaskType.PNG_CONVERSION, TaskType.NOTE_METADATA)soNotePageMetadataDOandNoteTitleDOare guaranteed to be populated before OCR runs (while standalone images skipNOTE_METADATAcleanly).NOTE_METADATA(Note Metadata) toTASK_TYPE_LABELSandSTAGE_ORDERinsupernote/server/static/js/components/SystemPanel.js.docs/architecture/components.mdand processor/model docstrings.Verification
./script/lint(ruff, ty, tsc, biome, codespell, yamllint) passes.uv run --no-sync pytest -q -n 8passes, including dedicated unit tests intests/server/components/note_metadata/test_processor.pyand processor backfill/isolation tests intests/server/components/processor/test_service.py.