-
Notifications
You must be signed in to change notification settings - Fork 8
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
attendeeProperty: Add member function #627
Conversation
Are these changes correct? What would be missing? @miaulalala @tcitworld I wanted to test it on my local dev environment. I changed package.json of the calendar app to a local path: "@nextcloud/calendar-js": "file:/home/onny/projects/calendar-js". Now I get: Module not found: Error: Can't resolve '@nextcloud/calendar-js' in .... |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #627 +/- ##
==========================================
+ Coverage 91.01% 91.02% +0.01%
==========================================
Files 57 57
Lines 2782 2787 +5
Branches 507 508 +1
==========================================
+ Hits 2532 2537 +5
Misses 250 250
☔ View full report in Codecov by Sentry. |
Thanks for the PR Onny! @st3iny can you help with the js issue? |
I like to do |
As far as I can see it there can be multiple
Something like: this.getParameter('MEMBER').getValueIterator() // ...
this.getParameter('MEMBER').setValue([ /* values */]) // ... |
I amended the code a bit to make the parameter compatible with string arrays. I also added some more unit tests. We will do a release shortly to get your other PR in the calendar repo merged soon. Again, thanks a lot for your work :) |
This PR can't be merged probably because ICAL.js is broken 😢 |
Idea and original code by Jonas Heinrich (@onny). Signed-off-by: Richard Steinmetz <[email protected]>
After some more investigation, it seems that the mentioned bug is an edge case. In real ics files attendees will have more parameters than just |
Adding the possibility to read and set the MEMBER attribute as described in https://www.rfc-editor.org/rfc/rfc5545#section-3.2.11
Not sure yet how to deal with:Sanity check if MEMBER field existsWould like to use this field in #627