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

chore(absence): Add capability #49581

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

SystemKeeper
Copy link
Contributor

Summary

We started using the absence / out-of-office api in talk-ios recently, but there's no capability for us to check if a server supports the absence api (NC 28) and setting a replacement (NC 30).

TODO

  • Trigger backports
  • Update documentation to include the capabilities

Checklist


class Capabilities implements ICapability {
public function __construct(
private IConfig $config,
private IAvailabilityCoordinator $coordinator,
Copy link
Member

Choose a reason for hiding this comment

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

 There were 2 errors:

1) OCA\DAV\Tests\unit\CapabilitiesTest::testGetCapabilities
ArgumentCountError: Too few arguments to function OCA\DAV\Capabilities::__construct(), 1 passed in /home/runner/actions-runner/_work/server/server/apps/dav/tests/unit/CapabilitiesTest.php on line 22 and exactly 2 expected

/home/runner/actions-runner/_work/server/server/apps/dav/lib/Capabilities.php:13
/home/runner/actions-runner/_work/server/server/apps/dav/tests/unit/CapabilitiesTest.php:22

2) OCA\DAV\Tests\unit\CapabilitiesTest::testGetCapabilitiesWithBulkUpload
ArgumentCountError: Too few arguments to function OCA\DAV\Capabilities::__construct(), 1 passed in /home/runner/actions-runner/_work/server/server/apps/dav/tests/unit/CapabilitiesTest.php on line 37 and exactly 2 expected

/home/runner/actions-runner/_work/server/server/apps/dav/lib/Capabilities.php:13
/home/runner/actions-runner/_work/server/server/apps/dav/tests/unit/CapabilitiesTest.php:37

--

There was 1 failure:

1) OCA\DAV\Tests\unit\CalDAV\Reminder\NotificationProviderManagerTest::testRegisterBadProvider
Your test case is not allowed to access the database.

Want a PHP dev to take over?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Want a PHP dev to take over?

Sorry for the trouble. Should be fine now?!

@SystemKeeper SystemKeeper force-pushed the fix/noid/add-absence-capability branch from 21190ab to 303a21f Compare December 1, 2024 22:16
@SystemKeeper SystemKeeper changed the title Fix/noid/add absence capability chore(absence): Add capability Dec 1, 2024
@SystemKeeper SystemKeeper self-assigned this Dec 1, 2024
@SystemKeeper SystemKeeper added 3. to review Waiting for reviews feature: caldav Related to CalDAV internals labels Dec 1, 2024
@SystemKeeper SystemKeeper added this to the Nextcloud 31 milestone Dec 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews feature: caldav Related to CalDAV internals
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants