querysub 0.400.0 → 0.401.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "querysub",
3
- "version": "0.400.0",
3
+ "version": "0.401.0",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "note1": "note on node-forge fork, see https://github.com/digitalbazaar/forge/issues/744 for details",
@@ -87,9 +87,6 @@ class PathValueControllerBase {
87
87
  }
88
88
  }
89
89
  console.info("Received PathValues via forwardWrites", { valueCount: values.length, callerId, });
90
- for (let value of values) {
91
- console.info("Received PathValue for path", { path: value.path, time: value.time.time, callerId });
92
- }
93
90
 
94
91
  if (isCoreQuiet) {
95
92
  await pathValueCommitter.ingestRemoteValues({
@@ -1567,11 +1567,6 @@ class PathWatcher {
1567
1567
  callback(changes, parentPaths ?? []);
1568
1568
  }
1569
1569
  } else {
1570
- if (isDiskAudit()) {
1571
- for (let change of changes) {
1572
- auditLog("non-local TRIGGER", { path: change.path, time: change.time.time, watcher });
1573
- }
1574
- }
1575
1570
  if (!isCoreQuiet) {
1576
1571
  console.log(`(${Date.now()}) Sending values to client: ${changes.length} (${watcher})`);
1577
1572
  }
@@ -1584,9 +1579,8 @@ class PathWatcher {
1584
1579
  stripSource: !allowSource,
1585
1580
  });
1586
1581
 
1587
- if (isDebugLogEnabled()) {
1582
+ if (isDiskAudit()) {
1588
1583
  for (let pathValue of changes) {
1589
-
1590
1584
  auditLog("SEND VALUE", { path: pathValue.path, time: pathValue.time.time, watcher, nodeId: debugNodeId(watcher), transparent: pathValue.isTransparent, canGC: pathValue.canGCValue });
1591
1585
  }
1592
1586
  }
@@ -426,7 +426,7 @@ class SuppressionItem extends qreact.Component<{
426
426
  <Button
427
427
  hue={0}
428
428
  onClick={() => {
429
- if (!confirm(`Delete this suppression?`)) return;
429
+ if (!confirm(`Delete this suppression "${suppression.pattern}"?`)) return;
430
430
 
431
431
  Querysub.onCommitFinished(async () => {
432
432
  await this.manager.deleteSuppression(suppression.id);
@@ -57,7 +57,7 @@ export class LifeCycleEntryEditor extends qreact.Component<{
57
57
  <Button
58
58
  hue={0}
59
59
  onClick={() => {
60
- if (!confirm("Delete this entry?")) return;
60
+ if (!confirm(`Delete this entry "${entry.matchPattern}"?`)) return;
61
61
 
62
62
  let updatedLifeCycle = deepCloneJSON(lifeCycle);
63
63
  updatedLifeCycle.entries.splice(entryIndex, 1);
@@ -18,11 +18,12 @@ export class LifeCycleInstanceTableView extends qreact.Component<{
18
18
  let entry = lifeCycle.entries.find(e => e.matchPattern === entryData.matchPattern);
19
19
  if (!entry) continue;
20
20
 
21
- let variables = getVariables(entry);
22
- for (let variable of variables) {
23
- allColumnKeys.add(variable.key);
24
- if (variable.title && !columnKeyToTitle.has(variable.key)) {
25
- columnKeyToTitle.set(variable.key, variable.title);
21
+ // ONLY variables, as the group by values will be the same for all entries in this instance!
22
+ for (let [key, value] of Object.entries(entry.variables)) {
23
+ let title = value.title || key;
24
+ allColumnKeys.add(key);
25
+ if (!columnKeyToTitle.has(key)) {
26
+ columnKeyToTitle.set(key, title);
26
27
  }
27
28
  }
28
29
  }
@@ -564,7 +564,13 @@ export function createLifeCycleSearch(
564
564
  }
565
565
  }
566
566
 
567
- sort(allInstances, x => -x.startTime);
567
+ let range = Querysub.localRead(() => getTimeRange());
568
+
569
+ if (range.searchFromStart) {
570
+ sort(allInstances, x => x.startTime);
571
+ } else {
572
+ sort(allInstances, x => -x.startTime);
573
+ }
568
574
 
569
575
  return allInstances;
570
576
  };