You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Notifications] Make close/dismiss button in the Activity tab match server's logic #5922
Activity
guruz commentedon Jul 26, 2017
They even re-appear while the client is running sometimes.
CC @dragotin
guruz commentedon Jul 28, 2017
The code was easy but it does not work :-(
We expect:
// the ocs API returns stat code 100 if it succeeded.But calling
DELETEon the notification as in returns a HTTP 200https://github.com/owncloud/notifications/blob/master/docs/ocs-endpoint-v1.md#deleting-a-notification-for-a-user
I'm not sure I understand this, why is 100 expected?
#define OCS_SUCCESS_STATUS_CODE 100HTTP 100 is "Continue", it's not a confirmation code.
So this is a server bug that we could work around by just accepting 200, but...
EDIT: but according to https://github.com/owncloud/notifications/blob/e0fb0e89e59799e80dcf57cc44aaf5eed0abeb19/tests/Unit/Controller/EndpointControllerTest.php#L337 the 100 should have been sent?
Notifications: Propagate "Dismiss" as DELETE to server #5922
Notifications: Propagate "Dismiss" as DELETE to server #5922
SamuAlfageme commentedon Aug 8, 2017
👍
Notifications: Propagate "Dismiss" as DELETE to server #5922