Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: using instanceId instead of id (#4999)

h3n4l2b879e698da9
diff --git a/backend/legacyapi/data_source.go b/backend/legacyapi/data_source.go
index 9ae23d2fb7..26e999c7a3 100644
--- a/backend/legacyapi/data_source.go
+++ b/backend/legacyapi/data_source.go
@@ -38,9 +38,9 @@ const (
// DataSourceOptions is the options for a data source.
type DataSourceOptions struct {
// SRV is used for MongoDB only.
- SRV bool `json:"srv"`
+ SRV bool `json:"srv" jsonapi:"attr,srv"`
// AuthenticationDatabase is used for MongoDB only.
- AuthenticationDatabase string `json:"authenticationDatabase"`
+ AuthenticationDatabase string `json:"authenticationDatabase" jsonapi:"attr,authenticationDatabase"`
}
// getDefaultDataSourceOptions returns the default data source options.
diff --git a/frontend/src/components/InstanceForm.vue b/frontend/src/components/InstanceForm.vue
index d2e3822ce3..6af308e77b 100644
--- a/frontend/src/components/InstanceForm.vue
+++ b/frontend/src/components/InstanceForm.vue
@@ -1367,6 +1367,7 @@ const getTestConnectionContext = () => {
const connectionInfo: ConnectionInfo = {
...basicInformation.value,
+ instanceId: basicInformation.value.id,
host: connectionHost,
port: connectionPort,
username: dataSource.username,