feat: Add the possibility to create invitation links to circles - #2254
Conversation
8301408 to
a89bf72
Compare
baffcc3 to
af15456
Compare
af15456 to
018eea9
Compare
018eea9 to
08b6110
Compare
213cfc1 to
b01cd7a
Compare
| $initiatorHelper = new MemberHelper($circle->getInitiator()); | ||
| $initiatorHelper->mustBeAdmin(); | ||
|
|
||
| $new = clone $circle; |
There was a problem hiding this comment.
Why is it needed to clone the circle object?
There was a problem hiding this comment.
I've just inspired from already existent verify method implementations:
circles/lib/FederatedItems/CircleConfig.php
Line 128 in 6c37964
- ...
| * | ||
| * @throws InvalidIdException | ||
| */ | ||
| public function replace(CircleInvitation $circleInvitation): void { |
There was a problem hiding this comment.
Could there be multiple invitation per circle? If so, shouldn't we delete a specific invitation, and not all of them?
There was a problem hiding this comment.
not now. In theory we can add that, but in this case we need rework UI and introduce something like "invitation link name" to distinguish links.
I would like to start with something really simple and improve it later
bac0d4e to
524ff22
Compare
524ff22 to
63d11c0
Compare
c1227d7 to
ab2ab91
Compare
ab2ab91 to
644c2ea
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
5d77d17 to
d8e7f2a
Compare
|
@artonge @cristianscheid mates, I've resolved/responded to all of your comments. Also this PR contains FE part as well (as we've moving UI for teams management to the Circles module). Please check one more time. Also I have no idea how to build js to pass corresponding pipeline step, please help here ( |
2936a42 to
ea4ec9f
Compare
|
/compile |
miaulalala
left a comment
There was a problem hiding this comment.
LGTM, some tests would be welcome but not a blocker for me
|
@miaulalala thanx, Anna! I thought about tests, but:
I'm completely fine to return to that topic and cover new endpoints with Behat tests once we have initial infrastructure for that (like in other modules like Forms/Tables/etc) |
AIlkiv
left a comment
There was a problem hiding this comment.
I did a review — it looks very good.
Signed-off-by: Kostiantyn Miakshyn <molodchick@gmail.com>
Signed-off-by: Kostiantyn Miakshyn <molodchick@gmail.com>
935122b to
e779a6b
Compare
|
/compile |
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
This PR adds possibility to generate invitation link (even for completely hidden/closed Circles). Any user is able to join to the circle by opening this link.
🖼️ Screenshots
Dependencies
has to be merged before feat: Create invitation links for join to team contacts#4887not mandatory anymore as we have FE in same module now