Skip to content

Conversation

@backportbot-nextcloud
Copy link

@backportbot-nextcloud backportbot-nextcloud bot commented Jul 28, 2021

⚠️ This backport had conflicts and is incomplete ⚠️

backport of #27751

@PVince81
Copy link
Member

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

@PVince81 PVince81 force-pushed the backport/27751/stable22 branch from 091881e to 9636ac9 Compare July 28, 2021 12:32
@PVince81
Copy link
Member

fixed

@PVince81
Copy link
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
Contributor

artonge commented Jul 29, 2021

/rebase

Copy link
Contributor

@artonge artonge left a comment

Choose a reason for hiding this comment

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

LGTM

@nextcloud-command nextcloud-command force-pushed the backport/27751/stable22 branch from 3600526 to 29a958a Compare July 29, 2021 09:09
@artonge
Copy link
Contributor

artonge commented Jul 29, 2021

/compile amend /

@PVince81 PVince81 force-pushed the backport/27751/stable22 branch from 29a958a to c08d28e Compare July 29, 2021 12:05
@PVince81
Copy link
Member

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

@PVince81
Copy link
Member

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

@skjnldsv skjnldsv added the 2. developing Work in progress label Jul 29, 2021
Copy link
Member

@skjnldsv skjnldsv left a comment

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

@PVince81 PVince81 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
Member

Needs another rebase 🙈

PVince81 and 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 <[email protected]>
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 <[email protected]>
In the list of pending shares, the option for rejecting the share has
been removed.

Signed-off-by: Vincent Petry <[email protected]>
Instead of just returning false, also log the exception to make
debugging database issues easier.

Signed-off-by: Vincent Petry <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
Use query builder with proper matching for finding the group names.

Signed-off-by: Vincent Petry <[email protected]>
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 <[email protected]>
When deleting a user, we should only delete the direct remote user
shares or the remote group based subshares.

Signed-off-by: Vincent Petry <[email protected]>
@PVince81 PVince81 force-pushed the backport/27751/stable22 branch from c08d28e to f60ea8a Compare August 10, 2021 11:37
@PVince81
Copy link
Member

pumped up the (re)base

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

Labels

4. to release Ready to be released and/or waiting for tests to finish enhancement feature: federation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants