nextcloud / nextcloud/server

Search API: get all regular File infos along with share infos

Open
#4,456 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop enhancement feature: search feature: sharing
Dominant language
PHP
Stars
36.9k
Forks
5.2k
Avg merge
2d 3h
Merged PRs (30d)
713

Description

Currently we get via search api specific informations regarding share, e.g. share with, shared date, expiration date.
To display those shares we get the additional regular file informations like, mimeType, eTag, isFavorite,...
We can fetch these in android via one fetch for each file, but this is not the best approach.

Is it possible to extend the search api in this way?
@icewind1991

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the server-side search API and how it currently returns share information. Compare that response with the regular file information needed by Android, including mimeType, eTag, and isFavorite. Done means the search API can return both share details and the requested regular file fields without a separate fetch for each file.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
api, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.