-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Document and type allowed property names for calendar property searches #29661
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
Document and type allowed property names for calendar property searches #29661
Conversation
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]>
|
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. |
| * | ||
| * @see \OCP\Calendar\ICalendarQuery | ||
| */ | ||
| private const INDEXED_PROPERTIES = [ |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
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