-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ldes-client): update logic handling tombstones
- Loading branch information
Showing
4 changed files
with
57 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"app-gelinkt-notuleren": minor | ||
--- | ||
|
||
Add migration which drops all data related to tombstones from our database |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"app-gelinkt-notuleren": minor | ||
--- | ||
|
||
Adjust ldes-client `processPage` logic to remove incoming tombstones entirely |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
config/migrations/20241129121508-clean-up-tombstones.sparql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
PREFIX as: <http://www.w3.org/ns/activitystreams#> | ||
|
||
DELETE { | ||
GRAPH ?g { | ||
?tombstone a as:Tombstone. | ||
?tombstone ?p_out ?o_out. | ||
?s_in ?p_in ?tombstone. | ||
} | ||
} | ||
WHERE { | ||
GRAPH ?g { | ||
?tombstone a as:Tombstone. | ||
{ | ||
?tombstone ?p_out ?o_out. | ||
} | ||
UNION | ||
{ | ||
?s_in ?p_in ?tombstone. | ||
} | ||
} | ||
} |