Skip to content

Document the prisma_saas adapter type in CLI help - #451

Merged
maximelb merged 1 commit into
masterfrom
feature/prisma-saas-adapter
Nov 6, 2026
Merged

maximelb merged 1 commit into
masterfrom
feature/prisma-saas-adapter

Conversation

@maximelb

@maximelb maximelb commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adapter types are discovered from the live adapter hive schema, so prisma_saas (Palo Alto SaaS Security, formerly Prisma SaaS) needs no hard-coded registration. This PR adds it to the cloud-adapter / external-adapter help text, with a cloud-adapter set example using a hive://secret/ client secret, plus a CHANGELOG entry.
  • Tests: list-types / schema --type prisma_saas resolve from a schema carrying the prisma_saas config (client_id, client_secret, region, base_url, max_concurrent_polls), and the help text documents the type.

Test plan

  • pytest tests/unit/ tests/microbenchmarks/ — 5245 passed, 5 skipped (pre-existing skips)

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@maximelb

maximelb commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

/lc-review

@limacharlie-event-notifications limacharlie-event-notifications Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

AI Code Review Summary

No high or medium priority issues found.

General Feedback

  • test-time-budget: no check run was found for this commit. Branch protection and rulesets for master do not list it as a required check, so it does not block this PR.
  • The cloud-adapter set example uses platform: prisma_saas, and the external-adapter set help now lists prisma_saas as a platform data format. Both other examples in this help use platform: json. This repo has no list of valid platform values, so I could not confirm that the backend accepts prisma_saas as a platform. If it does not, users who copy the example will get an invalid or wrongly parsed adapter. Please confirm the value, or use json.
  • The first two new tests use the existing generic schema-derivation code with a hand-written schema. They confirm that the generic path handles a prisma_saas property, but they do not show that the live backend schema contains this type. That is expected, because the type is discovered at runtime. These are not simulation tests: they call the real adapter_types, adapter_type_schema and CLI code.

Blast Radius

The code changes are limited to help strings registered with register_explain (external-adapter.list, external-adapter.set, cloud-adapter.set), plus a CHANGELOG entry and unit tests. Runtime behaviour does not change. The only visible effect is the --ai-help / explain output for these commands, and any tooling that reads that text.


This review was generated automatically by Claude Code.

@maximelb
maximelb marked this pull request as ready for review November 6, 2026 03:47
@maximelb
maximelb merged commit 56f1a16 into master Nov 6, 2026
7 checks passed
@maximelb
maximelb deleted the feature/prisma-saas-adapter branch November 6, 2026 03:48
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