Skip to content

Fix registry connection docs URLs using Sphinx inventory - #63349

Merged
kaxil merged 1 commit into
apache:mainfrom
astronomer:fix-reg-conn-url
Mar 11, 2026
Merged

kaxil merged 1 commit into
apache:mainfrom
astronomer:fix-reg-conn-url

Conversation

@kaxil

@kaxil kaxil commented Mar 11, 2026 •

Copy link
Copy Markdown
Member

Connection "View docs" links in the registry were broken for many providers — they all pointed to connections/index.html which 404s for providers like Tableau (connections/tableau.html) and Google BigQuery (connections/bigquery.html).

Root cause: Two bugs working together:

  1. extract_metadata.py and extract_versions.py hardcoded connections/index.html for every connection type
  2. connection-builder.js tried to "fix" this by replacing index.html with {connType}.html — but conn_type names don't match filenames (e.g. gcpbigquery → connections/gcpbigquery.html which is 404; correct page is connections/bigquery.html)

Fix: Parse each provider's Sphinx objects.inv inventory file to resolve the correct per-connection-type URL:

  • std:label howto/connection:{conn_type} entries give exact conn_type → page mapping
  • std:doc connections/{name} entries fill gaps
  • Unresolved conn_types fall back to connections/ (the connection listing page)

The JS now uses the resolved URL as-is instead of mangling it.

Examples of fixed URLs

Provider conn_type Before (404) After (200)
Tableau tableau connections/index.html connections/tableau.html
Google gcpbigquery connections/gcpbigquery.html connections/bigquery.html
K8s kubernetes connections/index.html connections/kubernetes.html
Amazon emr connections/index.html connections/emr.html

Remaining gaps

Some Google conn_types (google_cloud_platform, gcpcloudsql, gcpssh) don't have matching howto/connection: labels in the Sphinx docs, so they fall back to connections/. This issue (#63348) will track adding consistent labels across all providers.

image image

… 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.
@kaxil
kaxil force-pushed the fix-reg-conn-url branch from bcc0d4b to 49619ab Compare March 11, 2026 13:29
@kaxil kaxil moved this from Backlog to In review in Airflow Registry Mar 11, 2026
@kaxil
kaxil merged commit fab5402 into apache:main Mar 11, 2026
107 of 108 checks passed
@kaxil
kaxil deleted the fix-reg-conn-url branch March 11, 2026 14:04
@github-project-automation github-project-automation Bot moved this from In review to Done in Airflow Registry Mar 11, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Backport failed to create: v3-1-test. View the failure log Run details

Note: As of Merging PRs targeted for Airflow 3.X
the committer who merges the PR is responsible for backporting the PRs that are bug fixes (generally speaking) to the maintenance branches.

In matter of doubt please ask in #release-management Slack channel.

Status Branch Result
❌ v3-1-test Commit Link

You can attempt to backport this manually by running:

cherry_picker fab5402 v3-1-test

This should apply the commit to the v3-1-test branch and leave the commit in conflict state marking
the files that need manual conflict resolution.

After you have resolved the conflicts, you can continue the backport process by running:

cherry_picker --continue

If 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants