Skip to content

Commit

Permalink
Fix item trashed event (#3083)
Browse files Browse the repository at this point in the history
* Fix resource ID in the ItemTrashed events

* Add changelog
  • Loading branch information
aduffeck committed Jul 18, 2022
1 parent 44cb65e commit 0517511
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions changelog/unreleased/fix-item-trashed-event.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Bugfix: Add space id to ItemTrashed event

We fixed the resource IDs in the ItemTrashed events which were missing the
recently introduced space ID in the resource ID.

https://github.com/cs3org/reva/pull/3083
1 change: 1 addition & 0 deletions internal/grpc/interceptors/eventsmiddleware/conversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ func ItemTrashed(r *provider.DeleteResponse, req *provider.DeleteRequest, execut
Ref: req.Ref,
ID: &provider.ResourceId{
StorageId: req.Ref.GetResourceId().GetStorageId(),
SpaceId: req.Ref.GetResourceId().GetSpaceId(),
OpaqueId: opaqueID,
},
}
Expand Down

0 comments on commit 0517511

Please sign in to comment.