-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Summary
Test the attachment URL conversion feature with real NRS project issues to verify:
- Attachment mapping is created correctly during attachment migration
- Description and comment attachment references convert to OpenProject API URLs
- Images display correctly in OpenProject after migration
Related Work
This follows the implementation of proper attachment URL conversion:
- markdown_converter.py now accepts
attachment_mappingparameter - attachments_migration.py saves
attachment_mapping.jsonafter migration - work_package_content_migration.py loads mapping and passes to converter
Test Plan
Prerequisites
- Run
work_packages_skeletonmigration for NRS project - Run
attachmentsmigration for NRS project
Test Steps
- Select 10 NRS issues with attachments (images and documents)
- Run
work_packages_contentmigration - Verify in OpenProject:
- Images render correctly in descriptions
- Attachment links resolve to correct files
- No broken
references
Expected Results
- Images show as
in markdown - Clicking image links downloads correct file
- Document links work correctly
Files Modified
src/utils/markdown_converter.pysrc/migrations/attachments_migration.pysrc/migrations/work_package_content_migration.pysrc/migrations/work_package_migration.pyconfig/config.yamltests/unit/test_markdown_converter.py
Metadata
Metadata
Assignees
Labels
No labels