Skip to content

[Bug][API] PATCH /blueprints/:id cannot update skipCollectors and fullSync fields #8687

@owais-maswala

Description

@owais-maswala

Search before asking

  • I had searched in the issues and found no similar issues.

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?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stalepriority/highThis issue is very importantseverity/p1This bug affects functionality or significantly affect uxtype/bugThis issue is a bug

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions