Notifications for remote shares#22253
Conversation
|
By analyzing the blame information on this pull request, we identified @schiesbn, @rullzer and @icewind1991 to be potential reviewers |
There was a problem hiding this comment.
you could put that in an else block (optional)
|
Code looks good, as discussed, saw it working on your screen 👍 |
|
Works! |
|
Related Oracle fail: |
|
Could it be the lastInsertId https://github.com/owncloud/core/pull/22253/files#diff-095b5f4e7ee9665a242886c86670b4b8R84 ? Oracle is known to dislike those... |
There was a problem hiding this comment.
might be possible to get the share item from the shared storage, I see that addShare returns a IMountPoint instance:
$mount->getStorage()->getShare()['id'] (I didn't test, just guessed from the code)
There was a problem hiding this comment.
External shares don't have that. I believe we just mount them as 'true' webdav mounts. @schiesbn
There was a problem hiding this comment.
Couldn't we just add getShareId to the ISharedStorge interface? The data is there when we construct the storage..
There was a problem hiding this comment.
aaah no because we first insert it temp... mmm stupid oci...
There was a problem hiding this comment.
@rullzer ISharedStorage already has getShare() which returns the old-school share array that has the id in it
There was a problem hiding this comment.
https://github.com/owncloud/core/blob/master/apps/files_sharing/lib/isharedstorage.php <-- well that is empty ;)
But the thing is that we don't get a mountpoint on the original insert. So there is no way to get an id from it...
There was a problem hiding this comment.
Why would it be empty ? Does it mean it's a special case where no notification should be created ?
Or is it only that unit test that is weird ? (it creates a share with null, is that even a thing ?)
There was a problem hiding this comment.
Woops, the table name should not be quoted in lastInsertId, I guess that will solve it.
There was a problem hiding this comment.
It's null, when we don't mount the remote share now. This is when someone inserts a cloudId in the share sidebar.
In this case there needs to be a "accept please" message, which is exactly the case which we want.
But all good with my fix I think
cf13477 to
7b40bf1
Compare
|
Wrong time for this joke oracle: repushing |
…erly" This reverts commit 6bc93c7. Conflicts: apps/files_sharing/lib/external/manager.php
7b40bf1 to
fa89376
Compare
|
postgres failure is the known hick up where the "md5" is unequal to the string object "md5" |
|
👍 |
Notifications for remote shares
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Functionally only visible with owncloud/notifications#62
Fix #19587
@rullzer @PVince81 please review