querysub 0.402.0 → 0.403.0
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/package.json
CHANGED
|
@@ -15,7 +15,7 @@ import { sha256 } from "js-sha256";
|
|
|
15
15
|
import debugbreak from "debugbreak";
|
|
16
16
|
import { ClientWatcher } from "../1-path-client/pathValueClientWatcher";
|
|
17
17
|
import { auditLog, isDebugLogEnabled } from "./auditLogs";
|
|
18
|
-
import { debugNodeId } from "../-c-identity/IdentityController";
|
|
18
|
+
import { debugNodeId, debugNodeThread } from "../-c-identity/IdentityController";
|
|
19
19
|
import { logDisk } from "../diagnostics/logs/diskLogger";
|
|
20
20
|
import { isDiskAudit } from "../config";
|
|
21
21
|
import { decodeNodeId } from "../-a-auth/certs";
|
|
@@ -182,7 +182,7 @@ class PathValueControllerBase {
|
|
|
182
182
|
if (isDebugLogEnabled()) {
|
|
183
183
|
let sourceNodeId = debugNodeId(callerId);
|
|
184
184
|
for (let value of config.paths) {
|
|
185
|
-
auditLog("WATCH PATH", { path: value, sourceNodeId });
|
|
185
|
+
auditLog("WATCH PATH", { path: value, sourceNodeId, sourceNodeThreadId: debugNodeThread(callerId) });
|
|
186
186
|
}
|
|
187
187
|
for (let value of config.parentPaths) {
|
|
188
188
|
auditLog("WATCH PARENT PATH", { path: value, sourceNodeId });
|
|
@@ -195,7 +195,7 @@ class PathValueControllerBase {
|
|
|
195
195
|
if (isDebugLogEnabled()) {
|
|
196
196
|
let sourceNodeId = debugNodeId(SocketFunction.getCaller().nodeId);
|
|
197
197
|
for (let value of config.paths) {
|
|
198
|
-
auditLog("UNWATCH PATH", { path: value, sourceNodeId });
|
|
198
|
+
auditLog("UNWATCH PATH", { path: value, sourceNodeId, sourceNodeThreadId: debugNodeThread(callerId) });
|
|
199
199
|
}
|
|
200
200
|
for (let value of config.parentPaths) {
|
|
201
201
|
auditLog("UNWATCH PARENT PATH", { path: value, sourceNodeId });
|
|
@@ -1254,7 +1254,11 @@ class PathWatcher {
|
|
|
1254
1254
|
}
|
|
1255
1255
|
} else {
|
|
1256
1256
|
for (let path of newPathsWatched) {
|
|
1257
|
-
auditLog("new non-local WATCH VALUE", {
|
|
1257
|
+
auditLog("new non-local WATCH VALUE", {
|
|
1258
|
+
path,
|
|
1259
|
+
watcher: config.callback,
|
|
1260
|
+
targetNodeThreadId: debugNodeThread(config.callback),
|
|
1261
|
+
});
|
|
1258
1262
|
}
|
|
1259
1263
|
for (let path of newParentsWatched) {
|
|
1260
1264
|
auditLog("new non-local WATCH PARENT", { path, watcher: config.callback });
|
|
@@ -17,7 +17,8 @@ import { appendToPathStr, getParentPathStr, getPathDepth, getPathIndexAssert, ge
|
|
|
17
17
|
import { isEmpty } from "../misc";
|
|
18
18
|
import debugbreak from "debugbreak";
|
|
19
19
|
import { isDevDebugbreak } from "../config";
|
|
20
|
-
import { auditLog } from "../0-path-value-core/auditLogs";
|
|
20
|
+
import { auditLog, isDebugLogEnabled } from "../0-path-value-core/auditLogs";
|
|
21
|
+
import { debugNodeThread } from "../-c-identity/IdentityController";
|
|
21
22
|
|
|
22
23
|
// NOTE: In some cases this can half our the PathValues sent. AND, it can reduce our sync requests by N, and as those are uploads those are event more expensive. However, it also complicates other code, requiring not just checking if a value is synced, but also the parent path. We should try to make this stable, but worst case scenario, we can set this to false, and it will make our synchronization a lot easier to verify.
|
|
23
24
|
const STOP_KEYS_DOUBLE_SENDS = true;
|
|
@@ -457,6 +458,14 @@ export class RemoteWatcher {
|
|
|
457
458
|
paths: Array.from(paths),
|
|
458
459
|
parentPaths: Array.from(parentPaths),
|
|
459
460
|
};
|
|
461
|
+
if (isDebugLogEnabled()) {
|
|
462
|
+
for (let path of paths) {
|
|
463
|
+
auditLog("Asking to watch path", { path, authorityId, targetNodeThreadId: debugNodeThread(authorityId) });
|
|
464
|
+
}
|
|
465
|
+
for (let path of parentPaths) {
|
|
466
|
+
auditLog("Asking to watch parent path", { path, authorityId, targetNodeThreadId: debugNodeThread(authorityId) });
|
|
467
|
+
}
|
|
468
|
+
}
|
|
460
469
|
logErrors(RemoteWatcher.REMOTE_WATCH_FUNCTION(config, authorityId));
|
|
461
470
|
}
|
|
462
471
|
});
|
|
@@ -331,7 +331,11 @@ export class LifeCycleEntryEditor extends qreact.Component<{
|
|
|
331
331
|
hue={0}
|
|
332
332
|
onClick={() => {
|
|
333
333
|
let updatedLifeCycle = deepCloneJSON(lifeCycle);
|
|
334
|
-
|
|
334
|
+
for (let e of updatedLifeCycle.entries) {
|
|
335
|
+
if (key in e.variables) {
|
|
336
|
+
delete e.variables[key];
|
|
337
|
+
}
|
|
338
|
+
}
|
|
335
339
|
Querysub.onCommitFinished(async () => {
|
|
336
340
|
await this.controller.setLifeCycle.promise(updatedLifeCycle);
|
|
337
341
|
});
|