Skip to content

[SCAL-347792] Add SpotterX flag check util - #228

Merged
Rifdhan merged 1 commit into
mainfrom
SCAL-347792-add-spotterx-flag-util
Nov 3, 2026
Merged

Rifdhan merged 1 commit into
mainfrom
SCAL-347792-add-spotterx-flag-util

Conversation

@Rifdhan

@Rifdhan Rifdhan commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator
  • Util to check if SpotterX is enabled in the cluster
  • Refactor sessionInfo fetch stack to return the actual response structure seen in the API response, instead of reshaping it to a new arbitrary structure
  • This makes it easier to reason about the state of flags, and resolves some any-cast type issues
  • Add test coverage

@Rifdhan
Rifdhan requested review from a team and mouryab as code owners November 3, 2026 01:32

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors the SessionInfo handling by passing the raw upstream response directly instead of mapping it to a flattened structure. Properties such as cluster details, Mixpanel configurations, and feature flags are now nested under configInfo, and all dependent components (MixpanelTracker, BaseMCPServer, and associated tests) have been updated accordingly. Additionally, a new isSpotterXEnabled check has been introduced. No review comments were provided, and I have no further feedback as the changes are clean and well-tested.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview URL: https://scal-347792-add-spotterx-flag-util-thoughtspot-mcp-server.thoughtspot-485.workers.dev (commit f818944)

This URL reflects your latest Preview deployment

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://70bc8af8-thoughtspot-mcp-server.thoughtspot-485.workers.dev f818944 2026-11-03T18:18:42.684Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://c8c0736c-thoughtspot-mcp-server.thoughtspot-485.workers.dev 4d270aa 2026-11-03T01:34:17.146Z Visit the dashboard ↗

- Util to check if SpotterX is enabled in the cluster
- Refactor sessionInfo fetch stack to return the actual response
  structure seen in the API response, instead of reshaping it to
  a new arbitrary structure
- This makes it easier to reason about the state of flags, and
  resolves some any-cast type issues
- Add test coverage
@Rifdhan
Rifdhan force-pushed the SCAL-347792-add-spotterx-flag-util branch from 4d270aa to f818944 Compare November 3, 2026 18:18
@Rifdhan
Rifdhan merged commit c9a4bcf into main Nov 3, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants