Skip to content

Conversation

@ChristophWurst
Copy link
Member

For API users it looked like any properties could be searched. But it
turned out to be a hand picked list of properties that we index and then
use for the search. To prevent application errors where special props
are not found, I suggest we document and type the allowed values.

Follow-up of #28970

For API users it looked like any properties could be searched. But it
turned out to be a hand picked list of properties that we index and then
use for the search. To prevent application errors where special props
are not found, I suggest we document and type the allowed values.

Signed-off-by: Christoph Wurst <[email protected]>
@tcitworld
Copy link
Member

Why not directly reference consts from OCP in the dav backend ?

@ChristophWurst
Copy link
Member Author

Why not directly reference consts from OCP in the dav backend ?

Thought about that but the values in the caldav backend are not only used for this but also other types of searches, unrelated to the new php calendar search API.

@juliusknorr juliusknorr added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Nov 11, 2021
*
* @see \OCP\Calendar\ICalendarQuery
*/
private const INDEXED_PROPERTIES = [
Copy link
Member

Choose a reason for hiding this comment

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

Any problem with public, so it can be used in apps, etc?

Copy link
Member Author

Choose a reason for hiding this comment

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

That is what we have ICalendarQuery for. This class here is private API. Apps must not access the class directly.

@ChristophWurst ChristophWurst merged commit 98b963e into master Nov 15, 2021
@ChristophWurst ChristophWurst deleted the enhancement/calendar-search-properties-api branch November 15, 2021 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to release Ready to be released and/or waiting for tests to finish enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants