Skip to content

feat: add BlueprintsApi for custom blueprint CRUD#196

Merged
fdelbrayelle merged 8 commits intomainfrom
kestra-ee/issues/7133
Mar 24, 2026
Merged

feat: add BlueprintsApi for custom blueprint CRUD#196
fdelbrayelle merged 8 commits intomainfrom
kestra-ee/issues/7133

Conversation

@fdelbrayelle
Copy link
Copy Markdown
Member

Summary

  • Add BlueprintsApi class with methods to search, get, create, update, and delete custom flow blueprints
  • Wire BlueprintsApi into KestraClient via blueprints() accessor
  • Needed by TenantSync in plugin-ee-git to sync custom blueprints via the Kestra API

Part-of: https://github.com/kestra-io/kestra-ee/issues/7133

Test plan

  • Verify BlueprintsApi compiles and methods match the OpenAPI spec endpoints
  • Verify KestraClient.blueprints() returns a valid BlueprintsApi instance

Add BlueprintsApi with methods to search, get, create, update, and delete
custom flow blueprints via the Kestra EE API. Wire it into KestraClient.
@fdelbrayelle fdelbrayelle self-assigned this Mar 24, 2026
@github-project-automation github-project-automation Bot moved this to To review in Pull Requests Mar 24, 2026
Add |Blueprints to the openapiNormalizer FILTER in java-config.yml
and regenerate the SDK properly via generate-sdks.sh.
Comment thread java/java-sdk/api/openapi.yaml
Copy link
Copy Markdown
Member

@brian-mulier-p brian-mulier-p left a comment

Choose a reason for hiding this comment

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

Add tests on all methods of blueprints

Cover CRUD operations on flow blueprints (create, get, get by id,
update, delete) and search for both internal and community blueprints.
Copy link
Copy Markdown
Member

@brian-mulier-p brian-mulier-p left a comment

Choose a reason for hiding this comment

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

Tiny changes

- updateFlowBlueprintTest: re-fetch via flowBlueprintById after update
  to verify persistence
- searchInternalBlueprintsTest: create an internal blueprint first, then
  search by title and verify it appears in results
- searchBlueprintsTest: create a flow blueprint first, then search by
  title and verify it appears in results
Copy link
Copy Markdown
Member

@brian-mulier-p brian-mulier-p left a comment

Choose a reason for hiding this comment

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

LGTM

The searchBlueprints endpoint queries community blueprints which we
cannot populate in tests. Remove the isNotEmpty assertion and just
verify the API call succeeds and returns a valid response.
@fdelbrayelle fdelbrayelle merged commit 86a26ab into main Mar 24, 2026
5 checks passed
@fdelbrayelle fdelbrayelle deleted the kestra-ee/issues/7133 branch March 24, 2026 14:34
@github-project-automation github-project-automation Bot moved this from To review to Done in Pull Requests Mar 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants