mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-12-04 10:46:27 +00:00
Renamed the settings of AI tasks (#1239)
This commit is contained in:
1 parent
d19d3d431b
commit
a117074972
109 files changed
+3929
-538
No files matched your search
@@ -18,14 +18,13 @@ The setting `DataApp.EnterpriseEncryptionExportFormat` decides the format, and n
|
||||
|
||||
## Compatibility Behavior
|
||||
|
||||
Settings written before v26.10.1 lack the property `App.EnterpriseEncryptionExportFormat`. When `SettingsManager` reads such settings, from the settings file or from its backup, it sets the format to v1. Settings of an older schema version always get v1 while they are migrated. Once the settings are stored, they hold the format, and the shim changes nothing anymore.
|
||||
Settings written before v26.10.1 lack the property `App.EnterpriseEncryptionExportFormat`. When `SettingsManager` reads such settings, from the settings file or from its backup, it sets the format to v1. Settings of an older schema version get v1 while they are migrated, unless they hold the format already, as settings of version V6 may. Once the settings are stored, they hold the format, and the shim changes nothing anymore.
|
||||
|
||||
Reading `ENC:v1:` values is no part of this shim: AI Studio keeps reading them for good, because organizations deployed configuration plugins with them.
|
||||
|
||||
## Removal Checklist
|
||||
|
||||
- Remove `KeepTheLegacyEncryptionExportFormat` and its call in `SettingsManager.TryDeserializeCurrentSettings`.
|
||||
- Remove the line which sets v1 after `SettingsMigrations.Migrate` in `SettingsManager.ReadSettingsSnapshot`.
|
||||
- Remove `KeepTheLegacyEncryptionExportFormat` and its calls in `SettingsManager.TryDeserializeCurrentSettings` and after `SettingsMigrations.Migrate` in `SettingsManager.ReadSettingsSnapshot`.
|
||||
- Remove the tests of `app/Tests/Settings/EnterpriseEncryptionExportFormatTests.cs` which expect v1 for settings without the property, and keep the others.
|
||||
- Keep the setting `DataApp.EnterpriseEncryptionExportFormat` and the v1 format: both stay.
|
||||
- Update this document's status to `Removed`.
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
# Former Names of the AI Task Settings
|
||||
|
||||
- Status: Active
|
||||
- Introduced: 2026-11-26
|
||||
- Remove after: 2027-05-26
|
||||
- Code references:
|
||||
- `app/MindWork AI Studio/Tools/PluginSystem/FormerSettingNames.cs`
|
||||
- `app/MindWork AI Studio/Tools/PluginSystem/PluginConfiguration.cs` (`TryProcessConfiguration`, the call of `FormerSettingNames.Resolve`)
|
||||
- `app/MindWork AI Studio/Plugins/configuration/plugin.lua` (the paragraph before the settings of the text content cleaner)
|
||||
- `app/Tests/Tools/PluginSystem/FormerSettingNamesTests.cs`
|
||||
|
||||
## User Impact
|
||||
|
||||
AI Studio v26.11.2 took the word "agent" out of the names of the AI tasks, because the agent mode needs that word for real agents. Seven settings which configuration plugins could already set in v26.11.1 changed their names with it:
|
||||
|
||||
| Name up to v26.11.1 | Name from v26.11.2 |
|
||||
|---|---|
|
||||
| `DataAgentDataSourceSelection.PreselectAgentOptions` | `DataDataSourceSelection.PreselectOptions` |
|
||||
| `DataAgentDataSourceSelection.PreselectedAgentProvider` | `DataDataSourceSelection.PreselectedProvider` |
|
||||
| `DataAgentRetrievalContextValidation.EnableRetrievalContextValidation` | `DataRetrievalContextValidation.EnableRetrievalContextValidation` |
|
||||
| `DataAgentRetrievalContextValidation.PreselectAgentOptions` | `DataRetrievalContextValidation.PreselectOptions` |
|
||||
| `DataAgentRetrievalContextValidation.PreselectedAgentProvider` | `DataRetrievalContextValidation.PreselectedProvider` |
|
||||
| `DataAgentRetrievalContextValidation.NumParallelValidations` | `DataRetrievalContextValidation.NumParallelValidations` |
|
||||
| `DataAssistantPluginAudit.PreselectedAgentProvider` | `DataAssistantPluginAudit.PreselectedProvider` |
|
||||
|
||||
Configuration plugins ignore a name they do not know without a word. Without this shim, an organization which updates to v26.11.2 would silently lose these settings, among them the provider which audits assistant plugins. An organization also rolls out a new version over weeks, and devices with v26.11.1 read only the former names, so its configuration plugin has to serve both versions meanwhile.
|
||||
|
||||
The other settings of the AI tasks, such as the minimum provider confidence or the settings of the text content cleaner, came after v26.11.1. No released version knew them under a former name, so they need no shim.
|
||||
|
||||
## Compatibility Behavior
|
||||
|
||||
Right after reading the table `SETTINGS` of a configuration plugin, `PluginConfiguration.TryProcessConfiguration` hands it to `FormerSettingNames.Resolve`. Everything after that, including the validation and the count of declared settings for the import preview, reads the table which `Resolve` returns:
|
||||
|
||||
- A setting the plugin sets under its former name only gets its current name. The same holds for its `.AllowUserOverride` companion.
|
||||
- A setting the plugin sets under both names keeps the value of the current name; the former name is left out. This lets an organization set both names while its devices run both versions.
|
||||
- For each setting set under its former name only, AI Studio logs a warning which names the plugin and the new name. A dry run, such as the preview of an import, logs nothing.
|
||||
|
||||
The settings file needs nothing of this: the settings migration to version V7 in `SettingsMigrations.MigrateV6ToV7` moves the locks, organization defaults, and snapshots of the user's values to the new names.
|
||||
|
||||
## Removal Checklist
|
||||
|
||||
- Remove `FormerSettingNames.cs`, its call in `PluginConfiguration.TryProcessConfiguration`, and the comment there.
|
||||
- Remove the paragraph about the former names from the example `plugin.lua`.
|
||||
- Remove `FormerSettingNamesTests.cs`.
|
||||
- Update this document's status to `Removed`.
|
||||
- Add a changelog entry: configuration plugins which still use the former names lose these settings.
|
||||
Reference in new issue
Block a user