-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Notifications overhaul #15040
Notifications overhaul #15040
Conversation
0d70f8a
to
0d2573c
Compare
0d2573c
to
24a5493
Compare
Signed-off-by: Joas Schilling <[email protected]>
Signed-off-by: Joas Schilling <[email protected]>
Signed-off-by: Joas Schilling <[email protected]>
Signed-off-by: Joas Schilling <[email protected]>
Signed-off-by: Joas Schilling <[email protected]>
Signed-off-by: Joas Schilling <[email protected]>
Signed-off-by: Joas Schilling <[email protected]>
Signed-off-by: Joas Schilling <[email protected]>
Signed-off-by: Joas Schilling <[email protected]>
24a5493
to
55f5bc7
Compare
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 <[email protected]>
Signed-off-by: Joas Schilling <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Beside my little nitpick the code change looks good 👍
Signed-off-by: Joas Schilling <[email protected]>
Tested and works 👍 |
Created an issue on all repos and emailed the one where I couldn't due to permissions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changes look good
@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"
} |
This has been discussed in length above and in the linked issues. |
But then again, the exception is only logged, not thrown and it should therefor also not fail somewhere resulting in such pages. |
@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! |
@skjnldsv It's years and not releases. We are waiting 3 years until deprecated stuff is removed. |
Fix #13980