You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "scholarsmate (via GitHub)" <gi...@apache.org> on 2023/09/11 21:44:24 UTC
[GitHub] [daffodil-vscode] scholarsmate opened a new pull request, #841: upgrade to Ωedit™ v0.9.72
scholarsmate opened a new pull request, #841:
URL: https://github.com/apache/daffodil-vscode/pull/841
Upgrade from Ωedit™ v0.9.70 to v0.9.72. Changes made to facilitate Ωedit™'s updates to split mutable (e.g., memory and CPU usage, etc.) and immutable (e.g., server version, JVM version, etc.) server information into two separate calls.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [daffodil-vscode] scholarsmate commented on a diff in pull request #841: upgrade to Ωedit™ v0.9.73
Posted by "scholarsmate (via GitHub)" <gi...@apache.org>.
scholarsmate commented on code in PR #841:
URL: https://github.com/apache/daffodil-vscode/pull/841#discussion_r1327729083
##########
src/dataEditor/dataEditorClient.ts:
##########
@@ -94,8 +96,19 @@ const OMEGA_EDIT_MIN_PORT: number = 1024
// file-scoped types
// *****************************************************************************
+class ServerInfo implements IServerInfo {
+ serverHostname: string = 'unknown' // hostname
Review Comment:
Seems like that would add a lot of boilerplate to the code for very little benefit.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [daffodil-vscode] stricklandrbls commented on a diff in pull request #841: upgrade to Ωedit™ v0.9.73
Posted by "stricklandrbls (via GitHub)" <gi...@apache.org>.
stricklandrbls commented on code in PR #841:
URL: https://github.com/apache/daffodil-vscode/pull/841#discussion_r1327686979
##########
src/svelte/src/components/ServerMetrics/ServerMetrics.svelte:
##########
@@ -20,13 +20,19 @@ limitations under the License.
let heartbeat = {
latency: 0,
- omegaEditPort: 0,
serverCpuLoadAverage: 0,
serverTimestamp: 0,
serverUptime: 0,
serverUsedMemory: 0,
- serverVersion: 'Unknown',
sessionCount: 0,
+ omegaEditPort: 0,
+ serverVersion: 'Unknown',
Review Comment:
these `'Unknown'` values are different than the `'unknown'` values in `serverInfo`. Should they be the same?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [daffodil-vscode] stricklandrbls commented on a diff in pull request #841: upgrade to Ωedit™ v0.9.73
Posted by "stricklandrbls (via GitHub)" <gi...@apache.org>.
stricklandrbls commented on code in PR #841:
URL: https://github.com/apache/daffodil-vscode/pull/841#discussion_r1327675673
##########
src/dataEditor/dataEditorClient.ts:
##########
@@ -94,8 +96,19 @@ const OMEGA_EDIT_MIN_PORT: number = 1024
// file-scoped types
// *****************************************************************************
+class ServerInfo implements IServerInfo {
+ serverHostname: string = 'unknown' // hostname
Review Comment:
I've been reading a bit on *stringly-typed* objects in TypeScript and it seems to be best to avoid them
> See **Item 33: Prefer More Precise Alternatives to String Types** in *Effective TypeScript* by Don Vanderkam
Maybe `serverHostname: string` could be `serverHostname: Hostname` where <code>type Hostname = "unknown" | "localhost" | \`{number}.{number}.{number}.{number}.` </code>. Likewise for other
##########
src/dataEditor/dataEditorClient.ts:
##########
@@ -94,8 +96,19 @@ const OMEGA_EDIT_MIN_PORT: number = 1024
// file-scoped types
// *****************************************************************************
+class ServerInfo implements IServerInfo {
+ serverHostname: string = 'unknown' // hostname
Review Comment:
I've been reading a bit on *stringly-typed* objects in TypeScript and it seems to be best to avoid them
> See **Item 33: Prefer More Precise Alternatives to String Types** in *Effective TypeScript* by Don Vanderkam
Maybe `serverHostname: string` could be `serverHostname: Hostname` where <code>type Hostname = "unknown" | "localhost" | \`{number}.{number}.{number}.{number}` </code>. Likewise for other
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [daffodil-vscode] stricklandrbls commented on a diff in pull request #841: upgrade to Ωedit™ v0.9.73
Posted by "stricklandrbls (via GitHub)" <gi...@apache.org>.
stricklandrbls commented on code in PR #841:
URL: https://github.com/apache/daffodil-vscode/pull/841#discussion_r1327756565
##########
src/dataEditor/dataEditorClient.ts:
##########
@@ -94,8 +96,19 @@ const OMEGA_EDIT_MIN_PORT: number = 1024
// file-scoped types
// *****************************************************************************
+class ServerInfo implements IServerInfo {
+ serverHostname: string = 'unknown' // hostname
Review Comment:
I'd have to look more at the flow of data for this particular instance but just in general I like the idea of strict and defined types over `string` or `number`. There are also cases where you can "type define" yourself into a corner and this might be one of them.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [daffodil-vscode] scholarsmate merged pull request #841: upgrade to Ωedit™ v0.9.73
Posted by "scholarsmate (via GitHub)" <gi...@apache.org>.
scholarsmate merged PR #841:
URL: https://github.com/apache/daffodil-vscode/pull/841
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [daffodil-vscode] scholarsmate commented on pull request #841: upgrade to Ωedit™ v0.9.73
Posted by "scholarsmate (via GitHub)" <gi...@apache.org>.
scholarsmate commented on PR #841:
URL: https://github.com/apache/daffodil-vscode/pull/841#issuecomment-1721545411
This PR took a lot of tinkering to get the dependencies right. This shifts us from Node 14, to Node 16. Ωedit™ is now built using Node 16, and the minimum version of VS Code that we're supporting for v1.4.0 has been bumped to 1.67.2 which uses Node 16 internally (up from Node 14 in v 1.60.2). This PR also pins the versions for all dependencies that we ship with and some of the devDependencies where upgrading caused problems.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [daffodil-vscode] stricklandrbls commented on a diff in pull request #841: upgrade to Ωedit™ v0.9.73
Posted by "stricklandrbls (via GitHub)" <gi...@apache.org>.
stricklandrbls commented on code in PR #841:
URL: https://github.com/apache/daffodil-vscode/pull/841#discussion_r1327675673
##########
src/dataEditor/dataEditorClient.ts:
##########
@@ -94,8 +96,19 @@ const OMEGA_EDIT_MIN_PORT: number = 1024
// file-scoped types
// *****************************************************************************
+class ServerInfo implements IServerInfo {
+ serverHostname: string = 'unknown' // hostname
Review Comment:
I've been reading a bit on *stringly-typed* objects in TypeScript and it seems to be best to avoid them
> See **Item 33: Prefer More Precise Alternatives to String Types** in *Effective TypeScript* by Don Vanderkam
Maybe `serverHostname: string` could be `serverHostname: Hostname` where <code>type Hostname = "unknown" | "localhost" | \`${number}.${number}.${number}.${number}` </code>. Likewise for other *stringly-typed* variables.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [daffodil-vscode] stricklandrbls commented on a diff in pull request #841: upgrade to Ωedit™ v0.9.73
Posted by "stricklandrbls (via GitHub)" <gi...@apache.org>.
stricklandrbls commented on code in PR #841:
URL: https://github.com/apache/daffodil-vscode/pull/841#discussion_r1327675673
##########
src/dataEditor/dataEditorClient.ts:
##########
@@ -94,8 +96,19 @@ const OMEGA_EDIT_MIN_PORT: number = 1024
// file-scoped types
// *****************************************************************************
+class ServerInfo implements IServerInfo {
+ serverHostname: string = 'unknown' // hostname
Review Comment:
I've been reading a bit on *stringly-typed* objects in TypeScript and it seems to be best to avoid them
> See **Item 33: Prefer More Precise Alternatives to String Types** in *Effective TypeScript* by Don Vanderkam
Maybe `serverHostname: string` could be `serverHostname: Hostname` where <code>type Hostname = "unknown" | "localhost" | \`${number}.${number}.${number}.${number}` </code>. Likewise for other
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [daffodil-vscode] scholarsmate commented on a diff in pull request #841: upgrade to Ωedit™ v0.9.73
Posted by "scholarsmate (via GitHub)" <gi...@apache.org>.
scholarsmate commented on code in PR #841:
URL: https://github.com/apache/daffodil-vscode/pull/841#discussion_r1327731866
##########
src/svelte/src/components/ServerMetrics/ServerMetrics.svelte:
##########
@@ -20,13 +20,19 @@ limitations under the License.
let heartbeat = {
latency: 0,
- omegaEditPort: 0,
serverCpuLoadAverage: 0,
serverTimestamp: 0,
serverUptime: 0,
serverUsedMemory: 0,
- serverVersion: 'Unknown',
sessionCount: 0,
+ omegaEditPort: 0,
+ serverVersion: 'Unknown',
Review Comment:
serverVersion here could be typed as say "Unknown" | `v${number}.${number}.${number}`. I say we look more broadly to see where adding these kinds of types would be beneficial as a different issue.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [daffodil-vscode] scholarsmate commented on a diff in pull request #841: upgrade to Ωedit™ v0.9.73
Posted by "scholarsmate (via GitHub)" <gi...@apache.org>.
scholarsmate commented on code in PR #841:
URL: https://github.com/apache/daffodil-vscode/pull/841#discussion_r1327726285
##########
src/svelte/src/components/ServerMetrics/ServerMetrics.svelte:
##########
@@ -20,13 +20,19 @@ limitations under the License.
let heartbeat = {
latency: 0,
- omegaEditPort: 0,
serverCpuLoadAverage: 0,
serverTimestamp: 0,
serverUptime: 0,
serverUsedMemory: 0,
- serverVersion: 'Unknown',
sessionCount: 0,
+ omegaEditPort: 0,
+ serverVersion: 'Unknown',
Review Comment:
Nope. One is info and the other is setup for displaying in the UI. The difference in case can also be used to help troubleshoot what side a problem has occurred on (extension side vs. webview side).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org