Routes are not annotated after migration tasks
Migrating from annotate_models, I've noticed that routes are no longer annotated after running migration tasks. annotate_models had this functionality, while it seems this gem no longer does.
Could we get this functionality added in?
Hi @floriandejonckheere apologies for missing this issue. I believe it was an intentional choice earlier in fork's development to decouple the two, but I don't see why it can't be added in with an opt-in mechanism.
Hi @drwl 👋
I’d like to take on this task and work on adding automatic route annotation after migration tasks
Before I start, I just want to confirm one detail — would it be acceptable to implement this as an opt-in feature, where route annotation runs automatically after migration tasks only when a specific option is enabled (for example, something like :auto_annotate_after_migrate: in .annotaterb.yml)?
I’d like to make sure this approach aligns with your expectations before proceeding.
@OdenTakashi the opt in approach seems fine to me. Thanks for volunteering to take it on.
Got it, thanks @drwl!
I'll go ahead and implement it as an opt-in feature (enabled via something like :auto_annotate_after_migrate: in .annotaterb.yml).
Let me know if you have any other preferences — otherwise I’ll proceed with this approach 👍