Added the ability to mark files as "Exclude" in the reassign dialog, preventing them from being uploaded to TF4M.
- Added
EXCLUDE = "exclude"to theDataTypeenum - Files marked with this type will be skipped during upload
- Added "Exclude from Upload" option to the type selection radio buttons
- Added informational label: "Note: Excluded files will not be uploaded to TF4M"
- Excluded files are displayed with:
- 🚫 icon prefix
- "(EXCLUDED)" text suffix
- Gray, italic text styling
- Tagged with "excluded" for consistent styling
- Updated to filter out files where
data_type == DataType.EXCLUDE - Checks applied to:
- CBCT files
- IOS upper/lower scans
- Intraoral photos
- Teleradiography
- Orthopantomography
- Right-click on any file in the patient browser
- Select "Reassign Type..."
- Choose "Exclude from Upload" option
- Click OK
- File List:
🚫 filename.ext (EXCLUDED)in gray italic text - Preview Column: 🚫 icon instead of file type icon
- Excluded files are automatically filtered out during upload
- They do not count towards completion requirements
- The system will only attempt to upload non-excluded files
Run the test script to verify:
python test_exclude_functionality.pyExpected results:
- ✅ 4 files uploaded (non-excluded)
- ✅ 3 files correctly excluded
- ✅ All exclusion filters working properly
- Flexibility: Users can exclude problematic or unnecessary files without deleting them
- Workflow Control: Fine-tune which files get uploaded to TF4M
- Data Management: Keep files in local project but skip them for remote upload
- Visual Feedback: Clear indication of excluded status in the UI
- If you have multiple similar photos, exclude the extras
- Mark poor quality scans as excluded rather than uploading them
- Keep test data in the project but prevent it from being uploaded
- Files that failed processing can be excluded from upload
- Excluded files remain in the local project structure
- Exclusion status is saved in the project cache
- Files can be un-excluded by reassigning them to a proper type
- Exclusion is independent of file matching/validation status