Skip to content

[2.0] Fixes #37145: Improve the reliability of the MicroStrategy connector - #37730

Merged
Khairajani merged 2 commits into
2.0from
backport-2.0-microstrategy-reliability
Nov 13, 2026
Merged

Khairajani merged 2 commits into
2.0from
backport-2.0-microstrategy-reliability

Conversation

@Khairajani

@Khairajani Khairajani commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

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 for 2.0; the connector code is the same as on main.

What differs from main:

  • Migration version. 2.0.8 is already released, so the chart rename is a new 2.0.9 migration (native/2.0.9, mysql/v209, postgres/v209, utils/v209/MicroStrategyChartRename). On main it 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.
  • Thread links. 2.0 has no conversations table, so the rename moves thread links with FeedRepository.updateLegacyThreadsAbout, as other renames on 2.0 do. It still runs in the same transaction as the chart, its tags and field relationships.
  • SSL secret converter. 2.0 has no NestedConfigClassConverter, so sslConfig gets a MicroStrategyConnectionClassConverter, with a test.
  • Generated UI JSON that 2.0 doesn't track, and the ruff baseline, are left out.

Type of change:

  • Bug fix

Tests:

Run locally on this branch:

  • Connector unit tests: 57 pass. Converter tests: ClassConverterFactoryTest and MicroStrategyConnectionClassConverterTest, 26 pass.
  • Generated TypeScript types match a fresh json2ts-generate-all.sh -l true.
  • MicroStrategyChartRenameMigrationIT passes on MySQL and Postgres.
  • Upgrade 2.0.7 → this branch, on a real 2.0.7 install ingested from the public MicroStrategy demo, with hand-added metadata on a chart and on a chart shared by 8 dashboards: 2.0.8 and 2.0.9 migrations succeed, every chart renamed in place or copied with 0 errors, ids, description, tag, owner, domain, follower and thread kept, and search finds the new names. A run of this branch's ingestion afterwards reuses the renamed charts and creates no duplicates.
  • Upgrade this branch → main on the same database: the 2.1.0 migration succeeds and renames nothing.

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.

* 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)
@Khairajani
Khairajani requested review from a team as code owners November 13, 2026 07:07
@Khairajani
Khairajani requested review from IceS2, akashverma0786 and shah-harshit and removed request for a team November 13, 2026 07:07
@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 13, 2026
@gitar-bot

gitar-bot Bot commented Nov 13, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 🔴 High risk

The 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 2.0 for the 2.0.9 release, including a chart rename migration that moves thread links, tags and field relationships in the same transaction. 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 requested a review from IceS2 November 13, 2026 07:47
@Khairajani
Khairajani merged commit c4e26fe into 2.0 Nov 13, 2026
76 of 84 checks passed
@Khairajani
Khairajani deleted the backport-2.0-microstrategy-reliability branch November 13, 2026 11:47
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