Handle clears_artifact_provides in mender client

Description

Acceptance criteria:

  • Implement handling of clears_artifact_provides in the artifact format.

  • All the artifact_provides stored in the DB are matched against all entries in the attribute, glob-style.

    • When committing artifact, existing provides that had no matches must be retained

    • When committing artifact, existing provides that matched must be erased

    • Provides that come with the current artifact (even if in a different payload) must always be retained, even if they match

  • If an artifact comes with no clears_artifact_provides (nil value), then the client must behave as if '*' was specified, in other words match everything. This is to preserve backwards compatibility.

Feature branch name: feature-partial_updates

Affects versions

None

Environment

None

Checklist

Activity

Show:

Kristian AmlieApril 28, 2020 at 12:00 PM

Repurposing task to implement handling of Artifact clears_artifact_provides field instead.

Fixed

Details

Assignee

Reporter

Labels

Story Points

Priority

Days in progress

4

Sprint

Backlog

yes

Zendesk Support

Checklist

Created January 23, 2020 at 1:27 PM
Updated June 25, 2024 at 11:55 AM
Resolved October 12, 2020 at 6:55 AM