Skip to content

feat(tool/looker-get-explore): expose certification_metadata for explores - #4482

Open
drstrangelooker wants to merge 1 commit into
mainfrom
feat/looker-explore-certification-metadata
Open

drstrangelooker wants to merge 1 commit into
mainfrom
feat/looker-explore-certification-metadata

Conversation

@drstrangelooker

Copy link
Copy Markdown
Contributor

1. Description
Exposes certification_metadata in looker-get-explore so agents can distinguish certified ("golden") Explores from unvetted or revoked ones before generating queries:

  • Requests certification_metadata in the fields query parameter on GET /4.0/lookml_models/{model}/explores/{explore} via sdk.AuthSession.Do into a response struct embedding v4.LookmlModelExplore with CertificationMetadata *v4.Certification.
  • Surfaces certification_metadata in the returned map when present and omits it when absent (matching feat(tool/looker): expose certification_metadata in looker dashboard and look tools #4041).
  • Updates github.com/looker-open-source/sdk-codegen/go to v0.26.24.
  • Adds unit tests in internal/tools/looker/lookergetexplore/lookergetexplore_test.go.
  • Updates docs/en/integrations/looker/tools/looker-get-explore.md and internal/prebuiltconfigs/tools/looker.yaml so agents know to prefer certified explores.

Security considerations:

  • Path/command injection: model and explore are escaped with url.PathEscape when constructing the Looker REST API path.
  • Credentials and secrets: No credentials or tokens are logged, hardcoded, or echoed; requests continue to use source.GetLookerSDK and sdk.AuthSession.Do.
  • Auth bypass: RequiresClientAuthorization and GetAuthTokenHeaderName are unchanged; server-level authRequired/scopesRequired checks are untouched.

2. PR Checklist

  • Make sure to open an issue as a bug/issue before writing your code!
  • Ensure you have manually reviewed the entire diff before requesting a review
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)
  • Make sure to add ! if this involves a breaking change

3. Issue Reference
Fixes #4307 🦕

@drstrangelooker
drstrangelooker requested review from a team as code owners November 12, 2026 20:53
@drstrangelooker drstrangelooker added the release candidate Use label to signal PR should be included in the next release. label Nov 12, 2026

@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 updates the looker-get-explore tool to retrieve and include certification_metadata for Looker explores. It updates the underlying Looker SDK dependency, modifies the tool implementation to perform a direct API request via sdk.AuthSession.Do to fetch the metadata, and updates the tool's YAML configuration and Markdown documentation to describe this new capability. Additionally, a comprehensive suite of unit tests has been added to verify the behavior of certified, uncertified, and hidden explores. There are no review comments, so no additional feedback is provided.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release candidate Use label to signal PR should be included in the next release.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[tool/looker] Expose certification_metadata for Explores (follow-up to #4029 / #4041)

2 participants