Repository navigation
[2.0] Fixes #37145: Improve the reliability of the MicroStrategy connector - #37730
Conversation
* MicroStrategy: scope the dossier search by project, keep stale entities on partial runs, name charts by dossier - Send the project in the X-MSTR-ProjectID header; the project_id query parameter is ignored, so every project re-listed every dossier of the server under the wrong project name - Raise on failed reads instead of returning empty results; a failed listing or definition skips stale deletion of the entities it hides - Ingest a dossier whose definition fails from its listing, without unlinking known charts - Name charts by dossier, page and visualization key; keys repeat across dossiers - Filter projects before searching them, page the search, cache cube SQL - Owners from the owner's default email, dashboard descriptions - Verify SSL / SSL Config, re-login on an expired session, forward only the auth token - Typed test-connection checks with diagnoses, and a GetDashboards step * MicroStrategy: count listed and filtered objects, record the naming and deletion decisions, document SSL options * MicroStrategy: a dossier whose definition fails keeps its linked charts and still gets its owner and description * MicroStrategy: an object that does not parse keeps stale entities * MicroStrategy: keep the charts of an unreadable dossier as seen so stale charts are still deleted; page without totalItems; typing * MicroStrategy: send the SSL Config client certificate, lazy log formatting, record optional credentials and login timeout * MicroStrategy: keep excluding hidden dossiers from the search * Regenerate the resolved workflow schema with the current ref parser * MicroStrategy: encrypt and mask the SSL Config secrets with a class converter * MicroStrategy: carry user metadata from charts under the old names to their replacements, and keep charts linked on update * MicroStrategy: drop model fields the connector never reads * MicroStrategy: diagnose a server error at login in test connection * MicroStrategy: a failed OpenMetadata lookup leaves the dossier's dashboard and charts as they are * MicroStrategy: split the chart stage to reduce its complexity * MicroStrategy: strip the Analytical engine calculation steps from cube SQL The sqlView endpoint appends a non-SQL block after the statement, which fails SqlGlot and SqlFluff and makes lineage parsing fall back to SqlParse. * MicroStrategy: make the Library path configurable The connector always called <hostPort>/MicroStrategyLibrary/api, so a Library app deployed under another name, or a second Library deployment, could not be used. The new optional libraryPath defaults to MicroStrategyLibrary and is used for both the REST API and the dashboard source URLs. * MicroStrategy: leave generated UI sources to CI and use a generic Library path example * MicroStrategy: point a login 404 at Host Port and Library Path * MicroStrategy: record the Library path contract in the connector's decision record * Update generated TypeScript types and dereferenced schemas * MicroStrategy: trim whitespace from the Library path and test cube SQL parsing by its outcome * MicroStrategy: note whitespace trimming in the Library path record * MicroStrategy: list LDAP login mode in the schema and name Host and Port consistently (cherry picked from commit 0316371)
❌ 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 |
Code Review ✅ Approved 🔴 High riskThe 2.0.9 migration renames and splits shared MicroStrategy charts, so relationship mishandling could orphan dashboards or lose user-added metadata. Backports the MicroStrategy connector reliability fix 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 #37145
Backport of #37146 to
2.0, for the 2.0.9 release. It's a cherry-pick of the merged commit with the changes below for2.0; the connector code is the same as onmain.What differs from
main:native/2.0.9,mysql/v209,postgres/v209,utils/v209/MicroStrategyChartRename). Onmainit runs in 2.1.0. A chart already named after its dashboard is skipped, so a 2.0.9 install upgraded to 2.1 renames nothing twice.2.0has no conversations table, so the rename moves thread links withFeedRepository.updateLegacyThreadsAbout, as other renames on2.0do. It still runs in the same transaction as the chart, its tags and field relationships.2.0has noNestedConfigClassConverter, sosslConfiggets aMicroStrategyConnectionClassConverter, with a test.2.0doesn't track, and the ruff baseline, are left out.Type of change:
Tests:
Run locally on this branch:
ClassConverterFactoryTestandMicroStrategyConnectionClassConverterTest, 26 pass.json2ts-generate-all.sh -l true.MicroStrategyChartRenameMigrationITpasses on MySQL and Postgres.mainon the same database: the 2.1.0 migration succeeds and renames nothing.Checklist:
[2.0] Fixes <issue-number>: <short explanation>Fixes #<issue-number>above.