Skip to content

[OPIK-5716] [BE] feat: create new blueprint from mask changes delta#6122

Merged
BorisTkachenko merged 5 commits intomainfrom
boryst/OPIK-5716-be-create-new-blueprint-using-mask-changes
Apr 8, 2026
Merged

[OPIK-5716] [BE] feat: create new blueprint from mask changes delta#6122
BorisTkachenko merged 5 commits intomainfrom
boryst/OPIK-5716-be-create-new-blueprint-using-mask-changes

Conversation

@BorisTkachenko
Copy link
Copy Markdown
Contributor

Details

Add a new endpoint to create a blueprint by applying a mask's changes on top of the latest blueprint for a project. The endpoint POST /blueprints/from-mask/projects/{project_id}/masks/{mask_id} fetches the mask's delta values and creates a new BLUEPRINT-type config through the existing updateConfig flow, which handles merging with the latest blueprint values.

Change checklist

  • User facing
  • Documentation update

Issues

  • OPIK-5716

AI-WATERMARK

AI-WATERMARK: yes

  • If yes:
    • Tools: Claude Code (Claude Opus 4.6)
    • Model(s): claude-opus-4-6
    • Scope: Full implementation - endpoint, service method, tests
    • Human verification: Code review pending

Testing

  • 3 integration tests added in AgentConfigsResourceTest.CreateBlueprintFromMask:
    • Success: creates blueprint from mask, verifies merged config values (mask overrides + inherited values)
    • 404 when mask ID does not exist
    • 404 when no config exists for the project

Documentation

N/A - internal API endpoint

@BorisTkachenko BorisTkachenko self-assigned this Apr 8, 2026
@BorisTkachenko BorisTkachenko requested a review from a team as a code owner April 8, 2026 10:27
@github-actions github-actions bot added java Pull requests that update Java code Backend tests Including test files, or tests related like configuration. labels Apr 8, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 8, 2026

Backend Tests - Integration Group 5

127 tests   127 ✅  2m 58s ⏱️
 30 suites    0 💤
 30 files      0 ❌

Results for commit 40a387f.

♻️ This comment has been updated with latest results.

Copy link
Copy Markdown
Member

@andrescrz andrescrz left a comment

Choose a reason for hiding this comment

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

Let's review the open comments, including Baz, before moving forward.

@BorisTkachenko BorisTkachenko requested a review from andrescrz April 8, 2026 11:37
@BorisTkachenko BorisTkachenko merged commit dc7350d into main Apr 8, 2026
75 of 76 checks passed
@BorisTkachenko BorisTkachenko deleted the boryst/OPIK-5716-be-create-new-blueprint-using-mask-changes branch April 8, 2026 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Backend java Pull requests that update Java code tests Including test files, or tests related like configuration.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants