Skip to content

DEV: Load all bundled plugins when running annotate:clean#39978

Merged
davidtaylorhq merged 1 commit into
mainfrom
annotate-bundled-plugins
May 13, 2026
Merged

DEV: Load all bundled plugins when running annotate:clean#39978
davidtaylorhq merged 1 commit into
mainfrom
annotate-bundled-plugins

Conversation

@davidtaylorhq
Copy link
Copy Markdown
Member

Core models often pick up associations and columns from bundled plugins (e.g. qa_vote_count from discourse-post-voting, locale-detection indexes from discourse-ai), and the schema blocks at the bottom of app/models/*.rb should reflect those.

annotate:clean now defaults LOAD_PLUGINS to the bundled plugin list (script/list_bundled_plugins) — the result is the same regardless of which extra plugins happen to be checked out under plugins/. Setting LOAD_PLUGINS explicitly still overrides.

Includes the resulting one-off annotation regen.

Core models often pick up associations and columns from bundled plugins (e.g. `qa_vote_count` from `discourse-post-voting`, locale-detection indexes from `discourse-ai`), and the schema blocks at the bottom of `app/models/*.rb` should reflect those.

`annotate:clean` now defaults `LOAD_PLUGINS` to the bundled plugin list (`script/list_bundled_plugins`) — the result is the same regardless of which extra plugins happen to be checked out under `plugins/`. Setting `LOAD_PLUGINS` explicitly still overrides.

Includes the resulting one-off annotation regen.
@davidtaylorhq davidtaylorhq force-pushed the annotate-bundled-plugins branch from fa23887 to c21e02c Compare May 13, 2026 14:36
@davidtaylorhq davidtaylorhq merged commit 993f94d into main May 13, 2026
18 checks passed
@davidtaylorhq davidtaylorhq deleted the annotate-bundled-plugins branch May 13, 2026 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants