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
The application template ships spec.sampleValues (PR #343) to pre-fill the
provision form for the one-click demo, and ProvisionPage already seeds the form
from template.sampleValues — but the portal never received the value, so the form
stayed empty.
Gaps in api.ts:
- neither template GraphQL query (refreshIndex, getTemplate) selected
sampleValues, so it was never fetched;
- sampleValues is a preserve-unknown-fields field the gateway returns as a
JSONString scalar (same as schema), but templateFromGQL cast it straight to an
object instead of parsing it.
Selecting sampleValues unconditionally is itself a trap: a gateway whose schema
was built from an older CRD (pre-sampleValues) rejects the field with a hard
"Cannot query field sampleValues" error that breaks the whole catalog/provision
page. So select it optimistically via a shared templateSpec() selection and, on
that specific error, remember it's unsupported and retry without it (degrading to
no pre-fill). Once the updated Template CRD is deployed, the field resolves and
the form pre-fills. dist/main.js is gitignored and rebuilt at go build time.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments