Skip to content

docs(publisher): fix project→environment API drift in publishing guides#328

Draft
ofermend wants to merge 1 commit into
malloydata:mainfrom
ofermend:docs/publisher-onboarding-fixes
Draft

docs(publisher): fix project→environment API drift in publishing guides#328
ofermend wants to merge 1 commit into
malloydata:mainfrom
ofermend:docs/publisher-onboarding-fixes

Conversation

@ofermend

Copy link
Copy Markdown

What

The Publisher API renamed its top-level concept from project to environment, but the Publishing user guides still used the old terms. As a result, several copy-pasted commands and config snippets fail against a current Publisher server. This corrects the drift across the four affected pages.

Changes

  • publisher.config.json key projectsenvironments — in publishing.malloynb and all 14 example configs in connections.malloynb (the config root key is now environments).
  • EndpointsList Environments/Health curls use /api/v0/environments and /api/v0/status (were /api/v1/projects, a bare /status, and a broken Docker Compose healthcheck against /status).
  • MCP toolsmalloy_projectListmalloy_environmentList; tool parameter projectNameenvironmentName.
  • REST query endpoint — the removed .../queryResults/<model> path is now POST .../models/<model>/query. QueryResult.result is a JSON string, so the examples now parse it and pass compactJson.

Deliberately unchanged

  • The SDK's optionalProjectName prop keeps its name — it maps to environmentName internally in packages/sdk/src/components/QueryResult/QueryResult.tsx, so the docs are correct as-is.
  • GCP project_id inside the BigQuery service-account JSON example (a real GCP field).

Verification

Every change was checked against the Publisher repo: api-doc.yaml (31 /environments/... paths, zero projects; POST .../models/{path}/query; QueryResult.result: string) and the MCP tool source (packages/server/src/mcp/tools/discovery_tools.ts uses environmentName).

Part of a broader Publisher onboarding review.

🤖 Generated with Claude Code

The Publisher API renamed the top-level concept from "project" to
"environment", but the publishing user guides still used the old terms, so
copy-pasted commands and configs failed against a current server:

- publisher.config.json key `projects` → `environments` (in publishing.malloynb
  and all 14 examples in connections.malloynb).
- List/status curls use `/api/v0/environments` and `/api/v0/status` (were
  `/api/v1/projects`, a bare `/status`, and a bad Compose healthcheck).
- MCP tool `malloy_projectList` → `malloy_environmentList`, and the tool
  parameter `projectName` → `environmentName`.
- REST query endpoint: the removed `.../queryResults/<model>` path is now
  `POST .../models/<model>/query`; `QueryResult.result` is a JSON string, so
  the examples parse it and pass `compactJson`.

The SDK's `optionalProjectName` prop keeps its name (it maps to
environmentName internally) and is left unchanged.

Signed-off-by: Ofer Mendelevitch <ofermend@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant