Skip to content

СB-5796 Metadata/data editor - error when changing server settings#3051

Merged
Wroud merged 12 commits intodevelfrom
CB-5796-metadata-data-editor-error-when-changing-server-settings
Nov 20, 2024
Merged

СB-5796 Metadata/data editor - error when changing server settings#3051
Wroud merged 12 commits intodevelfrom
CB-5796-metadata-data-editor-error-when-changing-server-settings

Conversation

@sergeyteleshev
Copy link
Copy Markdown
Contributor

No description provided.

@sergeyteleshev sergeyteleshev self-assigned this Nov 6, 2024
Comment on lines 107 to 109
}
} else {
} else if (!connection.connected) {
await this.connectionInfoResource.init({ projectId: key.projectId, connectionId: key.connectionId });
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not true fix i think, because this change is hides case but not solves the problem.
I suppose that problem is that one of extra requests to inner database resources silently re-opens connection on the backend. We need to investigate this case and solve the problem properly

@sergeyteleshev sergeyteleshev requested a review from Wroud November 6, 2024 18:35
@sergeyteleshev sergeyteleshev force-pushed the CB-5796-metadata-data-editor-error-when-changing-server-settings branch from f4b3970 to fc15d5d Compare November 8, 2024 14:29
const connection = useResource(ConnectionShield, ConnectionInfoResource, connectionKey);
const connecting = getComputed(() => connectionKey && connection.resource.isConnecting(connectionKey));
const connecting = getComputed(() => (connectionKey && connection.resource.isConnecting(connectionKey)) || connection.loading);
const isConnectionReady = getComputed(() => !connecting && connection.data?.connected && connection.loaded && !connection.outdated);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like we should implement some general solution for checking whether resource entity is fully available or not. Not now, but maybe in a tech sprint

@Wroud Wroud merged commit 4323578 into devel Nov 20, 2024
@Wroud Wroud deleted the CB-5796-metadata-data-editor-error-when-changing-server-settings branch November 20, 2024 06:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants