Repository navigation
Conversation
PR SummaryOverview The GraphQL layer maps The UI adds Reviewed by Cursor Bugbot for commit eef657a. Bugbot is set up for automated code reviews on this repo. Configure here. |
|
🔴 Meticulous spotted visual differences in 1 of 802 screens tested: view and approve differences detected. Meticulous evaluated ~18 hours of user flows which tested 29/2644 of the executable lines edited in your PR1. 1. These 2615 untested lines will likely automatically gain test coverage over the coming days, however if you wish to increase coverage immediately you can do so by interacting with your feature on localhost. Last updated for commit |
Smart test selectionpytest smoke testsMode: shadow. The selection below is computed but not applied; this PR still runs the default matrix (
Medium confidence: a wrong tag means tests are skipped, so check the tags above against what this PR touches. Selected scopes (32 files or classes, 296 tests)
Add the Playwright E2E testsThis run:
Add the commit |
Initial JS bundle size ➡️
|
Boot web vitals (no backend)Unauthenticated /login against the two dist/ trees from this job. No GMS — this is eager JS, not search/dataset payload. Lantern, desktop, 1x CPU. Does not forecast fleet p75; do not gate on LCP. Web-vitals A/B — base (99f89b4) (A) vs pr (eef657a) (B)Lighthouse 12.8.2, throttling simulate (cpu 1x, rtt 40 ms, 10240 kbps). Form factor: desktop. Cache: cold (fresh incognito context per run). target n=3/build, 1 warm-up discarded, alternating A,B. Boot-only (no GMS). Unauthenticated login route — eager JS/CSS/font transfer and parse, not search/dataset payload. Do not treat as a fleet p75.
|
| metric | A p50 | B p50 | Δ p50 | Δ% | A p95 | B p95 |
|---|---|---|---|---|---|---|
| fcp | 763 ms | 854 ms | 91 ms | +11.9% | 857 ms | 855 ms |
| lcp | 1315 ms | 1313 ms | -2 ms | -0.2% | 1317 ms | 1340 ms |
| cls | 0.0000 | 0.0000 | 0.0000 | — | 0.0000 | 0.0000 |
| tbt | 15 ms | 17 ms | 3 ms | +17.2% | 18 ms | 21 ms |
| tti | 1316 ms | 1314 ms | -2 ms | -0.2% | 1318 ms | 1341 ms |
| ttfb | 1 ms | 1 ms | 0 ms | -4.0% | 1 ms | 1 ms |
| transferredBytes | 1076.6 KB | 1076.7 KB | 0.1 KB | +0.0% | 1076.6 KB | 1076.7 KB |
| mainThread | 301 ms | 300 ms | 0 ms | -0.1% | 301 ms | 368 ms |
| bootup | 164 ms | 161 ms | -3 ms | -1.8% | 167 ms | 184 ms |
Resource transfer by type (p50):
| type | A bytes | B bytes | Δ bytes | A requests | B requests |
|---|---|---|---|---|---|
| document | 1.3 KB | 1.3 KB | 0.0 KB | 1 | 1 |
| script | 644.8 KB | 644.9 KB | 0.1 KB | 8 | 8 |
| stylesheet | 3.0 KB | 3.0 KB | 0.0 KB | 2 | 2 |
| image | 48.7 KB | 48.7 KB | 0.0 KB | 1 | 1 |
| media | 257.3 KB | 257.3 KB | 0.0 KB | 1 | 1 |
| font | 106.6 KB | 106.6 KB | 0.0 KB | 3 | 3 |
| other | 0.0 KB | 0.0 KB | 0.0 KB | 0 | 0 |
LCP element A: div > div.sc-fpAkvV > div.sc-pRPz > p.sc-pNWdM — Welcome to DataHub
LCP element B: div > div.sc-fpAkvV > div.sc-pRPz > p.sc-pNWdM — Welcome to DataHub
These numbers rank changes and gate regressions against the measured origin(s). They do not sum across PRs and do not forecast any fleet-wide production number.
057f5a0 to
c72ba73
Compare
lakshay-nasa
left a comment
There was a problem hiding this comment.
lgtm, just the two backend tests to fix before merge
c72ba73 to
d5fcb96
Compare
…bled flag Adds the metadata model for configuring DataHub-hosted MCP servers, stored in the existing GlobalSettingsInfo aspect (urn:li:globalSettings:0) as a new optional mcpSettings field: - McpSettings: master switch, observation telemetry/tool switches, scoped servers (exposed at /mcp/:slug) and overrides for the default /mcp server. - McpServerConfig and McpInstructionSize: per-server name, instructions, instruction size, tool selection, scoping View and audit stamps. - AIAgentToolRef and ToolRefType: the tool-selection reference a server's tools list is made of. The records are copied from DataHub Cloud with identical field names and types, so Cloud's later merge of this change is a schema no-op. The only edit is dropping a comment that referred to Cloud-internal tracking. Also adds the createMcpServersEnabled feature flag (CREATE_MCP_SERVERS_ENABLED, off by default), named as in DataHub Cloud. When off, only the default server and servers already stored can be changed; the GraphQL API that follows enforces it. The flag is exposed in FeatureFlagsConfig through AppConfigResolver and classified as non-sensitive for system info. Tested: metadata-models build, datahub-graphql-core compile, AppConfigResolverTest (flag mapped into appConfig) and PropertiesCollectorConfigurationTest (the new flag is classified). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Exposes the MCP server settings stored in GlobalSettingsInfo.mcpSettings through a dedicated query, following the per-feature settings pattern used by globalViewsSettings and docPropagationSettings: - Query mcpSettings: McpSettings, readable by any authenticated user like globalViewsSettings. When nothing is stored it returns the model defaults (everything enabled, no scoped servers, no default-server overrides). - Types McpSettings, McpServerConfig, McpInstructionSize, AgentToolRef and ToolRefType, copied from DataHub Cloud's definitions so its UI queries keep working. McpServerConfig.view resolves viewUrn to the DataHubView. - McpSettingsMapper maps the stored record to GraphQL; it is the MCP part of Cloud's SettingsMapper, and AgentToolRefMapper is ported from Cloud at the same path. Left out on purpose because they rely on Cloud-only features: the domain scoping fields (domainUrn/domain, which manage system Views), skills (the agentSkill entity), and the built-in Ask DataHub default server that Cloud returns when no override is stored. The stored fields stay in the model. The types live in a new schema file, mcp.graphql, instead of app.graphql. DataHub Cloud has the same types, so keeping them in a file of their own lets Cloud hold an identical copy and add its own fields with `extend`. For that reason the file is complete here, including the update inputs (UpdateMcpSettingsInput, McpServerConfigInput, AgentToolRefInput); the updateMcpSettings mutation that uses them follows in the next change. Tested: McpSettingsResolverTest (defaults, non-admin read with full field mapping, service failure) and the schema-wide wiring tests (GmsGraphQLEngineWiringTest, GraphQLEngineTest, ResolverSourceReadGuardTest, aspect-mapping tests). ResolverSourceReadGuardTest gets an allowlist entry for McpServerConfig.view reading viewUrn, as in Cloud. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adds updateMcpSettings(input: UpdateMcpSettingsInput!): Boolean!, which read-modify-writes GlobalSettingsInfo.mcpSettings through SettingsService, like updateGlobalViewsSettings. It requires the Manage Platform Settings (MANAGE_GLOBAL_SETTINGS) privilege; OpenAPI and Rest.li writes of the globalSettings entity already require the same privilege. Behaviour, ported from the MCP part of DataHub Cloud's UpdateGlobalSettingsResolver: - Top-level switches change only when provided. - Scoped servers are upserted by slug; servers not in the input are kept. Slugs must match [a-z0-9][a-z0-9-]* and must not be reserved (default, datahub-default, datahub, mcp). A slug that is not stored yet is rejected unless createMcpServersEnabled is on, so by default only the default server and existing servers can be changed. - viewUrn must be a dataHubView URN; bad input is a client error. - The created stamp is kept on update, lastModified is the caller. - A default-server override that changes nothing is removed, so blanking it out reverts the default server to its built-in behaviour. Differences from Cloud: no domain scoping (it manages Cloud system Views) and no skills input, but stored skills are kept on update; the default server's overrides never store a slug; scoped servers keep their order. The input types it takes (UpdateMcpSettingsInput, McpServerConfigInput, AgentToolRefInput) were added to mcp.graphql with the query, copied from Cloud's definitions without those fields. Tested: UpdateMcpSettingsResolverTest covers a new server written and read back through McpSettingsMapper, the denied caller, the flag rejecting a new slug, an existing server edited with the flag off, invalid slugs, a non-View viewUrn, setting and clearing default-server overrides. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adds a Platform group with an AI item to the settings nav (admins with Manage Platform Settings only) and a /settings/ai page whose tabs come from a list: DataHub ships MCP Servers, and deployments add their own tabs through additionalAiSettingsTabs. /settings/ai lands on the first tab. The MCP Servers tab has the master switch (turning it off asks first) and the server list with each server's connection URL, which keeps the base path DataHub is served under, and its on/off switch. Strings live in a new settings.ai namespace. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adds the tool picker MCP server settings use to choose which tools a server exposes, with the selection helpers it shares with the server form. Tools are grouped by capability group; a group, a single tool or everything can be switched on or off, and an empty selection means all tools. The picker reads the tool catalog from <base path>/ai/catalog/tools (useMcpToolCatalog, response type McpToolCatalog) with the session's auth. While the catalog loads or when it is unavailable, the picker says so and offers a retry. The Agents tab and the opt-in groups only appear when the catalog lists them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adds the server form (name, description, base and custom instructions, tools) and opens it from a server's name or edit button. The list gains a Tools column showing what each server exposes, resolved against the tool catalog, or the stored selection by name when the catalog is unavailable; saving without a catalog keeps the stored selection. Scoped servers stay behind createMcpServersEnabled. With it off (the default) there is no Create button, slug, View scope picker, Scope column or deleted-View alert, and a View stored on the default server is kept on save. With it on, admins can create scoped servers and limit a server to a View. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adds a "Connect a client" card under the server list with a copyable setup for Claude Code, Cursor, Claude Desktop (through the local mcp-remote bridge), VS Code and other Streamable HTTP clients. The connection URL keeps the base path DataHub is served under. Authentication follows DataHub's token auth setting. When it is on, the card links to the Access Tokens page and every setup sends an Authorization header. When it is off, the setups send no token and the card warns that MCP calls run as DataHub's system user with metadata writes on, and how to turn them off. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
DataHub Core has a single MCP server, so with scoped servers off the settings
page no longer shows a one-row table with a second enable switch. It shows one
card with the on/off switch (same disable confirmation), the connection URL
with copy, the selected tools and an Edit button, then the Connect card.
The switch reads as on only when both the master setting and the default
server's own override are on. Turning it on also re-enables an override that
was off, so a hidden switch can't keep /mcp at 404; turning it off sets the
master setting off. The page uses singular wording ("MCP Server").
With scoped servers on (DataHub Cloud) the table, per-row switches and plural
wording are unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude's custom connectors take a request header, so the Connect card gains a "Claude (connector)" tab: Customize → Connectors → Add custom connector, the connection URL, "No sign-in", and an `authorization` header of `Bearer <token>` when DataHub token auth is on (no header when it's off, with the system-user warning). Connectors are called from Anthropic's cloud. The tab recommends them only for a public HTTPS URL; for http, localhost, private or link-local addresses, single-label hosts and internal names (.local, .localhost, .internal, .lan, .home.arpa) it says Claude can't reach the URL and links to the local Claude Desktop (mcp-remote) tab. It also notes that request headers are in beta for some organizations and that on Team / Enterprise an owner's header is shared by every member. ChatGPT's developer-mode connectors offer only OAuth or no auth, so there is no ChatGPT tab. The card is now built from a shared McpConnectSetup component, which the home page module reuses. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Add McpSettingsValidator, an AspectPayloadValidator on globalSettingsInfo registered in SpringStandardPluginConfiguration, so slug format, reserved slugs, unique slugs and dataHubView-only viewUrns hold for every write path. A write that keeps a problem already stored is allowed. The updateMcpSettings resolver reuses its slug and View checks for its errors. - updateMcpSettings now starts from the stored server config, so fields the input does not carry (domainUrn, skills) survive an update. - A default-server override with only a name is kept instead of being treated as empty; a stored domain scope also keeps it. - Tool refs whose type the GraphQL enum lacks (PLUGIN, or a value from a newer schema) are left out of reads instead of shown as TOOL, and updateMcpSettings keeps them, so a load and save no longer retypes them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- ViewSelector sends its search text to listMyViews and listGlobalViews (debounced) instead of filtering only the first page client-side, so a View past the first page can still be found and picked. - When the saved View is not in the listed results, it is looked up with getView so the picker keeps showing its name rather than an empty value. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
d5fcb96 to
eef657a
Compare
7383f0c to
99f89b4
Compare
|
@lakshay-nasa both backend tests are fixed:
The open Cursor findings on this PR are fixed too, including a new 🤖 Addressed by Claude Code |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 3 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit eef657a. Configure here.
| const isDefault = editing?.isDefault ?? false; | ||
|
|
||
| const [slug, setSlug] = useState(editing?.slug ?? ''); | ||
| const [name, setName] = useState(editing?.name ?? ''); |
There was a problem hiding this comment.
Default server name always persisted
Medium Severity
The default-server row uses the display label Default when no override name exists, and the edit form initializes name from that row. Saving or toggling therefore sends a non-blank name, so isEffectivelyEmptyOverride never treats the payload as empty. Admins cannot revert the default server to built-in behaviour from the UI, and a no-op save writes a real override.
Additional Locations (2)
Reviewed by Cursor Bugbot for commit eef657a. Configure here.
| : new AIAgentToolRefArray(); | ||
| tools.addAll(kept); | ||
| return tools; | ||
| } |
There was a problem hiding this comment.
All-tools save drops built-in tools
Medium Severity
When the client omits tools (empty selection means all tools) and stored refs include unrepresentable types such as PLUGIN, mergeTools writes only those hidden refs. That list is a restriction, not “all tools”, so built-in tools are dropped on save.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit eef657a. Configure here.
| private boolean browserWebVitalsEnabled = false; | ||
| // Lets admins create scoped MCP servers (/mcp/:slug) next to the default one. Off: only servers | ||
| // already stored in mcpSettings, and the default server's overrides, can be changed. | ||
| private boolean createMcpServersEnabled = false; |
There was a problem hiding this comment.
Follow-through gap
Medium Severity
FeatureFlags gained createMcpServersEnabled, but scripts/generated/flag-classification.json was not refreshed via scripts/dev/datahub-dev.sh sync-flags. Flag classification and any CI that diffs that manifest stay stale for the new flag.
Triggered by project rule: DataHub Bugbot rules
Reviewed by Cursor Bugbot for commit eef657a. Configure here.


