Search before asking
What happened
PATCH requests to /api/blueprints/:id cannot update skipCollectors or fullSync fields. The values remain unchanged in the database regardless of what's sent in the request body.
Other SyncPolicy fields like skipOnFail update correctly.
What do you expect to happen
skipCollectors and fullSync should be updateable via PATCH like other blueprint fields.
How to reproduce
// Check current value
curl -s <devlake_url>/api/blueprints/<bp_id> | jq '{skipCollectors, fullSync}'
// {"skipCollectors": true, "fullSync": false}
// Attempt to update
curl -X PATCH <devlake_url>/api/blueprints/<bp_id>
-H "Content-Type: application/json"
-d '{"skipCollectors": false, "fullSync": true}'
// Check again - values unchanged
curl -s <devlake_url>/api/blueprints/<bp_id> | jq '{skipCollectors, fullSync}'
// {"skipCollectors": true, "fullSync": false}
Anything else
No response
Version
v1.0.3-beta9
Are you willing to submit PR?
Code of Conduct
Search before asking
What happened
PATCH requests to /api/blueprints/:id cannot update skipCollectors or fullSync fields. The values remain unchanged in the database regardless of what's sent in the request body.
Other SyncPolicy fields like skipOnFail update correctly.
What do you expect to happen
skipCollectors and fullSync should be updateable via PATCH like other blueprint fields.
How to reproduce
// Check current value
curl -s <devlake_url>/api/blueprints/<bp_id> | jq '{skipCollectors, fullSync}'
// {"skipCollectors": true, "fullSync": false}
// Attempt to update
curl -X PATCH <devlake_url>/api/blueprints/<bp_id>
-H "Content-Type: application/json"
-d '{"skipCollectors": false, "fullSync": true}'
// Check again - values unchanged
curl -s <devlake_url>/api/blueprints/<bp_id> | jq '{skipCollectors, fullSync}'
// {"skipCollectors": true, "fullSync": false}
Anything else
No response
Version
v1.0.3-beta9
Are you willing to submit PR?
Code of Conduct