Open omarsilva1 opened 1 year ago
There is a workaround for this bug. Updating only the value of the artifact leads to the aforementioned issue. However, if you update the whole artifact (using POST /api/artifact/{artifactId} with the request body containing the new value and the previous title and description) the correct value is sent.
The best way of updating an artifact value (so that it works with subscriptions)
PUT /api/artifacts/{id} HTTP/1.1
Content-Type: application/json
{
"title": "Artifact Title",
"description": "Artifact Description",
"automatedDownload": false,
"value": "new value"
}
It would be still interesting to know why POST /api/artifact/{artifactId}/data leads to the old data being sent.
Describe the bug In case that a DSC has subscribed to its own artifact on update the subscriptions location receives the previous artifact data instead of the new data.
To Reproduce Steps to reproduce the behavior:
Expected behavior The updated value should be dispatched to webhook.