-
Notifications
You must be signed in to change notification settings - Fork 279
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
Transfer ownership #1955
Transfer ownership #1955
Conversation
Signed-off-by: Sergey Shliakhov <husband.sergey@gmail.com>
Signed-off-by: Sergey Shliakhov <husband.sergey@gmail.com>
Before add tests I would like to have small feedback about the command. |
Can you please also update the REST API documentation so 3rd party clients can implement this new feature? 🙂 |
Thanks a lot for looking into this. ❤️
Sure, I agree that an integration test makes the most sense here. |
It's an |
Oh - uhm... Basically to gain feature parity we would need a REST endpoint additionally then? Should i open a new issue then? How does the vue app trigger an owner change? Doesn't it has to call some kind of REST endpoint, too? Or am i completely wrong here? |
I believe this feature mostly for admins and they have access to occ commands. And if we want REST endpoint for the feature I think is better to open a new issue for it(for me smaller tasks always better) |
Signed-off-by: Sergey Shliakhov <husband.sergey@gmail.com>
2990d80
to
4daa051
Compare
Signed-off-by: Sergey Shliakhov <husband.sergey@gmail.com>
4daa051
to
d8ceb8c
Compare
Ready for review again) There is one issue. If user already participant of some card or in acl then command will stop with error unique constrain violation. Do you think this could be a new task(issue), because this implementation already has an value? |
Signed-off-by: Sergey Shliakhov <husband.sergey@gmail.com>
Sorry for taking so long to review.
I'd love to get this addressed before merge, since that is probably a common use case that the ownership is transferred to a user that is already part of the board. I'm not sure if there is an easy solution without manually iterating over the entries and update them one by one. MySQL would support an |
The code in general looks good to me 👍 |
|
The BoardServiceTest needs to be adjusted to the additional constructor parameter |
…board nextcloud#1955 (comment) Signed-off-by: Sergey Shliakhov <husband.sergey@gmail.com>
53600cf
to
0b85ccc
Compare
I'm not sure I understand you. What do you mean? |
@juliushaertl There is failed check https://drone.nextcloud.com/nextcloud/deck/4233/2/2 |
…board #1955 (comment) Signed-off-by: Sergey Shliakhov <husband.sergey@gmail.com>
Sorry for the delay, unfortunately I totally missed your message. I've rebased and pushed it to a branch of this repo which makes collaborating on the branch a bit easier #2496 Since you are a member of the nextcloud organization you should also have push access to that. |
…board #1955 (comment) Signed-off-by: Sergey Shliakhov <husband.sergey@gmail.com>
…board #1955 (comment) Signed-off-by: Sergey Shliakhov <husband.sergey@gmail.com>
…board #1955 (comment) Signed-off-by: Sergey Shliakhov <husband.sergey@gmail.com>
…board #1955 (comment) Signed-off-by: Sergey Shliakhov <husband.sergey@gmail.com>
…board #1955 (comment) Signed-off-by: Sergey Shliakhov <husband.sergey@gmail.com>
…board #1955 (comment) Signed-off-by: Sergey Shliakhov <husband.sergey@gmail.com>
Summary
Add
deck:transfer-ownership
commandTODO
Checklist