Skip to content

Report plugin activation in /info at request time, not at startup - #2577

Merged
p-hoffmann merged 1 commit into
masterfrom
p-hoffmann/live-plugin-info
Nov 3, 2026
Merged

p-hoffmann merged 1 commit into
masterfrom
p-hoffmann/live-plugin-info

Conversation

@p-hoffmann

Copy link
Copy Markdown
Member

/info reported configuration.plugins.<id>Enabled from a snapshot taken at startup, in two places:

  • PluginsConfigurationInfo called plugin.isActive() once, in its constructor.
  • InfoService built the whole Info object once, in its own constructor.

A plugin that only becomes active after those beans are created could be reported as disabled until the next restart, and a plugin that stops later stayed reported as enabled. TrexSQL is one example: it is active once its engine has started. Atlas 3 is moving to this flag to decide whether to show the cache UI (OHDSI/Atlas3#472).

Both values are now worked out on each request. Added unit tests for both classes.

@p-hoffmann
p-hoffmann merged commit d08d87b into master Nov 3, 2026
6 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.

1 participant