Stack. Part of the series that adds a built-in MCP server to DataHub Core. Based on
na--mcp-tags(#21501, the write tools); review only its own commits. Everything user-facing is behindMCP_SERVER_ENABLED, off by default.Stack so far:
1–22. Merged to
masteras #21332.23–34. #21435, the read tools.
35–46. #21501, the write tools (PRs 36–46 merged into it).
47–55. #21587, MCP settings: model, API and UI. ← this PR
56–60. #21588, telemetry, metrics, usage events and the stdio server.
61–64. #21589, docs, release notes and smoke tests.
65–68. #21590, settings enforcement and the tool catalog.
69–70. #21591, the home page module.
71–74. #21623, the ingestion tools.
What this does
Adds the MCP server settings: a model, a GraphQL API and a settings page. It combines what would have been stack PRs 47–55, one commit each.
Model and API
mcpSettingsinGlobalSettingsInfo. It holds the master switch, scoped servers and default-server overrides. The records match DataHub Cloud's, includingToolRefType'sPLUGINvalue, which DataHub Core doesn't use. Cloud's later merge is a schema no-op. It also adds thecreateMcpServersEnabledflag, off by default.mcpSettingsquery: in a newmcp.graphql, so Cloud can keep an identical copy and add its own fields withextend. Any signed-in user can read it, because datahub-ai-service enforces the switch and the default server's overrides with each MCP caller's own token. Scoped servers are returned only to users who can manage platform settings; others get an empty list.updateMcpSettingsmutation: requires Manage Platform Settings. It upserts scoped servers by slug, validates slugs and View URNs, and refuses new scoped servers unlesscreateMcpServersEnabledis on.Settings UI
Testing
McpSettingsResolverTest,UpdateMcpSettingsResolverTest,AppConfigResolverTest, the schema wiring and aspect-mapping tests, andPropertiesCollectorConfigurationTest.settingsV2,context/agentsandhomeV3: 743 tests.tsc --noEmitis clean once GraphQL types are regenerated.Checklist
🤖 Generated with Claude Code