Repository navigation
ENG-5761 docs(connectors): use real slack output on List Connector Providers - #415
adityamishra-hydradb wants to merge 1 commit into
Conversation
…ENG-5761) The examples used provider affinity, which is not in the catalog and is refused with 403. The Slack catalog entry was stale (category, rank, missing open_for_use). Replace every example with real prod output from GET /connectors/providers and GET /connectors/providers?id=slack. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: adityamishra-hydradb <[email protected]>
|
@hydra-mira-review review |
|
/devin review |
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
Mira score 5/5 · 🟢 Good to merge
Readers get updated examples for listing connector providers, based on production Slack responses. The page replaces How this PR works · 4 changes, 4 low riskThis PR fixes examples that direct readers to an unavailable connector provider and show outdated catalog details. It uses Slack throughout, refreshes response examples, and explains token scopes and channel filtering. 1. Use Slack in provider lookup examples · 🟢 low risk ·
|
✅ Mintlify HygieneNo issues found. |
For humans
The List Connector Providers page used the provider
affinityin every example.affinityis not in the catalog, and the API refuses it with403. The Slack catalog entry was also old: wrongcategoryandrank, and noopen_for_use.This PR uses
slackin all examples. The response examples are copied from real prod output (shortened to one entry per list). The filter example now uses Slack'schannel_id. A new line explainstoken_scopes.Fixes ENG-5761.
For agents
api-reference/v2/endpoint/list-connector-providers.mdxonly. Hand-written MDX; the generatedapi-reference/v2/openapi.jsonis not touched.GET /connectors/providers(request_id42a6214a-d36c-4db8-bb77-8bef57cbbf6f) andGET /connectors/providers?id=slack(request_id61800fbd-f2e8-47d7-80a4-bf6f78b73367), 2026-12-04 21:35 UTC.Proof
A = base
main@efa6f55. B = this PR @beaf6b7. Environment: prod API (https://api.hydradb.com), throwaway test org, read-only GET calls only. 2026-12-04 UTC.1. A/B on the real repro: the cURL block on the page, run exactly as written
The script copies the
bash cURLblock from the page at each SHA and runs each command unchanged (only-s -D <hdr> -o <body>added to save the output).GET /connectors/providers6a74d001-d5b2-4a86-bd5e-2048cc6fc8ff(21:45:18Z)120825e3-3eb2-4de4-991e-7edd895d12a3(21:45:21Z)GET /connectors/providers?id=<example>id=affinity: 200, ridddabbca6-f786-47bd-be35-6ac255f36f6e(21:45:20Z)id=slack: 200, rid7add5736-f40f-423f-9ff6-cf0e5d3f0d9a(21:45:22Z)affinitynot among the 70)slack,open_for_use: true)provider "affinity" is not currently supported(ticket ride00ab177-7a9e-4c40-8a16-c22f37c91e12)slackis listed withopen_for_use: true(not re-run: write call)2. Do the response examples match the live response?
Each leaf in the docs example is compared with the live response of the command above (arrays match by
provider/name/id).category"Communication" vs live "messaging";rank1 vs 2;acl_descriptiontext changed. Live fieldopen_for_usemissingfilterable_fields[0].descriptiondiffers;credential_schema.properties["..."]is a placeholder, not in liveaffinitymentions in*.mdx(git grep -i affinity)3. Regression: CI gates on A and B
.github/workflows/ci.yml)python scripts/test_docs_consistency.pypython -m unittest discover -s scripts -p 'test_*.py'python .github/verify_v2_public_contract.pypython scripts/verify_agents_endpoints.pypython scripts/generate_llms_index.py --check4. Smoke
Both page commands return 200 on B, and the
idvalue from the B example (slack) is a provider in the B catalog example and in the live catalog.5. Edge cases
404for an unknownid(?id=not-a-provider)NOT_FOUND"no provider information for not-a-provider", rideb4af817-f07c-4140-a1cd-2206f5404c3e(21:45:42Z): the Errors section is still correct?id=slackabove)Stress: N/A, docs-only change.
Spec source
The examples on this page are hand-written MDX, not generated from the spec, so no Go change is needed for this ticket. One separate spec issue on the same endpoint: the
idquery parameter example in the generatedopenapi.jsonis"HydraDoc1234"(it pre-fills the API playground). It comes from the name-based defaults map in hydradb-applicationapplication/scripts/openapi/examples.go("id": "HydraDoc1234"), so the fix belongs there, not in this repo. Left for a follow-up.Raw outputs:
~/hydradb/dogfood/dashboard/proof/eng-5761/ab/(A-/B- page copies, headers, bodies,cmp.py, gate logs).🤖 Generated with Claude Code