Skip to content
This repository was archived by the owner on Jan 19, 2025. It is now read-only.

Conversation

Aclrian
Copy link
Contributor

@Aclrian Aclrian commented Dec 3, 2022

Closes #1124.

Summary of Changes

  • add migration for todo annotations to another version, with the possibilities:
    • If the annotation is mapped to only one api element, the annotation will be migrated as expected.
    • If the annotation is mapped to multiple api elements, a todo annotation will be created for each api elements in the image for the mapping. If the type of the annotated of api element from apiv1 and the type of the to be annotated apiv2 element does not match, a unsure todo annotation will be created concerning this.

Testing Instructions

run the migrate command or view and run the test_migration.py file

@Aclrian Aclrian linked an issue Dec 3, 2022 that may be closed by this pull request
@Aclrian Aclrian changed the title featmigrate todo annotations feat:migrate todo annotations Dec 3, 2022
@Aclrian Aclrian changed the title feat:migrate todo annotations feat: migrate todo annotations Dec 3, 2022
@github-actions
Copy link

github-actions bot commented Dec 3, 2022

🦙 MegaLinter status: ✅ SUCCESS

Descriptor Linter Files Fixed Errors Elapsed time
✅ PYTHON bandit 8 0 0.67s
✅ PYTHON black 8 0 0 1.74s
✅ PYTHON flake8 8 0 0.49s
✅ PYTHON isort 8 0 0 1.15s
✅ PYTHON mypy 8 0 3.32s
✅ PYTHON pylint 8 0 2.92s

See errors details in artifact MegaLinter reports on CI Job page
Set VALIDATE_ALL_CODEBASE: true in mega-linter.yml to validate all sources, not only the diff

MegaLinter is graciously provided by OX Security

@Aclrian Aclrian force-pushed the 1124-migrate-todo-annotations branch from 8b74351 to fe7d221 Compare December 3, 2022 17:27
@Aclrian Aclrian closed this Dec 3, 2022
@Aclrian Aclrian force-pushed the 1124-migrate-todo-annotations branch from fe7d221 to b2cf4bc Compare December 3, 2022 18:43
@Aclrian Aclrian reopened this Dec 3, 2022
@Aclrian Aclrian changed the title feat: migrate todo annotations feat: migrate @todo annotations Dec 4, 2022
Aclrian and others added 7 commits December 4, 2022 20:48
…otations

# Conflicts:
#	package-parser/package_parser/processing/migration/_migrate.py
#	package-parser/tests/processing/migration/annotations/test_rename_migration.py
#	package-parser/tests/processing/migration/test_migration.py
@Aclrian Aclrian force-pushed the 1124-migrate-todo-annotations branch from 18d0c7c to 27bc4d9 Compare December 5, 2022 17:47
@Aclrian Aclrian force-pushed the 1124-migrate-todo-annotations branch from 0300634 to feab4e1 Compare December 5, 2022 18:19
@Aclrian Aclrian marked this pull request as ready for review December 5, 2022 18:32
@Aclrian Aclrian requested a review from lars-reimann as a code owner December 5, 2022 18:32
@Aclrian Aclrian removed the request for review from lars-reimann December 5, 2022 18:32
@Aclrian Aclrian merged commit a9684ea into main Dec 5, 2022
@Aclrian Aclrian deleted the 1124-migrate-todo-annotations branch December 5, 2022 19:03
@github-actions
Copy link

github-actions bot commented Dec 5, 2022

🎉 This PR is included in version 1.75.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@github-actions github-actions bot added the released Included in a release label Dec 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
released Included in a release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrate @todo annotations
1 participant