Repository navigation
[2.0] Fixes #37777: MicroStrategy skips documents, parses cube SQL once and routes lineage by project - #37855
Conversation
… 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.
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
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 |
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.
Code Review ✅ Approved 🟡 Medium riskMicroStrategy 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 VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
Describe your changes:
Fixes #37777
Backport of #37778 to
2.0. It's a cherry-pick of the merged commit, unchanged, plus two commits:APIErrorwithout amessagekey. MicroStrategy answers some errors with onlycodeandticketId, and on2.0building the error raisedKeyError: 'message'. This backports the fallbackmainhas had since Fixes 25420: Alation Sink no longer crashes at the end of a run and surfaces Alation's errors #36066 (message, thendetail,title, or the whole body).model_str. The same commit is on Fixes #37803: MicroStrategy column-level lineage from cube SQL to data models #37804 formain.Type of change:
Tests:
main, where Fixes #37777: MicroStrategy skips documents, parses cube SQL once and routes lineage by project #37778 was tested end to end against a MicroStrategy trial and the public demo.2.0server; my local server runsmain, whose newer fields the2.0client models reject.Checklist:
[2.0] Fixes <issue-number>: <short explanation>Fixes #<issue-number>above.🤖 Generated with Claude Code
Summary by Gitar
viewMediabefore their definition is readdbServicePrefixesentrydisplayNameunchangedAPIErrorfalls back todetail,title, or the whole body whenmessageis absentThis will update automatically on new commits.


Confidence 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.
messageis 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]Reviews (4) · Last reviewed commit: "Merge branch '2.0' into mstr-followup-fi..." · Reviewed by Greptile