Skip to content

Add OCC commands for global calendar feature opt-in and opt-out in Deck#7080

Merged
luka-nextcloud merged 5 commits into
nextcloud:mainfrom
Fledermaus-20:main
Jul 21, 2025
Merged

Add OCC commands for global calendar feature opt-in and opt-out in Deck#7080
luka-nextcloud merged 5 commits into
nextcloud:mainfrom
Fledermaus-20:main

Conversation

@Fledermaus-20

Copy link
Copy Markdown
Contributor

Summary

This pull request introduces new occ commands that allow administrators to globally enable or disable the calendar integration in the Deck app.

These commands provide system-wide control over whether the calendar feature is enabled by default (opt-out mode) or disabled by default (opt-in mode).


New Commands

# Opt-In Mode (default: disabled unless enabled)
php occ deck:calendar-optin --on     # Enables calendar feature for all users (opt-in mode)
php occ deck:calendar-optin --off    # Disables calendar feature for all users (default)

# Opt-Out Mode (default: enabled unless disabled)
php occ deck:calendar-optout --on    # Enables calendar feature for all users (opt-out mode)
php occ deck:calendar-optout --off   # Disables calendar feature for all users (opt-out mode off)

Comment thread appinfo/info.xml Outdated

@luka-nextcloud luka-nextcloud left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

  • Why do those commands have exactly the same execution logic?
  • The description should be updated a bit since it only works for existing users.

@luka-nextcloud

Copy link
Copy Markdown
Contributor

@Fledermaus-20 Thanks for your updates. Could you please rebase main and then squash your commits? Thank you for your support.

@luka-nextcloud

Copy link
Copy Markdown
Contributor

@Fledermaus-20 One more thing, the copyright header is missing for the new added file lib/Command/CalendarToggle.php

Comment thread lib/Command/CalendarToggle.php Outdated
@luka-nextcloud

Copy link
Copy Markdown
Contributor

Could you also run composer run cs:fix to fix the phpcs issue?

Fledermaus-20 and others added 2 commits July 6, 2025 12:52
Signed-off-by: Fledermaus-20 <benno.traub@icloud.com>
Signed-off-by: Fledermaus-20 <139645999+Fledermaus-20@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown
Contributor

Hello there,
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.

Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6

Thank you for contributing to Nextcloud and we hope to hear from you soon!

(If you believe you should not receive this message, you can add yourself to the blocklist.)

Comment thread composer.json Outdated
Signed-off-by: Fledermaus-20 <benno.traub@icloud.com>
@luka-nextcloud luka-nextcloud merged commit 909af7e into nextcloud:main Jul 21, 2025
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants