querysub 0.510.0 → 0.511.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.510.0",
3
+ "version": "0.511.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",
package/spec.txt CHANGED
@@ -1,8 +1,5 @@
1
-
2
1
  todonext
3
- Review the network trakcing code again.
4
- - Maybe manually refactor it
5
- Ensure there is no dumb sync code
2
+ Make sure the AI updates the machine schema in a smart way. So we can actually have both the old and the new servers config and manage them correctly. make sure if we make multiple updates, it still remembers what the old config is. And make sure deploy all works correctly.
6
3
 
7
4
 
8
5
 
@@ -381,7 +381,9 @@ export class Querysub {
381
381
  }
382
382
  return result;
383
383
  }
384
+ /** @deprecated Don't use this. It doesn't do what you think. It can't be used for writes. */
384
385
  public static localCommit = Querysub.localRead;
386
+ /** @deprecated Don't use this. It doesn't do what you think. It can't be used for writes. */
385
387
  public static commitLocal = Querysub.localRead;
386
388
  public static fastRead<T>(fnc: () => T, options?: Partial<WatcherOptions<T>>) {
387
389
  return proxyWatcher.runOnce({
@@ -34,7 +34,7 @@ export class MachineDetailPage extends qreact.Component {
34
34
  for (let serviceId of serviceList) {
35
35
  let serviceConfig = controller.getServiceConfig(serviceId);
36
36
  if (!serviceConfig?.parameters.deploy) continue;
37
- if (serviceConfig && serviceConfig.machineIds.includes(selectedMachineId)) {
37
+ if (serviceConfig && (serviceConfig.parameters.machineIds || []).includes(selectedMachineId)) {
38
38
  relevantServiceConfigs.set(serviceId, serviceConfig);
39
39
  }
40
40
  }