From b3dace6d331e9abc47c843f86ef9499139d7bb83 Mon Sep 17 00:00:00 2001 From: Rahul Gupta Date: Wed, 13 Nov 2024 02:36:20 +0530 Subject: [PATCH 1/2] fix: POST on Container Triggers Add Activity A successful POST on a container resource on a Solid store creates a new resource in it, therefore it will trigger a notification with activity set to `as:Add`. --- src/sections/activity-mapping.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/sections/activity-mapping.md b/src/sections/activity-mapping.md index 3bcd734..576fa74 100644 --- a/src/sections/activity-mapping.md +++ b/src/sections/activity-mapping.md @@ -17,13 +17,16 @@ A [=Solid server=] sending a [PREP] notification as a result of some activity on Request Method Activity Type + + [[RFC9110#POST|POST]]
([[SOLID-PROTOCOL#resource-containment|Containers]]) + [[ACTIVITYSTREAMS-VOCABULARY#dfn-add|as:Add]] [[RFC9110#PUT|PUT]] [[ACTIVITYSTREAMS-VOCABULARY#dfn-update|as:Update]] [[RFC5789#section-2|PATCH]] - [[RFC9110#POST|POST]] + [[RFC9110#POST|POST]]
(Not [[SOLID-PROTOCOL#resource-containment|Containers]]) [[RFC9110#DELETE|DELETE]] [[ACTIVITYSTREAMS-VOCABULARY#dfn-delete|as:Delete]] From 1353283069f1297c70ac8a83e8ccc5b7774c093a Mon Sep 17 00:00:00 2001 From: Rahul Gupta Date: Wed, 13 Nov 2024 02:45:27 +0530 Subject: [PATCH 2/2] fix: Clarify Notification is Triggered on Container Clarify language in Implementation Guidance that maps HTTP methods to activity to indicate that cases 2 and 3 concern notifications are being triggered on the container, when a resource inside them is being created or updated. --- src/sections/activity-mapping.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sections/activity-mapping.md b/src/sections/activity-mapping.md index 576fa74..f97dde7 100644 --- a/src/sections/activity-mapping.md +++ b/src/sections/activity-mapping.md @@ -33,7 +33,7 @@ A [=Solid server=] sending a [PREP] notification as a result of some activity on
- 2. When the [PREP] notification is triggered by a request on a contained resource with one of the following [[RFC9110#methods|HTTP methods]]: + 2. When the [PREP] notification is triggered on a container, by a request on a contained resource with one of the following [[RFC9110#methods|HTTP methods]]:
Activity Mapping for LDP Containers when contained resources change @@ -53,7 +53,7 @@ A [=Solid server=] sending a [PREP] notification as a result of some activity on

- 3. When the [PREP] notification is triggered by a request to create a new resource inside that container (resource) with one of the following [[RFC9110#methods|HTTP methods]]: + 3. When the [PREP] notification is triggered on a container, by a request to create a new resource inside that container (resource) with one of the following [[RFC9110#methods|HTTP methods]]:
Activity Mapping for LDP Containers when contained resources are created