Skip to content

Include CalDAV sync state and synced calendars in settings export #1229

Description

@davidhedlund

Checklist

  • I made sure that there are no existing issues - open or closed - to which I could contribute my information.
  • I made sure that there are no existing discussions - open or closed - to which I could contribute my information.
  • I have read the FAQs inside the app (Menu -> About -> FAQs) and my problem isn't listed.
  • I have taken the time to fill in all the required details. I understand that the request will be dismissed otherwise.
  • This issue contains only one feature request.
  • I have read and understood the contribution guidelines.

Feature description

Description

When exporting application settings via Settings → Export settings, the configurations related to CalDAV synchronization (specifically "CalDAV sync" and "Synced calendars") are omitted from the exported file. Consequently, users are forced to manually run these sync options.

Steps to Reproduce

  1. Isolate default settings:
  • Reset and restart the app.
  • Go to Settings → Export settings and save the file as calendar-settings.txt.
  1. Configure CalDAV settings:
  • Install ICSx5 and subscribe to a calendar (e.g., x.ics).
  • Go to Settings and turn "CalDAV sync" to On.
  • In the resulting dialog pop-up, check the box for x.ics and confirm. (Verifying that x.ics now appears under Manage synced calendars).
  • Turn "Enable pull-to-refresh from top" to On (used as a control variable).
  1. Export modified settings:
  • Go to Settings → Export settings and save the file as calendar-settings-caldav.txt.
  1. Compare the exports:
$ diff calendar-settings.txt calendar-settings_caldav.txt
35c35
< pull_to_refresh=false
---
> pull_to_refresh=true

Expected Behavior

The exported settings file should capture the complete state of the application's preferences, including the CalDAV toggles and selected calendar streams.

Actual Behavior

Only standard UI preferences (like pull_to_refresh) are captured. The CalDAV configurations are entirely missing from the export.


Feature Request

Please extend the Export settings functionality to include the following CalDAV configurations:

  • CalDAV sync (On/Off state)
  • Synced calendars (The list of selected/managed calendar links)

Why do you want this feature?

  • Seamless Backups and Restores: Currently, if a user needs to reinstall the app, clear their data, or move to a new device, they have to manually re-configure their CalDAV subscriptions and settings. Including these in the export ensures a true "one-click" restore experience.
  • Consistent Multi-Device Setup: For users managing the app across multiple devices (e.g., a phone and a tablet), being able to export and import the exact CalDAV configuration saves time and prevents manual setup errors.
  • Improved User Experience (UX): When a user triggers an "Export settings" action, the reasonable expectation is that all app configurations are saved. Leaving out CalDAV settings can lead to unexpected data loss or confusion when a user relies on a backup that turns out to be incomplete.

Additional information

Fossify Calendar version: 1.10.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssue is about a new feature or improving existing feature/behavior.needs triageIssue is not yet ready for PR authors to take up

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions