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

feat: hide caldav server settings if no app uses the caldav backend #46510

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

st3iny
Copy link
Member

@st3iny st3iny commented Jul 13, 2024

  • Resolves: none

Summary

This PR introduces a new top level key in info.xml called backends which can be used by apps to express their intent to use a specific server-side backend. Currently, the only backend to be required is caldav.

The caldav server admin settings will be hidden if no app is requiring the caldav backend.

Exemplary info.xml

<?xml version="1.0"?>
<info xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance"
	  xsi:noNamespaceSchemaLocation="https://apps.nextcloud.com/schema/apps/info.xsd">
	<id>calendar</id>
	<name>Calendar</name>
	<summary>A Calendar app for Nextcloud</summary>
	<version>4.8.0-alpha.1</version>
	<namespace>Calendar</namespace>
	<!-- [...] -->
	<backends>
		<caldav />
	</backends>
</info>

Checklist

@st3iny st3iny added this to the Nextcloud 30 milestone Jul 13, 2024
@st3iny st3iny self-assigned this Jul 13, 2024
@st3iny st3iny changed the title feat(info.xml): add backends options to indicate used backends feat: hide caldav server settings if no app uses the caldav backend Jul 13, 2024
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
@ChristophWurst
Copy link
Member

This PR introduces a new top level key in info.xml called backends which can be used by apps to express their intent to use a specific server-side backend. Currently, the only backend to be required is caldav.

If we are changing info.xsd we can also move this into the dependencies element. I think that makes the meaning clearer. The current approach is ambiguous as it could mean that the apps that list caldav as backend are providing it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🏗️ In progress
Development

Successfully merging this pull request may close these issues.

None yet

2 participants