Closed brechtvdv closed 11 months ago
Hi @brechtvdv this is likely due to one of two reasons.
1. Default view prevents deletion of members A known issue in the server is that a default view is created for every eventstream. This means that members are added to your custom view with version based retention AND the default view, which has no retention. This default view then blocks the removal of all members. You can check this with:
curl -X 'GET' \
'http://localhost:8080/admin/api/v1/eventstreams/touristattractions/views' \
-H 'accept: text/turtle'
If the default view is there, you have to remove it first. We removed the default view functionality just this week as part of https://github.com/Informatievlaanderen/VSDS-LDESServer4J/issues/893. However if you are not using the latest develop image, you will have to delete the default view manually after creating an eventstream.
2. Missing versionOf or timestamp property Can you also share the ttl you use to create the eventstream and a ttl of one of the members? Version based retention requires both a timestamp and a versionOf. This is configured on the eventstream and needs to be present on the members to be eligible for deletion.
I want to create a LatestVersionSubset with amount: 1. However, multiple versions of the same non-versioned entity are still maintained.
I created this view:
When counting the number of instances per non-versioned entity, I get > 1 counts:
The result: