Skip to content

[2.0] Fixes #37777: MicroStrategy skips documents, parses cube SQL once and routes lineage by project - #37855

Merged
Khairajani merged 4 commits into
2.0from
mstr-followup-fixes-2.0
Nov 16, 2026
Merged

Khairajani merged 4 commits into
2.0from
mstr-followup-fixes-2.0

Conversation

@Khairajani

@Khairajani Khairajani commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes:

Fixes #37777

Backport of #37778 to 2.0. It's a cherry-pick of the merged commit, unchanged, plus two commits:

Type of change:

  • Bug fix

Tests:

Checklist:

  • My PR title is [2.0] Fixes <issue-number>: <short explanation>
  • My PR is linked to a GitHub issue via Fixes #<issue-number> above.
  • I have added tests and listed them above.

🤖 Generated with Claude Code


Summary by Gitar

  • Skipped documents:
    • Non-dossier Report Services documents are filtered by viewMedia before their definition is read
  • Cube lineage:
    • Cube SQL is parsed once per cube and dialect, and BigQuery tables are routed by project per dbServicePrefixes entry
  • Column names:
    • Repeated data model column names receive unique suffixes, keeping displayName unchanged
  • Report datasets:
    • Datasets that are reports return no SQL and no lineage instead of failing
  • API errors:
    • APIError falls back to detail, title, or the whole body when message is absent

This will update automatically on new commits.

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge; no actionable new issue was established.

Summary

The PR skips MicroStrategy documents before reading their definitions and reduces repeated work when building cube lineage.

  • The MicroStrategy connector skips documents instead of treating them as dossiers.
  • Cube lineage is parsed once and matched to the right database services.
  • MicroStrategy data models keep distinct names for repeated columns.
  • API errors show useful text when message is missing.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[Search project] --> B{Dossier?}
  B -->|No| C[Count as filtered]
  B -->|Yes| D[Read definition]
  D --> E[Build charts and data models]
  E --> F[Read cached cube SQL]
  F --> G[Parse once per cube and dialect]
  G --> H[Match tables to configured services]
  H --> I[Create lineage]
Loading

Reviews (4) · Last reviewed commit: "Merge branch '2.0' into mstr-followup-fi..." · Reviewed by Greptile

Khairajani and others added 2 commits November 16, 2026 12:54
… routes lineage by project (#37778)

* MicroStrategy: skip documents, parse cube SQL once, dedupe columns

- Tell Report Services documents, templates and themes from dossiers by
  viewMedia (the rule MicroStrategy's mstrio-py SDK uses) and skip them
  before reading a definition the dossier API cannot serve.
- Parse each cube's SQL once per cube and dialect instead of once per
  dbServicePrefixes entry and dossier; skip a prefix whose database does
  not match the table's qualifier.
- Give repeated data model column names a suffix, and drop a repeated object.
- Say when a dataset is a report rather than a cube.

* MicroStrategy: suffix repeated column names in id order

A dataset can list its objects in another order on a later run; suffixes
given in listing order would then move a column name to another object.

(cherry picked from commit e994f52)
MicroStrategy answers some errors with only code and ticketId, and
APIError raised KeyError: 'message' while being built. Backports the
fallback main has had since #36066.
@Khairajani
Khairajani requested review from a team as code owners November 16, 2026 07:29
@Khairajani
Khairajani requested review from karanh37 and stout-yeoman and removed request for a team November 16, 2026 07:29
@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.

@Khairajani Khairajani added the safe to test Add this label to run secure Github workflows on PRs label Nov 16, 2026
The dialect and database-name caches are now LRUs capped at CACHE_SIZE,
like the connector's other caches, and database names are read with
model_str.
@gitar-bot

gitar-bot Bot commented Nov 16, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 🟡 Medium risk

MicroStrategy now filters dashboard objects and routes cube lineage by project; incorrect classification or lookup could omit dashboards or misattribute table relationships.

Backports the MicroStrategy connector fixes to 2.0: non-dossier Report Services documents are skipped by viewMedia before their definition is read, cube SQL is parsed once per cube and dialect with BigQuery tables routed by project, repeated data model column names get unique suffixes, report datasets return no SQL instead of failing, and APIError falls back to detail, title, or the whole body when message is absent. 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

@Khairajani
Khairajani merged commit ab8b5ba into 2.0 Nov 16, 2026
63 of 68 checks passed
@Khairajani
Khairajani deleted the mstr-followup-fixes-2.0 branch November 16, 2026 11:55
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