Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat: add default reminder setting caldav#58679

Draft
GVodyanov wants to merge 1 commit intomasterfrom
feat/add-default-reminder-setting-caldav
Draft

feat: add default reminder setting caldav#58679
GVodyanov wants to merge 1 commit intomasterfrom
feat/add-default-reminder-setting-caldav

Conversation

@GVodyanov
Copy link
Contributor

@GVodyanov GVodyanov commented Mar 2, 2026

Needed for nextcloud/calendar#629

Related to nextcloud/calendar#8031 and nextcloud/cdav-library#995

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

'{http://apple.com/ns/ical/}calendar-color' => ['calendarcolor', 'string'],
'{' . \OCA\DAV\DAV\Sharing\Plugin::NS_NEXTCLOUD . '}deleted-at' => ['deleted_at', 'int'],
'{' . \OCA\DAV\DAV\Sharing\Plugin::NS_NEXTCLOUD . '}default-alarm' => ['default_alarm', 'string'],
'{' . \OCA\DAV\DAV\Sharing\Plugin::NS_OWNCLOUD . '}default-alarm' => ['default_alarm', 'string'],
Copy link
Contributor

Choose a reason for hiding this comment

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

You don't need the NS_OWNCLOUD

private const ALLOWED_NC_PROPERTIES = [
'{http://owncloud.org/ns}calendar-enabled',
'{http://owncloud.org/ns}enabled',
'{http://owncloud.org/ns}default-alarm',
Copy link
Contributor

Choose a reason for hiding this comment

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

This should only be required if you need to save the settings in the oc_properties table, since you are doing a custom mapping to the oc_calendars table, pretty sure this is not needed

$calendarsTable = $schema->getTable('calendars');

if (!$calendarsTable->hasColumn('default_alarm')) {
$calendarsTable->addColumn('default_alarm', Types::STRING, [
Copy link
Contributor

@SebastianKrupinski SebastianKrupinski Mar 3, 2026

Choose a reason for hiding this comment

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

According to you tests bellow the setting is an integer there for the field should be an integer also, make sure its a SINGED int, so that both positive and negative numbers work. Also I would allow null, so that null means not set, a positive int means alarm after the start and a negative means before the start

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2. developing Work in progress

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants