nextcloud / nextcloud/calendar

Add possibility to restore unshared team calendars

Open
#7,518 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0. to triage enhancement
Dominant language
JavaScript
Stars
1.2k
Forks
332
Avg merge
16h 13m
Merged PRs (30d)
137

Description

Is your feature request related to a problem? Please describe.

If someone deletes a team calendar, there is no easy way to restore access.

Describe the solution you'd like

Show "UNSHARED" team calenders in the trashbin of the calender with a restore button to delete the "UNSHARED" entry.

Describe alternatives you've considered

Leaving and re-joining the team will not work. Only solution is creating a personal share as calendar owner for the same calendar/person, which overwrites the "unshared" entry, deleting it will restore the team calendar.

Additional context

Unsharing creates a line in dav_shares table with access=UNSHARED (5) and the personal principaluri in addition to the line of the principaluri of the circle. Listing these entries in the trashbin with a button to delete it is maybe a good idea.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how the calendar trashbin lists entries and how the dav_shares table represents access=UNSHARED (5) for personal and circle principals. Check how the restore button should remove the UNSHARED entry, then verify that access to the team calendar returns without requiring a personal share.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
backend, database, frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.