Skip to content

ENG-5761 docs(connectors): use real slack output on List Connector Providers - #415

Open
adityamishra-hydradb wants to merge 1 commit into
mainfrom
eng-5761-providers-examples
Open

adityamishra-hydradb wants to merge 1 commit into
mainfrom
eng-5761-providers-examples

Conversation

@adityamishra-hydradb

@adityamishra-hydradb adityamishra-hydradb commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

For humans

The List Connector Providers page used the provider affinity in every example. affinity is not in the catalog, and the API refuses it with 403. The Slack catalog entry was also old: wrong category and rank, and no open_for_use.

This PR uses slack in all examples. The response examples are copied from real prod output (shortened to one entry per list). The filter example now uses Slack's channel_id. A new line explains token_scopes.

Fixes ENG-5761.

For agents

  • File: api-reference/v2/endpoint/list-connector-providers.mdx only. Hand-written MDX; the generated api-reference/v2/openapi.json is not touched.
  • Source of the new examples: prod GET /connectors/providers (request_id 42a6214a-d36c-4db8-bb77-8bef57cbbf6f) and GET /connectors/providers?id=slack (request_id 61800fbd-f2e8-47d7-80a4-bf6f78b73367), 2026-12-04 21:35 UTC.
  • No example on this page comes from the spec source, so no hydradb-application change is needed for the reported issue.

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 cURL block from the page at each SHA and runs each command unchanged (only -s -D <hdr> -o <body> added to save the output).

Command on the page A (base @efa6f55) B (PR @beaf6b7)
GET /connectors/providers 200, 70 providers, rid 6a74d001-d5b2-4a86-bd5e-2048cc6fc8ff (21:45:18Z) 200, 70 providers, rid 120825e3-3eb2-4de4-991e-7edd895d12a3 (21:45:21Z)
GET /connectors/providers?id=<example> id=affinity: 200, rid ddabbca6-f786-47bd-be35-6ac255f36f6e (21:45:20Z) id=slack: 200, rid 7add5736-f40f-423f-9ff6-cf0e5d3f0d9a (21:45:22Z)
Example provider is in the catalog no (affinity not among the 70) yes (slack, open_for_use: true)
Connect with the example provider 403 provider "affinity" is not currently supported (ticket rid e00ab177-7a9e-4c40-8a16-c22f37c91e12) slack is listed with open_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).

Example A (base @efa6f55) B (PR @beaf6b7)
"List every provider" (slack entry) 3 wrong values: category "Communication" vs live "messaging"; rank 1 vs 2; acl_description text changed. Live field open_for_use missing 0 differences, 0 missing fields
"Describe one provider" provider not in catalog; filterable_fields[0].description differs; credential_schema.properties["..."] is a placeholder, not in live 0 differences
affinity mentions in *.mdx (git grep -i affinity) 6 0

3. Regression: CI gates on A and B

Gate (same commands as .github/workflows/ci.yml) A (base @efa6f55) B (PR @beaf6b7)
python scripts/test_docs_consistency.py 10 tests OK 10 tests OK
python -m unittest discover -s scripts -p 'test_*.py' 42 tests OK (1 skipped) 42 tests OK (1 skipped)
python .github/verify_v2_public_contract.py 53 pages, 87 JSON examples, 58 response shapes OK same
python scripts/verify_agents_endpoints.py 54 endpoint mentions OK same
python scripts/generate_llms_index.py --check OK OK
GitHub checks on B n/a validate, hygiene, faq-sync-tests, dco-check, Mintlify deployment, link-rot, vale-spellcheck: all green

4. Smoke

Both page commands return 200 on B, and the id value from the B example (slack) is a provider in the B catalog example and in the live catalog.

5. Edge cases

Case Result
Documented 404 for an unknown id (?id=not-a-provider) 404 NOT_FOUND "no provider information for not-a-provider", rid eb4af817-f07c-4140-a1cd-2206f5404c3e (21:45:42Z): the Errors section is still correct
Arrays in the B example are shortened Stated on the page: live Slack has 12 searchable fields, 9 filterable fields, 10 token scopes (matches ?id=slack above)

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 id query parameter example in the generated openapi.json is "HydraDoc1234" (it pre-fills the API playground). It comes from the name-based defaults map in hydradb-application application/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

