Skip to content

[stable22] Extend pending shares list in frontend to include remote shares - #28209

Merged
skjnldsv merged 14 commits into
stable22from
backport/27751/stable22
Aug 19, 2021
Merged

[stable22] Extend pending shares list in frontend to include remote shares#28209
skjnldsv merged 14 commits into
stable22from
backport/27751/stable22

Conversation

@backportbot-nextcloud

@backportbot-nextcloudbackportbot-nextcloudBot commented Jul 28, 2021

Copy link
Copy Markdown

⚠️ This backport had conflicts and is incomplete ⚠️

backport of #27751

@PVince81

Copy link
Copy Markdown
Member

conflict solved, but I need to retest many things and it's currently not working. likely the routing thing

@PVince81
PVince81force-pushed the backport/27751/stable22 branch from 091881e to 9636ac9CompareJuly 28, 2021 12:32
@PVince81

Copy link
Copy Markdown
Member

fixed

@PVince81

Copy link
Copy Markdown
Member

@artonge@juliushaertl please review.

please note that I had to resolve conflicts and did a quick retest.
the conflicts were mainly related to:

  • the fact that nextcloud/router is older so needs different parameters
  • the ILogger vs LoggerInterface thing

@artonge

Copy link
Copy Markdown
Collaborator

/rebase

@artongeartonge left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@artonge

Copy link
Copy Markdown
Collaborator

/compile amend /

@PVince81
PVince81force-pushed the backport/27751/stable22 branch from 29a958a to c08d28eCompareJuly 29, 2021 12:05
@PVince81

Copy link
Copy Markdown
Member

I did this manually, seems there was some kind of clash

@PVince81

Copy link
Copy Markdown
Member

⚠️ don't merge this as we have code freeze and this is too huge for post-RC ⚠️

@skjnldsvskjnldsv added the 2. developing Work in progress label Jul 29, 2021

@skjnldsvskjnldsv left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Blocking for 22.1.1

@PVince81PVince81 added 4. to release Ready to be released and/or waiting for tests to finish and removed 2. developing Work in progress labels Aug 2, 2021
@juliusknorr

Copy link
Copy Markdown
Member

Needs another rebase 🙈

PVince81and others added 14 commits August 10, 2021 13:27
And adjust the accept/decline actions to use the right endpoint for
remote shares.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Fix pending shares endpoint to consider user-specific sub-entries
for group shares whenever a share was accepted or declined.
Added unit test for adding remote group shares.
Fixed "removeUserShares" to not send a remote request as we never send
remote requests for group shares.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
In the list of pending shares, the option for rejecting the share has
been removed.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Instead of just returning false, also log the exception to make
debugging database issues easier.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
When accepting a group share, a sub-share entry is created which also
has a different id.
When accepting or rejecting the sub-share, simply update the "accepted"
flag instead of trying to re-insert the entry.
Adjust getShare to also properly validate group share membership
when called on a sub-share id.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Only remove reject share for remote group shares
Also fix share indicator to appear for remote group shares as well.
Fix pending remote share icon to be the one of a share.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Accepting and declining can now be done repeatedly on both the parent
group share and sub-share with the same effects.
Added unit tests to cover these cases, and also when the same operation
is repeated.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Use query builder with proper matching for finding the group names.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
When declining a remote group share through the dialog that appears when
notifications are off, the mount point is now correctly saved when
re-accepting.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Co-authored-by: Carl Schwan <carl@carlschwan.eu>
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
When deleting a user, we should only delete the direct remote user
shares or the remote group based subshares.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
@PVince81
PVince81force-pushed the backport/27751/stable22 branch from c08d28e to f60ea8aCompareAugust 10, 2021 11:37
@PVince81

Copy link
Copy Markdown
Member

pumped up the (re)base

@skjnldsvskjnldsv mentioned this pull request Aug 19, 2021
7 tasks
@skjnldsv
skjnldsv merged commit e2a4dc8 into stable22Aug 19, 2021
@skjnldsv
skjnldsv deleted the backport/27751/stable22 branch August 19, 2021 12:46
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to releaseReady to be released and/or waiting for tests to finishenhancementfeature: federation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@PVince81@artonge@juliusknorr@skjnldsv@MichaIng