Skip to content

Add optional table that tracks deleted entries #19

@svniemeijer

Description

@svniemeijer

In order to allow synchronisation of other catalogues with a muninn catalogue we need to keep track of which entries got deleted (and when), so we can inform the other side which entries they need to remove as well (since their last update point).
Instead of keeping the full metadata with a 'deleted' flag, it will be much more efficient to just keep a separate table for deleted entries containing only the UUID and metadata_date fields, since those are the only fields that we need for the synchronisation.

Having such a 'deleted' table needs to become an optional property of an archive (disabled by default).

The muninn-remove command then needs to be updated to also create an entry in the 'deleted' table when a product is removed.

We might also want to have some kind of muninn-query version that allows querying of entries in the 'deleted' table.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions