Repository navigation
Fix registry connection docs URLs using Sphinx inventory - #63349
Merged
Merged
Conversation
kaxil
requested review from
amoghrajesh,
ashb,
bugraoz93,
choo121600,
ephraimbuddy,
gopidesupavan,
jason810496,
jedcunningham,
jscheffl and
potiuk
as code owners
March 11, 2026 13:26
… paths
The registry was hardcoding `connections/index.html` for all connection
type docs links, which 404s for providers like Tableau (correct URL is
`connections/tableau.html`) and Google BigQuery (`connections/bigquery.html`).
Now `extract_metadata.py` and `extract_versions.py` parse the provider's
Sphinx `objects.inv` to resolve per-connection-type URLs from `std:label`
and `std:doc` entries. Unresolved conn_types fall back to `connections/`.
Also fixes `connection-builder.js` which was mangling the docs URL by
replacing `index.html` with `{connType}.html` — producing URLs like
`connections/gcpbigquery.html` (404) instead of using the data as-is.
eladkal
approved these changes
Mar 11, 2026
Contributor
Backport failed to create: v3-1-test. View the failure log Run detailsNote: As of Merging PRs targeted for Airflow 3.X In matter of doubt please ask in #release-management Slack channel.
You can attempt to backport this manually by running: cherry_picker fab5402 v3-1-testThis should apply the commit to the v3-1-test branch and leave the commit in conflict state marking After you have resolved the conflicts, you can continue the backport process by running: cherry_picker --continueIf you don't have cherry-picker installed, see the installation guide. |
dominikhei
pushed a commit
to dominikhei/airflow
that referenced
this pull request
Mar 11, 2026
… paths (apache#63349) The registry was hardcoding `connections/index.html` for all connection type docs links, which 404s for providers like Tableau (correct URL is `connections/tableau.html`) and Google BigQuery (`connections/bigquery.html`). Now `extract_metadata.py` and `extract_versions.py` parse the provider's Sphinx `objects.inv` to resolve per-connection-type URLs from `std:label` and `std:doc` entries. Unresolved conn_types fall back to `connections/`. Also fixes `connection-builder.js` which was mangling the docs URL by replacing `index.html` with `{connType}.html` — producing URLs like `connections/gcpbigquery.html` (404) instead of using the data as-is.
Pyasma
pushed a commit
to Pyasma/airflow
that referenced
this pull request
Mar 13, 2026
… paths (apache#63349) The registry was hardcoding `connections/index.html` for all connection type docs links, which 404s for providers like Tableau (correct URL is `connections/tableau.html`) and Google BigQuery (`connections/bigquery.html`). Now `extract_metadata.py` and `extract_versions.py` parse the provider's Sphinx `objects.inv` to resolve per-connection-type URLs from `std:label` and `std:doc` entries. Unresolved conn_types fall back to `connections/`. Also fixes `connection-builder.js` which was mangling the docs URL by replacing `index.html` with `{connType}.html` — producing URLs like `connections/gcpbigquery.html` (404) instead of using the data as-is.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Connection "View docs" links in the registry were broken for many providers — they all pointed to
connections/index.htmlwhich 404s for providers like Tableau (connections/tableau.html) and Google BigQuery (connections/bigquery.html).Root cause: Two bugs working together:
extract_metadata.pyandextract_versions.pyhardcodedconnections/index.htmlfor every connection typeconnection-builder.jstried to "fix" this by replacingindex.htmlwith{connType}.html— but conn_type names don't match filenames (e.g.gcpbigquery→connections/gcpbigquery.htmlwhich is 404; correct page isconnections/bigquery.html)Fix: Parse each provider's Sphinx
objects.invinventory file to resolve the correct per-connection-type URL:std:label howto/connection:{conn_type}entries give exact conn_type → page mappingstd:doc connections/{name}entries fill gapsconnections/(the connection listing page)The JS now uses the resolved URL as-is instead of mangling it.
Examples of fixed URLs
tableauconnections/index.htmlconnections/tableau.htmlgcpbigqueryconnections/gcpbigquery.htmlconnections/bigquery.htmlkubernetesconnections/index.htmlconnections/kubernetes.htmlemrconnections/index.htmlconnections/emr.htmlRemaining gaps
Some Google conn_types (
google_cloud_platform,gcpcloudsql,gcpssh) don't have matchinghowto/connection:labels in the Sphinx docs, so they fall back toconnections/. This issue (#63348) will track adding consistent labels across all providers.