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

Allow searching file by fileid #4222

Merged
merged 1 commit into from
Apr 10, 2017
Merged

Allow searching file by fileid #4222

merged 1 commit into from
Apr 10, 2017

Conversation

icewind1991
Copy link
Member

Fixes #4193

Note that multiple results can be returned for a single id since a user can have access to single file trough multiple paths

@icewind1991 icewind1991 added the 3. to review Waiting for reviews label Apr 5, 2017
@icewind1991 icewind1991 added this to the Nextcloud 12.0 milestone Apr 5, 2017
@icewind1991 icewind1991 mentioned this pull request Apr 5, 2017
@@ -127,7 +127,7 @@ public function getPropertyDefinitionsForScope($href, $path) {
new SearchPropertyDefinition(FilesPlugin::OWNER_DISPLAY_NAME_PROPERTYNAME, false, true, false),
new SearchPropertyDefinition(FilesPlugin::DATA_FINGERPRINT_PROPERTYNAME, false, true, false),
new SearchPropertyDefinition(FilesPlugin::HAS_PREVIEW_PROPERTYNAME, false, true, false, SearchPropertyDefinition::DATATYPE_BOOLEAN),
new SearchPropertyDefinition(FilesPlugin::INTERNAL_FILEID_PROPERTYNAME, false, true, false, SearchPropertyDefinition::DATATYPE_NONNEGATIVE_INTEGER),
new SearchPropertyDefinition(FilesPlugin::INTERNAL_FILEID_PROPERTYNAME, true, true, false, SearchPropertyDefinition::DATATYPE_NONNEGATIVE_INTEGER),
Copy link
Member

Choose a reason for hiding this comment

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

please move up to // queryable properties

Copy link
Member Author

Choose a reason for hiding this comment

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

done

Signed-off-by: Robin Appelman <robin@icewind.nl>
@rullzer
Copy link
Member

rullzer commented Apr 6, 2017

@tobiasKaminsky can you verify if this works for you?

Copy link
Member

@rullzer rullzer left a comment

Choose a reason for hiding this comment

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

Seems to do the job 👍

@rullzer rullzer merged commit e9c6fe2 into master Apr 10, 2017
@rullzer rullzer deleted the dav-search-fileid branch April 10, 2017 13:59
@tobiasKaminsky
Copy link
Member

Nice, thank you 👍

@MorrisJobke
Copy link
Member

@icewind1991 @tobiasKaminsky Do you have an example for this and could maybe document this?

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants