-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
perf(external-share): Port to Entity and use snowflake Ids #55369
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
base: master
Are you sure you want to change the base?
Conversation
c3a408f to
0c9834a
Compare
0c9834a to
4b5ed3f
Compare
4b5ed3f to
853ea64
Compare
|
According to integation tests you broke federated shares @CarlSchwan |
04fd1d0 to
05935e0
Compare
apps/federatedfilesharing/lib/OCM/CloudFederationProviderFiles.php
Outdated
Show resolved
Hide resolved
c1e8ffc to
46c8632
Compare
| return $this->cloudFederationProviderManager->sendNotification($remoteDomain, $notification); | ||
| try { | ||
| $response = $this->cloudFederationProviderManager->sendCloudNotification($remoteDomain, $notification); | ||
| } catch (OCMProviderException) { |
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.
maybe add this catch block around the switch and have it return false directly instead of relying on the $response staying null bahavior.
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.
reverted the whole part, since I suspect this is breaking the integration test
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.
still failing 😭
e9a5835 to
86518ae
Compare
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.
These changes will break the clients
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.
I don't really see a way around that. Using an int will fails as JSON doesn't support such big numbers, particularly on 32bits machine
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.
It can already fail on 32 bit systems as we are using BIGINT as unique keys. PHP is using signed int so on 32 bit the maximum is 2^31.
The difference is now even "small" instances will have large IDs. On 32 bits servers, we know PHP fail to keep the right value with float(lose precision) and int (truncate).
I don't know if OpenAPI offers a way to represent large numbers, even for 32 bit systems.
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.
Either way, this change is not allowed 🤷♀️
ac27b7e to
71bf292
Compare
1024558 to
0494e0b
Compare
689a67c to
62e4f97
Compare
3514ae7 to
80fe6ea
Compare
- Port away from Files::buildNotExistingFileName - Use IUser and IGroup instead of plain string Signed-off-by: Carl Schwan <carl.schwan@nextcloud.com>
Move the functionality in the last place it is used OC\Files\Node\Folder Signed-off-by: Carl Schwan <carl.schwan@nextcloud.com>
Signed-off-by: Carl Schwan <carl.schwan@nextcloud.com>
This might fixes the test. Signed-off-by: Carl Schwan <carl.schwan@nextcloud.com>
Signed-off-by: Carl Schwan <carl.schwan@nextcloud.com>
This removes all the read after write and we don't need to queries all the time the same share in the same request anymore. Signed-off-by: Carl Schwan <carl.schwan@nextcloud.com> Signed-off-by: Carl Schwan <carl.schwan@nextcloud.com>
Signed-off-by: Carl Schwan <carl.schwan@nextcloud.com>
Signed-off-by: Carl Schwan <carl.schwan@nextcloud.com>
80fe6ea to
1919d60
Compare
Signed-off-by: Carl Schwan <carl.schwan@nextcloud.com>
1919d60 to
f2d3b2e
Compare
Summary
TODO
Checklist
3. to review, feature component)stable32)