Skip to content

Conversation

@st3iny
Copy link
Member

@st3iny st3iny commented Aug 26, 2025

Resolves #4632
Requires nextcloud/server#54729

Does not need a version check against server, as the current main branch is only compatible with Nextcloud 32 upwards.

CI will be green after the server PR is merged (due to the new interface missing).

Is currently hard to test as there is no usage of the API anywhere.

@st3iny st3iny self-assigned this Aug 26, 2025
@st3iny st3iny added enhancement New feature or request 2. developing Work in progress labels Aug 26, 2025
@codecov
Copy link

codecov bot commented Aug 26, 2025

Codecov Report

❌ Patch coverage is 74.33628% with 29 lines in your changes missing coverage. Please review.
✅ Project coverage is 66.81%. Comparing base (1bdcd79) to head (8bb3129).
⚠️ Report is 163 commits behind head on main.

Files with missing lines Patch % Lines
lib/Capabilities.php 0.00% 16 Missing ⚠️
lib/Controller/ImportController.php 87.50% 12 Missing ⚠️
lib/AppInfo/Application.php 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##              main    #4654       +/-   ##
============================================
+ Coverage     9.59%   66.81%   +57.21%     
- Complexity     266      297       +31     
============================================
  Files          128       28      -100     
  Lines         6407      886     -5521     
  Branches      1191        0     -1191     
============================================
- Hits           615      592       -23     
+ Misses        5671      294     -5377     
+ Partials       121        0      -121     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@st3iny st3iny force-pushed the feat/import-ocs branch 3 times, most recently from 12b3baf to 8790a7f Compare August 29, 2025 09:44
@st3iny st3iny added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Aug 29, 2025
@st3iny st3iny marked this pull request as ready for review August 29, 2025 10:38
@SebastianKrupinski
Copy link
Contributor

SebastianKrupinski commented Aug 29, 2025

Morning.

This PR should be in app/dav I think. Since the CardDAV can be used without the contacts UI. This will not work unless the contacts UI is installed.

Refereance: nextcloud/server#49995

@SebastianKrupinski
Copy link
Contributor

@st3iny accidentally clicke the approve button was ment to be a comment

@st3iny
Copy link
Member Author

st3iny commented Aug 29, 2025

This PR should be in app/dav I think. Since the CardDAV can be used without the contacts UI. This will not work unless the contacts UI is installed.

@SebastianKrupinski This decision was already made in planning. The API is supposed to be a part of Contacts. Please read #4632 for more information.

@ChristophWurst
Copy link
Member

This PR should be in app/dav I think. Since the CardDAV can be used without the contacts UI. This will not work unless the contacts UI is installed.

It would be fine there too. To take some confusion we do hide a few calendar/contacts features from the user when the official calendar/contacts frontends are not there. I think this can be seen as one of those features.

Copy link
Member

@ChristophWurst ChristophWurst left a comment

Choose a reason for hiding this comment

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

@ChristophWurst
Copy link
Member

This also needs an entry in capabilities in the style of this: https://github.com/tobiasKaminsky/declarativetest/blob/83716d84cde0efc6a6530adcd9b0219bdbb20e34/lib/Capabilities.php#L29

@tobiasKaminsky do you have an example for how to let the user pick from a list? We need this for the selection of the address book

@st3iny st3iny force-pushed the feat/import-ocs branch 2 times, most recently from 858b57b to 876eec2 Compare September 15, 2025 14:09
@st3iny
Copy link
Member Author

st3iny commented Sep 15, 2025

I rebased and added the capabilities.

@st3iny
Copy link
Member Author

st3iny commented Sep 15, 2025

Tested and works on the declarative UI test instance by the clients team (Tobi).

@st3iny st3iny merged commit 0cbc671 into main Sep 15, 2025
41 checks passed
@st3iny st3iny deleted the feat/import-ocs branch September 15, 2025 15:41
@tobiasKaminsky tobiasKaminsky linked an issue Oct 6, 2025 that may be closed by this pull request
@github-actions
Copy link

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.)

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 enhancement New feature or request feedback-requested

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Declarative action to import .vcf file Declarative ui: a quick way to create a new contact in Contacts

4 participants