-
-
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
Revert interface changes from "store unencrypted size in the unencrypted_size column" #32943
Conversation
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.
👍
now this will break all the app I changed a few days ago. For files_lock the solution was nextcloud/files_lock#77 |
The casts to string will still work, it will just be a noop |
do we still need this or do we keep this change for 25 at least ? |
Please check #33484 for a regression introduced in this pull request (second item in the list, storage stats size after deleting the last file in a folder is wrong). |
9e104da
to
b3d6728
Compare
@danxuliu thanks for making the test, regression should be fixed now |
e09a3c6
to
2813e5e
Compare
This reverts commit 813b50e. Signed-off-by: Robin Appelman <[email protected]>
This reverts commit 2a68819. Signed-off-by: Robin Appelman <[email protected]>
This reverts commit 8238582. Signed-off-by: Robin Appelman <[email protected]>
2813e5e
to
a4cbb16
Compare
Signed-off-by: Robin Appelman <[email protected]>
Signed-off-by: Robin Appelman <[email protected]>
a4cbb16
to
de63f63
Compare
I have run the integration tests again rebased on the latest commit and that issue is indeed fixed. Thanks! |
Imo it still makes sense to merge this to prevent needless churn for apps |
@icewind1991 I'm worried that apps might have already adjusted by now, especially if the interface change was already released recently or was it not ? |
24 doesn't have the interface change. For apps that added casts like nextcloud/files_lock#77, it will still work with this PR applied, only if apps extended the querybuilder and overwrote existing method should they need to adjust for this PR |
This breaks master, {
"reqId": "r9OmEUeVynCcFsLI8Lvu",
"level": 3,
"time": "2022-08-17T13:37:17+00:00",
"remoteAddr": "172.18.0.1",
"user": "admin",
"app": "PHP",
"method": "GET",
"url": "/ocs/v2.php/apps/notifications/api/v2/notifications",
"message": "Declaration of OC\\DB\\QueryBuilder\\ExpressionBuilder\\ExpressionBuilder::comparison($x, string $operator, $y, $type = null): string must be compatible with OCP\\DB\\QueryBuilder\\IExpressionBuilder::comparison($x, string $operator, $y, $type = null): OCP\\DB\\QueryBuilder\\IQueryFunction at /var/www/nextcloud/lib/private/DB/QueryBuilder/ExpressionBuilder/ExpressionBuilder.php#119",
"userAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36",
"version": "25.0.0.5",
"data": {
"app": "PHP"
}
} |
Hum, weird, they look identical! 🤔 |
This reverts #31966 and uses the changes from #32708 instead which removes the significant interface changes at the cost of a "less nice" solution.