Uh oh!
There was an error while loading. Please reload this page.
Notifications overhaul - #15040
Conversation
0d70f8a to
0d2573cCompare0d2573c to
24a5493CompareSigned-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
24a5493 to
55f5bc7Comparenickvergessen
commented
Jul 16, 2019
Ready to review. Would also be nice if you can check the notifications PR (see PR description) and the PRs to all affected apps (linked around the last comment from morris) |
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Uh oh!
There was an error while loading. Please reload this page.
MorrisJobke
left a comment
There was a problem hiding this comment.
Beside my little nitpick the code change looks good 👍
Signed-off-by: Joas Schilling <coding@schilljs.com>
MorrisJobke
commented
Jul 16, 2019
Tested and works 👍 |
nickvergessen
commented
Jul 16, 2019
Created an issue on all repos and emailed the one where I couldn't due to permissions |
Uh oh!
There was an error while loading. Please reload this page.
@nickvergessen Our deprecation guidelines is to wait 3 releases before removing the old legacy way.
Updating spreed to latest master fixed it for me. Deprecated is different from removed. If you kill a method, you don't deprecate it, you remove it. Deprecation = warning but still functional! 🤔 {
"reqId": "H90SnKlyMmWFtO2itxYU",
"level": 3,
"time": "2019-07-28T08:16:57+00:00",
"remoteAddr": "172.21.0.1",
"user": "Test1",
"app": "no app in context",
"method": "GET",
"url": "/ocs/v2.php/apps/spreed/api/v1/room",
"message": {
"Exception": "InvalidArgumentException",
"Message": "Notifier Talk (id: spreed) is not considered because it is using the old way to register.",
"Code": 0,
"Trace": [
{
"file": "/var/www/html/apps2/spreed/lib/AppInfo/Application.php",
"line": 136,
"function": "registerNotifier",
"class": "OC\\Notification\\Manager",
"type": "->",
"args": [
{
"__class__": "Closure"
},
{
"__class__": "Closure"
}
]
},
{
"file": "/var/www/html/apps2/spreed/lib/AppInfo/Application.php",
"line": 99,
"function": "registerNotifier",
"class": "OCA\\Spreed\\AppInfo\\Application",
"type": "->",
"args": [
{
"__class__": "OC\\Server"
}
]
},
{
"file": "/var/www/html/apps2/spreed/appinfo/app.php",
"line": 24,
"function": "register",
{
"reqId": "H90SnKlyMmWFtO2itxYU",
"level": 3,
"time": "2019-07-28T08:16:57+00:00",
"remoteAddr": "172.21.0.1",
"user": "Test1",
"app": "no app in context",
"method": "GET",
"url": "/ocs/v2.php/apps/spreed/api/v1/room",
"message": {
"Exception": "InvalidArgumentException",
"Message": "Notifier Talk (id: spreed) is not considered because it is using the old way to register.",
"Code": 0,
"Trace": [
{
"file": "/var/www/html/apps2/spreed/lib/AppInfo/Application.php",
"line": 136,
"function": "registerNotifier",
"class": "OC\\Notification\\Manager",
"type": "->",
"args": [
{
"__class__": "Closure"
},
{
"__class__": "Closure"
}
]
},
{
"file": "/var/www/html/apps2/spreed/lib/AppInfo/Application.php",
"line": 99,
"function": "registerNotifier",
"class": "OCA\\Spreed\\AppInfo\\Application",
"type": "->",
"args": [
{
"__class__": "OC\\Server"
}
]
},
{
"file": "/var/www/html/apps2/spreed/appinfo/app.php",
"line": 24,
"function": "register",
"class": "OCA\\Spreed\\AppInfo\\Application",
"type": "->",
"args": []
},
{
"file": "/var/www/html/lib/private/legacy/app.php",
"line": 262,
"args": [
"/var/www/html/apps2/spreed/appinfo/app.php"
],
"function": "require_once"
},
{
"file": "/var/www/html/lib/private/legacy/app.php",
"line": 155,
"function": "requireAppFile",
"class": "OC_App",
"type": "::",
"args": [
{
"__class__": "OCA\\Spreed\\AppInfo\\Application"
}
]
},
{
"file": "/var/www/html/lib/private/legacy/app.php",
"line": 128,
"function": "loadApp",
"class": "OC_App",
"type": "::",
"args": [
"spreed"
]
},
{
"file": "/var/www/html/ocs/v1.php",
"line": 56,
"function": "loadApps",
"class": "OC_App",
"type": "::",
"args": []
},
{
"file": "/var/www/html/ocs/v2.php",
"line": 24,
"args": [
"/var/www/html/ocs/v1.php"
],
"function": "require_once"
}
],
"File": "/var/www/html/lib/private/Notification/Manager.php",
"Line": 86,
"CustomMessage": "--"
},
"userAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36",
"version": "17.0.0.1"
} "class": "OCA\\Spreed\\AppInfo\\Application",
"type": "->",
"args": []
},
{
"file": "/var/www/html/lib/private/legacy/app.php",
"line": 262,
"args": [
"/var/www/html/apps2/spreed/appinfo/app.php"
],
"function": "require_once"
},
{
"file": "/var/www/html/lib/private/legacy/app.php",
"line": 155,
"function": "requireAppFile",
"class": "OC_App",
"type": "::",
"args": [
{
"__class__": "OCA\\Spreed\\AppInfo\\Application"
}
]
},
{
"file": "/var/www/html/lib/private/legacy/app.php",
"line": 128,
"function": "loadApp",
"class": "OC_App",
"type": "::",
"args": [
"spreed"
]
},
{
"file": "/var/www/html/ocs/v1.php",
"line": 56,
"function": "loadApps",
"class": "OC_App",
"type": "::",
"args": []
},
{
"file": "/var/www/html/ocs/v2.php",
"line": 24,
"args": [
"/var/www/html/ocs/v1.php"
],
"function": "require_once"
}
],
"File": "/var/www/html/lib/private/Notification/Manager.php",
"Line": 86,
"CustomMessage": "--"
},
"userAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36",
"version": "17.0.0.1"
} |
nickvergessen
commented
Jul 28, 2019
This has been discussed in length above and in the linked issues. |
nickvergessen
commented
Jul 28, 2019
But then again, the exception is only logged, not thrown and it should therefor also not fail somewhere resulting in such pages. |
skjnldsv
commented
Jul 28, 2019
@nickvergessen yes, you're right! Nonetheless, I think we should respect the deprecation process we have as much as we can :) Nice work though! Much cleaner code! |
MorrisJobke
commented
Jul 29, 2019
@skjnldsv It's years and not releases. We are waiting 3 years until deprecated stuff is removed. |

Fixnextcloud/desktop#8697