@deephaven-enterprise/query-utils 1.20250801.354-beta → 1.20250801.355-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/DraftQuery.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable no-param-reassign */
|
|
2
|
-
import
|
|
2
|
+
import { nanoid } from 'nanoid';
|
|
3
3
|
import QueryColumns from './QueryColumns';
|
|
4
4
|
import QueryScheduler from './QueryScheduler';
|
|
5
5
|
import { QueryType } from './QueryType';
|
|
@@ -29,7 +29,7 @@ export class DraftQuery {
|
|
|
29
29
|
constructor({ isModified = false, isClientSide = false, draftOwner, serial = DraftQuery.NO_SERIAL, name, owner, type = QueryType.SCRIPT, enabled = true, enableGcLogs = true, envVars = '', heapSize = 4.0, additionalMemory = 0.0, dataMemoryRatio = 0.25, jvmArgs = '', extraClasspaths = '', jvmProfile = 'Default', dbServerName, scriptLanguage = 'Groovy', scriptPath = null, scriptCode = '', scheduling, adminGroups = [], viewerGroups = [], restartUsers = DraftQuery.RESTART_MODE.ADMIN, timeout = 0, workerKind = null, kubernetesControl = null, pythonControl = null, genericWorkerControl = null, typeSpecificFields = null, replicaCount = 1, spareCount = 0, assignmentPolicy = null, assignmentPolicyParams = null, initializationThreads = undefined, updateThreads = undefined, defaults = undefined, }) {
|
|
30
30
|
this.scheduling = [];
|
|
31
31
|
// Meta Data
|
|
32
|
-
this.id =
|
|
32
|
+
this.id = nanoid();
|
|
33
33
|
this.isModified = isModified;
|
|
34
34
|
this.isClientSide = isClientSide;
|
|
35
35
|
this.draftOwner = draftOwner;
|
|
@@ -60,7 +60,7 @@ export class QuerySchedulerValidation {
|
|
|
60
60
|
firstKey === QueryScheduler.FIELDS.SCHEDULING_DISABLED) {
|
|
61
61
|
return null;
|
|
62
62
|
}
|
|
63
|
-
return errorMap.get(firstKey);
|
|
63
|
+
return firstKey != null ? errorMap.get(firstKey) : undefined;
|
|
64
64
|
}
|
|
65
65
|
static validateStartTime(scheduler) {
|
|
66
66
|
if (scheduler.type === QueryScheduler.TYPES.CONTINUOUS ||
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deephaven-enterprise/query-utils",
|
|
3
|
-
"version": "1.20250801.
|
|
3
|
+
"version": "1.20250801.355-beta",
|
|
4
4
|
"description": "Deephaven Enterprise Query Utils",
|
|
5
5
|
"author": "Deephaven Data Labs LLC",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -21,10 +21,7 @@
|
|
|
21
21
|
"@deephaven/log": "^0.97.0",
|
|
22
22
|
"@deephaven/utils": "^0.97.0",
|
|
23
23
|
"@internationalized/date": "^3.5.5",
|
|
24
|
-
"
|
|
25
|
-
},
|
|
26
|
-
"devDependencies": {
|
|
27
|
-
"@types/shortid": "^0.0.32"
|
|
24
|
+
"nanoid": "^5.1.6"
|
|
28
25
|
},
|
|
29
26
|
"publishConfig": {
|
|
30
27
|
"access": "public"
|