From 1b8ed286e761ed707fdf1f615d5422211da4477d Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Fri, 27 Jun 2025 22:03:51 +0200 Subject: [PATCH] Fixed a bug with ERI data source retrieval process loading (#514) --- .../Dialogs/DataSourceERI_V1Dialog.razor.cs | 6 ++++++ app/MindWork AI Studio/wwwroot/changelog/v0.9.49.md | 1 + 2 files changed, 7 insertions(+) diff --git a/app/MindWork AI Studio/Dialogs/DataSourceERI_V1Dialog.razor.cs b/app/MindWork AI Studio/Dialogs/DataSourceERI_V1Dialog.razor.cs index 3aa67b9a..4a16bd18 100644 --- a/app/MindWork AI Studio/Dialogs/DataSourceERI_V1Dialog.razor.cs +++ b/app/MindWork AI Studio/Dialogs/DataSourceERI_V1Dialog.razor.cs @@ -106,6 +106,12 @@ public partial class DataSourceERI_V1Dialog : MSGComponentBase, ISecretId this.dataUsername = this.DataSource.Username; this.dataSecurityPolicy = this.DataSource.SecurityPolicy; this.dataMaxMatches = this.DataSource.MaxMatches; + + // We cannot load the retrieval processes now, since we have + // to load the data first. But while doing so, we can need to + // restore the selected retrieval process id. That's why we + // assign the selected retrieval id to the default retrieval process: + this.dataSelectedRetrievalProcess = this.dataSelectedRetrievalProcess with { Id = this.DataSource.SelectedRetrievalId }; if (this.dataAuthMethod is AuthMethod.TOKEN or AuthMethod.USERNAME_PASSWORD) { diff --git a/app/MindWork AI Studio/wwwroot/changelog/v0.9.49.md b/app/MindWork AI Studio/wwwroot/changelog/v0.9.49.md index a9cf4a2a..b36b3ea8 100644 --- a/app/MindWork AI Studio/wwwroot/changelog/v0.9.49.md +++ b/app/MindWork AI Studio/wwwroot/changelog/v0.9.49.md @@ -3,6 +3,7 @@ - Improved the loading of some components that require data fetching, resulting in a more responsive UI. - Improved some awkward phrasings in English and German. - Changed the timestamp display to use the local datetime format for the chats and assistants. +- Fixed a bug when editing data sources that caused the selected retrieval process of an ERI data source to not load correctly. - Upgraded to Rust 1.88.0. - Upgraded MudBlazor to version 8.8.0. - Upgraded Pdfium to version 137.0.7215.0.