fix: select existing tenants by name in the operator portal
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 2s
Build and Publish Container Image / build-and-push (push) Successful in 49s

Assistant: codex
Assistant-Model: gpt-6-astra
Assistant-Session: 01a07ff8-19d0-7820-b4d0-1353833cb7fc
This commit is contained in:
tegwick 2026-09-12 00:51:57 +02:00
parent 3758a4bb5e
commit d177d47975
8 changed files with 127 additions and 13 deletions

View file

@ -158,6 +158,13 @@ class _FakePostgresCursor:
self._rows = sorted(counts.items())
return
if normalized.startswith("select distinct tenant"):
self._rows = [(tenant,) for tenant in sorted({
record.tenant for (record_type, _), record in self.connection.records.items()
if record_type == values[0] and record.tenant is not None
})]
return
record_type = values[0]
filter_columns = [
column