Skip to content

Conversation

@raimund-schluessler
Copy link
Member

This PR implements sharing with a circle.

Closes #169.

@codecov
Copy link

codecov bot commented Apr 30, 2020

Codecov Report

Merging #995 into master will decrease coverage by 0.30%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master     #995      +/-   ##
==========================================
- Coverage   24.88%   24.58%   -0.31%     
==========================================
  Files          48       48              
  Lines        2479     2510      +31     
  Branches      471      480       +9     
==========================================
  Hits          617      617              
- Misses       1722     1752      +30     
- Partials      140      141       +1     

Comment on lines +221 to +233
if (results.data.ocs.meta.status === 'failure') {
return []
}
let circles = []
if (Array.isArray(results.data.ocs.data.circles)) {
circles = circles.concat(results.data.ocs.data.circles)
}
if (Array.isArray(results.data.ocs.data.exact.circles)) {
circles = circles.concat(results.data.ocs.data.exact.circles)
}
if (circles.length === 0) {
return []
}
Copy link
Member

Choose a reason for hiding this comment

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

We really need an api for this....

Copy link
Member Author

Choose a reason for hiding this comment

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

Hm, it's a bit messy and also leads to errors, see nextcloud/calendar#2220.
But that's how it is for now.

Signed-off-by: Raimund Schlüßler <[email protected]>
@raimund-schluessler raimund-schluessler merged commit a3111e7 into master Apr 30, 2020
@delete-merged-branch delete-merged-branch bot deleted the feature/169/circles branch April 30, 2020 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] Share a Task with a Circle -- Circles App Integration

4 participants