Skip to content
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

remove reminders from read-only shared calendars #6903

Conversation

georgehrke
Copy link
Member

fixes #679

Signed-off-by: Georg Ehrke <developer@georgehrke.com>
@codecov
Copy link

codecov bot commented Oct 22, 2017

Codecov Report

Merging #6903 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@             Coverage Diff              @@
##             master    #6903      +/-   ##
============================================
+ Coverage     52.84%   52.84%   +<.01%     
- Complexity    22816    22817       +1     
============================================
  Files          1441     1441              
  Lines         88555    88563       +8     
  Branches       1349     1349              
============================================
+ Hits          46798    46805       +7     
- Misses        41757    41758       +1
Impacted Files Coverage Δ Complexity Δ
apps/dav/lib/CalDAV/CalendarObject.php 90.69% <100%> (+2.12%) 20 <14> (+1) ⬆️
lib/private/Files/Cache/Propagator.php 94.93% <0%> (-1.27%) 16% <0%> (ø)

Copy link
Member

@tcitworld tcitworld left a comment

Choose a reason for hiding this comment

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

As a temporary fix for #679 this looks good, but what you said

calendarobjects_per_user table to store custom custom alarms and transparency settings on a per sharee basis

should be implemented instead, as I'm finding useful to have reminders from calendars shared with me as read-only.

@nickvergessen
Copy link
Member

should be implemented instead, as I'm finding useful to have reminders from calendars shared with me as read-only.

While I agree in general, I'd say lets fix the 99% usecase first ;)
So fine by me :)

@tobiasKaminsky
Copy link
Member

Great :-)
Thank you, I am really looking forward to use this 👍

@nickvergessen nickvergessen merged commit 8ce5adc into master Oct 31, 2017
@nickvergessen nickvergessen deleted the feature/679/remove_valarms_from_read_only_shared_calendars branch October 31, 2017 08:50
@nursoda
Copy link

nursoda commented Dec 13, 2017

Why is this commit not contained in 12.0.4?

@georgehrke
Copy link
Member Author

Because we didn't backport it.
it's gonna be part of Nextcloud 13

@nursoda
Copy link

nursoda commented Dec 19, 2017

I'm on 13b3 now but I still get alarms for calendars I have no write access to. Am I missing something?

@georgehrke
Copy link
Member Author

@nursoda Can you please open a bug report with detailed reproduction steps?

@georgehrke
Copy link
Member Author

(If you are using a sync client (and not web interface), it's possible that the alarms are still cached in the calendar data on your client side. Can you try removing the account in your sync client and add it again please)

@nursoda
Copy link

nursoda commented Dec 19, 2017

You are right: After I deleted my DAVdroid account, re-added it and re-synced, old calendar entries with alarms in other user's calendars that are shared to me read-only no longer have an alert for me. Sorry I did not realize myself that caching may be the cause. And thanks for your swift answer!

Sidenote: I'm using DAVdroid and BusinessCalendar2. It's a PITA to delete and re-add an account since all BC settings (grouping, colors, reminder tones etc. must be re-set manually). Isn't there an easier way to flush its cache in DAVdroid? Not a nextcloud issue, though.

@CNeutron
Copy link

CNeutron commented Feb 7, 2018

I just updated to 13, but Birthday Contacts still have reminders (directly in the webinterface, and on all my clients)
I deleted my birthday calendar, and did the "occ dav:sync-birthday-calendar username", but still have reminders

@georgehrke
Copy link
Member Author

@CNeutron Yes, birthday contacts is your calendar, not a shared one.

@CNeutron
Copy link

CNeutron commented Feb 7, 2018

Well I thought as it is a read only calendar, the reminders would stop waking me up at night. Also kinda because nursoda comments pointed in that direction

@nursoda
Copy link

nursoda commented Feb 7, 2018

As @georgehrke wrote, in bug #1505 wich deals with that enhancement, it's not implemented yet. THIS bug is solved for me (99%, see @nickvergessen's 1st comment above). Thus, should it remain open?

@georgehrke
Copy link
Member Author

@nursoda Should what remain open? #1505 is about birthday calendars, which still contain alarms.

@nursoda
Copy link

nursoda commented Feb 8, 2018

Clearification:
1505 IS open, and that's correct (not implemented yet.
6903 (THIS bug) is "merged". Should it be "closed"?

@georgehrke
Copy link
Member Author

Should it be "closed"?

No, we can't close it, because this is not an issue but a pull-request.
While issues only have two states ("Open" / "Closed"), pull-requests have an additional state "Merged".

  • "Open" - the pull request is still in development / in review
  • "Merged" - Changes were merged into Nextcloud and will be part of an upcoming release
  • "Closed" - Changes were not merged into Nextcloud and won't be part of an upcoming release

So if you want to take changes from a pull-request into Nextcloud, you merge them, if you don't want to take the changes, you simply close the pull-request.

The corresponding issue requesting this feature was automatically closed when merging this pull-request: #679

If you want to learn more details about pull-requests I recommend https://help.github.com/articles/about-pull-requests/

:)

@nursoda
Copy link

nursoda commented Feb 11, 2018

Thank you for your very easy yet comprehensive answer.
And sorry for my laziness not to have looked this up myself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Calendar: Remove valarms from objects in read-only shared calendars
6 participants