Skip to content

Add opt-in support for automatically annotating routes after migration tasks#293

Merged
OdenTakashi merged 1 commit intodrwl:mainfrom
OdenTakashi:feature/auto-annotate-routes-after-migration
Feb 15, 2026
Merged

Add opt-in support for automatically annotating routes after migration tasks#293
OdenTakashi merged 1 commit intodrwl:mainfrom
OdenTakashi:feature/auto-annotate-routes-after-migration

Conversation

@OdenTakashi
Copy link
Collaborator

Thank you as always for maintaining this project. I really appreciate your continued work.

This change introduces an opt-in feature that allows users to automatically annotate routes after running migration tasks. A new method, Runner.run_after_migration, has been added for this purpose, and the annotate_models_migrate.rake task has been updated to call this new method instead of invoking Runner.run(["models"]) directly.

The auto_annotate_routes_after_migrate option has been added to the Options class, enabling users to turn this behavior on by specifying auto_annotate_routes_after_migrate: true in their .annotaterb.yml. Corresponding tests have also been added.

Refs: #251

Copy link
Owner

@drwl drwl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good to me -- can you rebase and we can get this in?

…n tasks

This change introduces an opt-in feature that allows users to
automatically annotate routes after running migration tasks. A new
method, `Runner.run_after_migration`, has been added for this purpose,
and the `annotate_models_migrate.rake` task has been updated to call
this new method instead of invoking `Runner.run(["models"])` directly.

The `auto_annotate_routes_after_migrate` option has been added to the
`Options` class, enabling users to turn this behavior on by specifying
`auto_annotate_routes_after_migrate: true` in their `.annotaterb.yml`.
Corresponding tests have also been added.

Refs: drwl#251
@OdenTakashi OdenTakashi force-pushed the feature/auto-annotate-routes-after-migration branch from 2e6eca8 to f6b2a01 Compare February 15, 2026 04:26
@OdenTakashi
Copy link
Collaborator Author

Thank you for reviewing.
Conflicts have been resolved. I’m going to merge this.

@OdenTakashi OdenTakashi merged commit f8d3486 into drwl:main Feb 15, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants