Skip to content

Notifications for remote shares - #22253

Merged
DeepDiver1975 merged 9 commits into
masterfrom
notifications-for-remote-shares
Feb 10, 2016
Merged

DeepDiver1975 merged 9 commits into
masterfrom
notifications-for-remote-shares

Conversation

@nickvergessen

Copy link
Copy Markdown
Contributor

Functionally only visible with owncloud/notifications#62

Fix #19587

@rullzer @PVince81 please review

@mention-bot

Copy link
Copy Markdown

By analyzing the blame information on this pull request, we identified @schiesbn, @rullzer and @icewind1991 to be potential reviewers

Comment thread apps/files_sharing/js/external.js Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you could put that in an else block (optional)

@PVince81

PVince81 commented Feb 9, 2016

Copy link
Copy Markdown
Contributor

Code looks good, as discussed, saw it working on your screen 👍

@rullzer

rullzer commented Feb 9, 2016

Copy link
Copy Markdown
Contributor

Works!
Code looks good. 👍

@PVince81

PVince81 commented Feb 9, 2016

Copy link
Copy Markdown
Contributor

Related Oracle fail:

11:55:26 1) Test_Files_Sharing_S2S_OCS_API::testCreateShare
11:55:26 Failed asserting that false is true.
11:55:26 
11:55:26 /ssd/jenkins/workspace/core-ci-linux/database/oci/label/SLAVE/apps/files_sharing/tests/server2server.php:112

@PVince81

PVince81 commented Feb 9, 2016

Copy link
Copy Markdown
Contributor

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its null here

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

External shares don't have that. I believe we just mount them as 'true' webdav mounts. @schiesbn

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couldn't we just add getShareId to the ISharedStorge interface? The data is there when we construct the storage..

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aaah no because we first insert it temp... mmm stupid oci...

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rullzer ISharedStorage already has getShare() which returns the old-school share array that has the id in it

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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...

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 ?)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Woops, the table name should not be quoted in lastInsertId, I guess that will solve it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@nickvergessen
nickvergessen force-pushed the notifications-for-remote-shares branch from cf13477 to 7b40bf1 Compare February 10, 2016 07:26
@nickvergessen

Copy link
Copy Markdown
Contributor Author

Wrong time for this joke oracle:

08:38:08 ownCloud is not installed - only a limited number of commands are available
08:38:09 Oracle connection could not be established
08:38:09  -> ORA-01017: invalid username/password; logon denied Check environment: ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server ORACLE_SID=XE LD_LIBRARY_PATH=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib: NLS_LANG=AMERICAN_AMERICA.AL32UTF8 tnsnames.ora is readable

repushing

@nickvergessen

Copy link
Copy Markdown
Contributor Author

postgres failure is the known hick up where the "md5" is unequal to the string object "md5"

@PVince81

Copy link
Copy Markdown
Contributor

👍

DeepDiver1975 added a commit that referenced this pull request Feb 10, 2016
@DeepDiver1975
DeepDiver1975 merged commit 9a2c517 into master Feb 10, 2016
@DeepDiver1975
DeepDiver1975 deleted the notifications-for-remote-shares branch February 10, 2016 09:06
@lock

lock Bot commented Aug 7, 2019

Copy link
Copy Markdown

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.

@lock lock Bot locked as resolved and limited conversation to collaborators Aug 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace existing remote share user interaction to interactive notifications

5 participants