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

Exclude Contacts from Birthday-Calendar #2464

Closed
newhinton opened this issue Oct 9, 2021 · 6 comments · Fixed by nextcloud/server#34388 or #3009
Closed

Exclude Contacts from Birthday-Calendar #2464

newhinton opened this issue Oct 9, 2021 · 6 comments · Fixed by nextcloud/server#34388 or #3009
Labels
0. Needs triage enhancement New feature or request

Comments

@newhinton
Copy link

Is your feature request related to a problem? Please describe.
Sometimes there are contacts that do have birthdays saved, but a user might not care about them in their calendar. (Old Friends, Coworkers, etc)

Describe the solution you'd like
I'd like the ability to exclude them from the automatic generation of the birthday-calendar, without having to delete the actual birthday from the contact. There is already a three-dot menu in the ui, it could be added there as a simple button.

@newhinton newhinton added enhancement New feature or request 0. Needs triage labels Oct 9, 2021
@sylvainmetayer
Copy link
Contributor

Hi, I'd like to work on this feature.

From what I've seen, we need to add a button to exclude/include the contact into the birthday calendar in the three-dot ui as you mentioned, and we need to handle the inclusion/exclusion in the BirthdayService (https://github.com/nextcloud/server/blob/master/apps/dav/lib/CalDAV/BirthdayService.php).

My question is do we need to add a new property "exclude_from_birthday_calendar" to the vcard data or is there another way to handle this ?

@miaulalala
Copy link
Contributor

@sylvainmetayer you can add a custom property formatted like X-NC-YOUR-PROPERTY-NAME. You could then modify the cardData on saving via the exclude button to add this property, and then look for this property before returning.

If you want to get stuck in, tag me and I'll look over your PR.

If you get stuck or want to stay in touch, you can join us on on the Developer Chat - send me an email at [email protected] and I'll organize one for you 😊

@sylvainmetayer
Copy link
Contributor

Thanks @miaulalala for the help !

I've pushed the 2 PR as drafts for now.

For the server side, their is not much more to do, I just need to see how to write the test for this one.

For the contacts side, I'm not sure I did this right and I need to write tests before submitting this one.

@sylvainmetayer
Copy link
Contributor

It seems this issue has been closed however the contacts PR is still open. Should we reopen it until it is merged?

@st3iny st3iny reopened this Oct 7, 2022
@simsonfahrer
Copy link

Hi there,
would it be possible to allow the same feature for multiple contacts at once?
For example, selecting all contacts of one group, or just select multiple contacts and then check those to exclude from birthday calendar?
For touching every single contact I would need hours...
Thanks and Regards

@st3iny
Copy link
Member

st3iny commented Jun 11, 2024

@simsonfahrer No, that is not possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage enhancement New feature or request
Projects
None yet
6 participants