You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(kuery): postgres store fixes + run dev on postgres (#333)
* fix(kuery): bump engine for postgres store fixes + run dev on postgres
Revendor github.com/faroshq/kuery to pick up two Postgres-only query
fixes (the local store now runs Postgres, so these surfaced):
- owner/linked relation traversal tolerated a JSON scalar owner_refs
("null") that aborted with "cannot extract elements from a scalar".
- the ID filter cast id to text so synthetic relation-node ids
("<uid>:references:0") no longer abort with "invalid input syntax for
type uuid".
Local dev now runs the kuery store on Postgres, matching production —
SQLite silently masked both bugs. Mirrors the existing app-studio-db
pattern:
- Makefile: kuery-db-up / kuery-db-down spin a throwaway postgres:16
container on 127.0.0.1:55433; run-provider-kuery depends on it and
always sets KUERY_STORE_DRIVER=postgres (override the DSN via
KUERY_STORE_DSN to point at an external Postgres). No SQLite option.
- Tiltfile + Tiltfile.cluster: kuery-db resource (+ kuery-db-down
teardown) under providers-kuery; the kuery resource depends on it.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* add current release printer
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
run-provider-kuery: build-kuery-provider ## Run the kuery provider (requires: make run-hub-embedded-static + make install-provider-kuery; engagement needs init-provider-kuery)
679
+
# Local store backend. Dev always runs Postgres — the same backend as
680
+
# production — because Postgres-only SQL (jsonb_array_elements, uuid columns,
681
+
# …) diverges from SQLite and passing on SQLite has shipped real query bugs.
682
+
# kuery-db-up starts a throwaway container matching KUERY_DEV_DATABASE_URL.
echo"No kuery Postgres container to remove ($(KUERY_POSTGRES_CONTAINER))";\
735
+
fi
736
+
737
+
run-provider-kuery: build-kuery-provider kuery-db-up ## Run the kuery provider (requires: make run-hub-embedded-static + make install-provider-kuery; engagement needs init-provider-kuery)
680
738
@echo "Starting kuery provider on :$(KUERY_PORT)"
681
739
@echo " hub: $(KUERY_HUB_URL)"
682
740
@echo " token: $(KUERY_TOKEN)"
@@ -685,13 +743,22 @@ run-provider-kuery: build-kuery-provider ## Run the kuery provider (requires: ma
685
743
else\
686
744
echo" engagement: DISABLED (run 'make init-provider-kuery' after install-provider-kuery)";\
687
745
fi
746
+
@# Dev always runs Postgres. Fall back to the local dev container DSN when
747
+
@# KUERY_STORE_DSN is unset (external Postgres overrides it).
0 commit comments