-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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 array|false | ||
| */ | ||
| protected function tryOCMEndPoint($remoteDomain, $token, $remoteId, $feedback) { | ||
| protected function tryOCMEndPoint(string $remoteDomain, string $token, string $remoteId, string $feedback) { |
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.
missing return type
| 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 😭
7a461a8 to
d61da55
Compare
d61da55 to
4ff702f
Compare
4ff702f to
0a8012b
Compare
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
- Port away from Files::buildNotExistingFileName - Use IUser and IGroup instead of plain string Signed-off-by: Carl Schwan <[email protected]>
Move the functionality in the last place it is used OC\Files\Node\Folder Signed-off-by: Carl Schwan <[email protected]>
Signed-off-by: Carl Schwan <[email protected]>
This might fixes the test. Signed-off-by: Carl Schwan <[email protected]>
Signed-off-by: Carl Schwan <[email protected]>
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 <[email protected]>
Signed-off-by: Carl Schwan <[email protected]>
71bf292 to
0312cee
Compare
0312cee to
d6852c9
Compare
Summary
TODO
Checklist
3. to review, feature component)stable32)