annotaterb icon indicating copy to clipboard operation
annotaterb copied to clipboard

Routes are not annotated after migration tasks

Open floriandejonckheere opened this issue 5 months ago • 4 comments

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?

floriandejonckheere avatar Aug 07 '25 09:08 floriandejonckheere

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.

drwl avatar Aug 29 '25 15:08 drwl

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 avatar Oct 21 '25 13:10 OdenTakashi

@OdenTakashi the opt in approach seems fine to me. Thanks for volunteering to take it on.

drwl avatar Oct 22 '25 05:10 drwl

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 👍

OdenTakashi avatar Oct 22 '25 07:10 OdenTakashi