mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-13 06:13:48 +00:00
Added priorities for configuration plugins and fixed how they collide (#899)
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-pc-windows-msvc.exe, win-x64, windows-latest, x86_64-pc-windows-msvc, nsis,updater, nsis) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-unknown-linux-gnu, linux-x64, ubuntu-22.04, x86_64-unknown-linux-gnu, appimage,updater, appimage) (push) Blocked by required conditions
Build and Release / Prepare & create release (push) Blocked by required conditions
Build and Release / Publish release (push) Blocked by required conditions
Build and Release / Determine run mode (push) Waiting to run
Build and Release / Read metadata (push) Blocked by required conditions
Build and Release / Sync Flatpak repo (push) Blocked by required conditions
Build and Release / Collect Flatpak artifacts (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-apple-darwin, osx-arm64, macos-latest, aarch64-apple-darwin, dmg,app,updater, dmg) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-pc-windows-msvc.exe, win-arm64, windows-latest, aarch64-pc-windows-msvc, nsis,updater, nsis) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-unknown-linux-gnu, linux-arm64, ubuntu-22.04-arm, aarch64-unknown-linux-gnu, appimage,updater, appimage) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-apple-darwin, osx-x64, macos-latest, x86_64-apple-darwin, dmg,app,updater, dmg) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-pc-windows-msvc.exe, win-x64, windows-latest, x86_64-pc-windows-msvc, nsis,updater, nsis) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-unknown-linux-gnu, linux-x64, ubuntu-22.04, x86_64-unknown-linux-gnu, appimage,updater, appimage) (push) Blocked by required conditions
Build and Release / Prepare & create release (push) Blocked by required conditions
Build and Release / Publish release (push) Blocked by required conditions
Build and Release / Determine run mode (push) Waiting to run
Build and Release / Read metadata (push) Blocked by required conditions
Build and Release / Sync Flatpak repo (push) Blocked by required conditions
Build and Release / Collect Flatpak artifacts (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-apple-darwin, osx-arm64, macos-latest, aarch64-apple-darwin, dmg,app,updater, dmg) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-pc-windows-msvc.exe, win-arm64, windows-latest, aarch64-pc-windows-msvc, nsis,updater, nsis) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-unknown-linux-gnu, linux-arm64, ubuntu-22.04-arm, aarch64-unknown-linux-gnu, appimage,updater, appimage) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-apple-darwin, osx-x64, macos-latest, x86_64-apple-darwin, dmg,app,updater, dmg) (push) Blocked by required conditions
This commit is contained in:
1 parent
d1a6781ea6
commit
0eb747b386
17 files changed
+562
-104
No files matched your search
@@ -38,14 +38,19 @@ public abstract record ConfigMetaBase(string SettingName) : IConfig
|
||||
public Guid EditableDefaultByConfigPluginId { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Indicates whether a plugin contribution is available.
|
||||
/// The configuration plugins which contribute to this setting.
|
||||
/// </summary>
|
||||
public bool HasPluginContribution { get; protected set; }
|
||||
/// <remarks>
|
||||
/// Contributions are additive, so several configuration plugins may contribute at the same time
|
||||
/// and each of them keeps its own contribution. An organization might enable one preview feature
|
||||
/// for everybody and another one for a single department, for example.
|
||||
/// </remarks>
|
||||
public abstract IReadOnlyCollection<Guid> ContributingConfigPluginIds { get; }
|
||||
|
||||
/// <summary>
|
||||
/// The ID of the plugin that provided the additive value contribution.
|
||||
/// Indicates whether at least one configuration plugin contributes to this setting.
|
||||
/// </summary>
|
||||
public Guid PluginContributionByConfigPluginId { get; protected set; }
|
||||
public bool HasPluginContribution => this.ContributingConfigPluginIds.Count > 0;
|
||||
|
||||
/// <summary>
|
||||
/// Locks the configuration state, indicating that it is controlled by a specific plugin.
|
||||
@@ -133,13 +138,11 @@ public abstract record ConfigMetaBase(string SettingName) : IConfig
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Clears the additive plugin contribution without changing the current value.
|
||||
/// Removes the contribution of one configuration plugin without changing the current value.
|
||||
/// </summary>
|
||||
public virtual void ClearPluginContribution()
|
||||
{
|
||||
this.PluginContributionByConfigPluginId = Guid.Empty;
|
||||
this.HasPluginContribution = false;
|
||||
}
|
||||
/// <param name="configPluginId">The configuration plugin whose contribution is removed.</param>
|
||||
/// <returns>True when that plugin had a contribution, otherwise false.</returns>
|
||||
public abstract bool RemovePluginContribution(Guid configPluginId);
|
||||
|
||||
/// <summary>
|
||||
/// Resets the configuration property to its default value.
|
||||
|
||||
Reference in new issue
Block a user