Преглед на файлове

docs(ROADMAP): the CLI package pins the shared client library; partial-update defaults

Found by smartbotic-vectorapi after 2.18.1: taking a CLI-only fix moves
libsmartbotic-db-client under every service on the host. Proposed: link the
CLI statically. And the two 'unset default is a real value' traps
(defaultTtlSeconds, timestampPrecision) recorded as an API design item.
fszontagh преди 1 месец
родител
ревизия
f15b5ea2fd
променени са 1 файла, в които са добавени 13 реда и са изтрити 0 реда
  1. 13 0
      docs/ROADMAP.md

+ 13 - 0
docs/ROADMAP.md

@@ -401,6 +401,19 @@ joins; see 5c), which does not fit in 10 s. Run the container with
   `discardHistory(collection)` RPC would close both. (2.18.1 added the CLI
   `configure` command, which avoids the TTL trap by passing the current value
   back; the API itself still has the trap.)
+- **The CLI package pins the shared client library.** `smartbotic-db-cli`
+  Depends on `libsmartbotic-db-client (>= its own version)`, so upgrading the
+  operator tool moves the shared `.so.2` under every service on the host that
+  links it (found by smartbotic-vectorapi, who deferred a 2.18.1 CLI fix to run
+  an ABI test of their service first). Link the CLI against a STATIC copy of
+  the client so it has no library dependency. A relaxed Depends floor would
+  need a correct per-symbol minimum and is easy to get subtly wrong.
+- **Partial-update APIs where an unset field's default is a real value.**
+  `createCollection(existing, ...)` re-applies `defaultTtlSeconds` (0 clears
+  it) and `CollectionConfig::timestampPrecision` defaults to "ms" (resets
+  precision unless set to ""). Both bit the 2.18.1 CLI work; the CLI guards
+  them, the API does not. A future API change should make "leave alone"
+  expressible for every field (optional or presence-based).
 - Collection schemas cannot be declared in a migration file yet (the
   existing-row check lives in the SetCollectionSchema handler).
 - ~~**Bogus index declarations on a production instance (found 2026-10-09, predates 2.14.0):**~~ removed