@W-23334008 - Add Chiron datasource-context insight tools + datasource LUID resolver#471
Draft
tonythebest wants to merge 1 commit into
Draft
Conversation
… LUID resolver Add a deterministic path to generate Pulse insights from Studio datasource context (no persisted Pulse metric/definition required), plus a resolver to map a Desktop workbook's published datasource to a unique LUID. - generate-chiron-insight-from-datasource-context: validates datasource/fields/ filters, builds inline metric context, calls generate-pulse-* internally, and auto-falls back from the AI brief to the deterministic bundle when Tableau+ is disabled on the site. - resolve-datasource-luid: resolves a datasource contentUrl (exact, case- sensitive) to a unique published LUID, disambiguating same-named datasources (the REST contentUrl filter is case-insensitive). - Expose contentUrl on the DataSource schema (also surfaced by list-datasources). - Register + scope the new tools; unit tests for builder, wrapper (incl. brief-> bundle fallback), and resolver (case-collision). Co-authored-by: Cursor <cursoragent@cursor.com>
|
Thanks for the contribution! Unfortunately we can't verify the commit author(s): t-li <t***@s***.com>. One possible solution is to add that email to your GitHub account. Alternatively you can change your commits to another email and force push the change. After getting your commits associated with your GitHub account, refresh the status of this Pull Request. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a deterministic path to generate Pulse insights from datasource context (no persisted Pulse metric/definition required), plus a resolver to map a datasource's
contentUrlto a unique published LUID.generate-chiron-insight-from-datasource-context: validates datasource/fields/filters, builds inline metric context, and callsgenerate-pulse-*internally. Auto-falls back from the AI brief to the deterministic bundle when Tableau+ (AI insights) is disabled on the site.resolve-datasource-luid: resolves a datasourcecontentUrl(exact, case-sensitive) to a unique published LUID, disambiguating same-named datasources. (The RESTcontentUrlfilter is case-insensitive, so an exact post-match is required.)contentUrlon theDataSourceschema (also surfaced bylist-datasources).Why
Enables a "datasource in front of me -> governed insight" flow (e.g. Tableau Desktop / Studio) without pre-created Pulse metric definitions: resolve the open datasource's LUID from its
contentUrl, then generate a Pulse insight from an inline metric spec built off the datasource's fields.Test plan
npm run buildgreen (node 22)npm run lintcleannpm test— new unit tests pass (request builder, wrapper + fallback, resolver case-collision); full datasource suite greenDraft for team review.
Made with Cursor