Skip to content

fix(tableau): diagnose a failed sign-in, enforce schema/table dbServicePrefixes, skip lineage for a failed workbook - #36691

Merged
Khairajani merged 2 commits into
mainfrom
fix/tableau-auth-diagnosis-prefix-lineage
Oct 31, 2026
Merged

Khairajani merged 2 commits into
mainfrom
fix/tableau-auth-diagnosis-prefix-lineage

Conversation

@Khairajani

Copy link
Copy Markdown
Contributor

Describe your changes:

Fixes #

Three Tableau bugs found in release testing, all reproduced on a 2.1 instance:

  • Test connection had no diagnosis for bad credentials. A wrong token, password or site raises TSC's FailedSignInError, an XMLError but not a ServerResponseError, so the 401 rule never matched and users saw Unknown error connecting with <config>. _status_of now reads the status off any XMLError.
  • A schema- or table-level dbServicePrefixes wasn't enforced for published data source lineage. _get_table_entities_from_api logged the mismatch but kept going, so prefix svc.dev.inventory still linked dev.sales.* tables. It now skips them, as the custom SQL path already does, and the fullName fallback checks the prefix too.
  • A failed workbook logged a misleading ERROR (Error building FQN for Dashboard: ... dashboard=None) for each of its data models. yield_datamodel_dashboard_lineage now returns early when there is no dashboard, like the shared yield_dashboard_chart_lineage.

Verification:

  • 6 new unit tests fail on main and pass with the fix. The 156 Tableau unit tests pass.
  • Live against Tableau Cloud:
    • wrong PAT secret or site: no diagnosis before → "Authentication failed" after;
    • prefix <redshift>.dev.inventory: 5 tables linked before → 2 after;
    • a service-level prefix still links all 5;
    • injected workbook failure: the ERROR is gone and the other dashboards' edges are unchanged.

Type of change:

  • Bug fix

Checklist:

  • I have read the CONTRIBUTING document.
  • I have commented on my code, particularly in hard-to-understand areas.
  • I have added tests that prove my fix is effective or that my feature works.

🤖 Generated with Claude Code

…cePrefixes, skip lineage for a failed workbook

- A wrong token, password or site raises TSC's FailedSignInError, an XMLError
  that is not a ServerResponseError, so the 401 rule never matched. Read the
  status off any XMLError.
- A schema or table in dbServicePrefixes that differs from the published data
  source's table now skips it, as the custom SQL path does; the fullName
  fallback checks it too.
- yield_datamodel_dashboard_lineage returns early when the workbook failed,
  instead of logging an FQN error for each of its data models.
@Khairajani
Khairajani requested a review from a team as a code owner October 30, 2026 11:38
@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically.

Maintainers can bypass this check by adding the skip-pr-checks label.

@github-actions

Copy link
Copy Markdown
Contributor

Hi there 👋 Thanks for your contribution!

The OpenMetadata team will review the PR shortly! Once it has been labeled as safe to test, the CI workflows
will start executing and we'll be able to make sure everything is working as expected.

Let us know if you need any help!

@Khairajani Khairajani added the safe to test Add this label to run secure Github workflows on PRs label Oct 30, 2026
@github-actions

Copy link
Copy Markdown
Contributor

The Python checkstyle failed.

Please run make py_format and py_format_check in the root of your repository and commit the changes to this PR.
You can also use pre-commit to automate the Python code formatting.

You can install the pre-commit hooks with make install_test precommit_install.

@gitar-bot

gitar-bot Bot commented Oct 30, 2026

Copy link
Copy Markdown
Code Review ✅ Approved

🟡 Medium risk · Tableau prefix checks and failed-workbook handling change emitted lineage edges; mismatches could suppress valid relationships.

Fixes three Tableau bugs: test connection now diagnoses failed sign-ins by reading the status from any XMLError, schema- and table-level dbServicePrefixes are enforced for published data source lineage, and lineage is skipped for failed workbooks to avoid a misleading ERROR log. No issues found.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@sonarqubecloud

Copy link
Copy Markdown

@Khairajani
Khairajani added this pull request to the merge queue Oct 30, 2026
Merged via the queue into main with commit 633a3c1 Oct 31, 2026
68 of 69 checks passed
@Khairajani
Khairajani deleted the fix/tableau-auth-diagnosis-prefix-lineage branch October 31, 2026 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants