-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show datasource configuration status #163
Conversation
return; | ||
} | ||
|
||
this.globalDataSourceState.clear(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't want to clear the previous values, rather you want to compare and if the values change then you'll call fireRootChange
.
sema4ai/vscode-client/src/views.ts
Outdated
@@ -232,6 +232,11 @@ export function registerViews(context: ExtensionContext) { | |||
"treeDataProvider": robotsTreeDataProvider, | |||
}); | |||
|
|||
// Periodic refresh every 60 seconds | |||
setInterval(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's not poll for now and instead call robotsTreeDataProvider.updateDatasourceStatuses()
(without waiting) in the following situations:
-
when the root element (undefined) is asked in
async getChildren(element?: RobotEntry): Promise<RobotEntry[]> {
-- inviewsRobots.ts
. -
Whenever we drop or setup a data source or we finish awaiting for a model to be trained.
Please create a separate function for that as we may want to do more things (such as notifying the data extension when these things happen).
let isConfigured = dataSourcesFromActionPackage?.get(dbName)?.configured; | ||
|
||
let name = `${dbName} ?`; | ||
if (isConfigured !== undefined) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should also show the training state (when it's a model).
Stable release checklist:
python -m dev set-version {version}
/docs/changelog.md
with the changes for the releasePre-release checklist:
/docs/changelog.md
with the new changes.