You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With no default in settings, the registry resolves one from
registration order and never records it, so the choice is remade on
every start. startPlugins does not await plugin.start(), so a provider
that registers once its database answers loses the slot to one that
registers straight from start(), and the switch is silent because the
unavailable warning covers configured providers only.
Record the first provider to register, through the same settings write
the POST route uses, so a provider installed later cannot take the
default from the one already serving. The resources API does this for
resource providers. Nothing is recorded while settings do not
represent the configured state.
A failed write is reported once per run rather than per attempt: the
retry stays, but console.error reaches the log ring the Admin UI
subscribes to, and a plugin reconnecting in a loop would push the
errors explaining the loop out of it.
Copy file name to clipboardExpand all lines: docs/develop/rest-api/history_api.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -110,7 +110,7 @@ Returns an array of path strings.
110
110
111
111
The History API supports the registration of multiple history provider plugins.
112
112
113
-
The first plugin registered is set as the _default_ provider and all requests will be directed to it.
113
+
The first plugin to register becomes the _default_ provider and all requests are directed to it. When settings name no default, and the settings the server started with are safe to save, it records that first provider — so the choice holds across restarts and a plugin installed later does not take it over. A default already named in settings is never replaced, and a server started with `--data` or sample data records nothing, keeping the first provider for that run only. Change the default in the Admin UI under Apps & Plugins -> Configuration.
114
114
115
115
Requests can be directed to a specific provider by using the `provider` parameter in the request with the _id_ of the provider plugin.
Copy file name to clipboardExpand all lines: src/api/history/openApi.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -356,7 +356,7 @@ historyApiDoc.paths = {
356
356
configured: {
357
357
type: 'string',
358
358
description:
359
-
'Provider identifier persisted in server settings. May differ from `id` when the configured provider is not currently registered.'
359
+
'Provider identifier persisted in server settings, set either by a client through this API or by the server itself, which records the first provider to register when no default is configured and its settings are safe to save. May differ from `id` when the configured provider is not currently registered, and is absent on a server that has recorded nothing.'
0 commit comments