…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]>
@adityamishra-hydradb

Copy link
Copy Markdown
Contributor Author

@hydra-mira-review review

@adityamishra-hydradb

Copy link
Copy Markdown
Contributor Author

/devin review

@mintlify

mintlify Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
cortex-ai 🟢 Ready View Preview Dec 4, 2026, 9:37 PM

💡 Tip: Enable Automations to automatically generate PRs for you.

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Starting Devin Review.

Devin Review

@hydra-mira-review

hydra-mira-review Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Mira score 5/5 · 🟢 Good to merge

  • No findings, nothing missing outside this PR, and no high-risk change.

Readers get updated examples for listing connector providers, based on production Slack responses. The page replaces affinity examples with slack and explains token_scopes.

How this PR works · 4 changes, 4 low risk

This 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 · api-reference/v2/endpoint/list-connector-providers.mdx

Readers now get examples for an available provider. The Python, TypeScript, and cURL examples replace affinity with slack.

Risk: An incorrect provider identifier would make copied requests fail for readers.

Check:

  • Confirm all three provider-specific request examples select slack.

In list-connector-providers.mdx:13-33.

2. Refresh Slack's catalog response example · 🟢 low risk · api-reference/v2/endpoint/list-connector-providers.mdx

Readers see updated Slack availability and access details. The example corrects category and rank, adds open_for_use, and clarifies that private-channel members resolve to emails.

Risk: Incorrect example values would mislead readers about provider availability, display order, or channel access.

Check:

  • Compare the catalog example against the cited production response, especially category, rank, availability, and access details.

In list-connector-providers.mdx:40-58.

3. Document Slack credentials, fields, and token scopes · 🟢 low risk · api-reference/v2/endpoint/list-connector-providers.mdx

Readers now see Slack's message fields and concrete credential requirements instead of an Affinity example with placeholder credentials. The page adds token_scopes and explains optional scopes and shortened response lists.

Risk: Incorrect credential or scope guidance would lead readers to configure connectors that fail authentication or lack required permissions.

Check:

  • Compare the credential schema, scope entry, and stated field counts against the cited Slack description response.

In list-connector-providers.mdx:60-100, list-connector-providers.mdx:117-119.

4. Show how to filter Slack results by channel · 🟢 low risk · api-reference/v2/endpoint/list-connector-providers.mdx

Readers get a channel filter consistent with the Slack response example. The query replaces additional_metadata.container_id with additional_metadata.channel_id and uses a Slack channel identifier.

Risk: An incorrect filter example would cause copied queries to return unexpected or empty results.

Check:

  • Confirm the query nests channel_id under additional_metadata, matching the documented filter key.

In list-connector-providers.mdx:121-131.

Requirement check · 5 met, 1 unclear · from the PR description
  • ✅ Replace Affinity with Slack throughout the page's examples (met). api-reference/v2/endpoint/list-connector-providers.mdx uses Slack in all provider-specific requests, response examples, and the query filter.
  • ✅ Correct Slack's catalog category and rank, and include availability (met). The catalog example sets category to messaging, rank to 2, and availability to true.
  • ❔ Copy response examples from the cited production output (unclear). The description identifies both production requests; exact agreement between those responses and the examples is not established.
  • ✅ Shorten response lists to one entry and explain the omissions (met). The response lists contain one entry each; line 119 explains truncation and states the full Slack field and scope counts.
  • ✅ Use Slack's channel identifier in the filter example (met). The query uses additional_metadata.channel_id, matching the Slack description's filter key.
  • ✅ Explain token scopes (met). The description example includes channels:read; line 117 explains scope reasons and optional scopes.

Comment @hydra-mira-review help for commands.

@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown

✅ Mintlify Hygiene

No issues found.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

This branch was successfully deployed

1 active deployment
staging — beaf6b79 Deployed Dec 4, 2026 by mintlify[bot]
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