fix: adding circles to events (#6023)#8008
Conversation
Signed-off-by: MrAn0nym <63542658+MrAn0nym@users.noreply.github.com>
|
Didn't manage to look into how one would write tests yet and I believe |
|
Hi @MrAn0nym Thank you for the PR. FYI, you might want to wait a couple weeks for this, as there are some pending changes that will be applied to the contacts controller which might effect your work. |
|
Hello there, We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process. Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6 Thank you for contributing to Nextcloud and we hope to hear from you soon! (If you believe you should not receive this message, you can add yourself to the blocklist.) |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
ContactController::getCircleMembers is used to fetch all members of a circle, when adding that circle to an event.
Currently the function assumes members to be a nextcloud user:
calendar/lib/Controller/ContactController.php
Lines 227 to 229 in 04e8e49
This results in empty return values, which in turn causes an error and results in no member of the circle being added
calendar/lib/Controller/ContactController.php
Lines 231 to 233 in 0a0dc23
The PR changes the code to handle all types separately. Whilst this is not perfect and problems like federation or auto-updating memberlists are not solved by this it at least provides a short term fix for #6023 #6485 and one aspect of nextcloud/circles#1690 if I'm not mistaken.