Skip to content

Conversation

@nfebe
Copy link
Contributor

@nfebe nfebe commented Sep 30, 2025

A change in #45317 introduced a hard stop (25) that prevents full search results from showing up.

If there are more than 25 search results for a query only 25 can be seen.

So two main issues:

  • Only 25 results can be seen in total no matter what.
  • Breaks web client pagination, which typically adds 5 results per request.

@nfebe nfebe requested a review from a team as a code owner September 30, 2025 13:29
@nfebe nfebe requested review from sorbaugh and removed request for a team September 30, 2025 13:29
@nfebe nfebe added 3. to review Waiting for reviews feature: search labels Sep 30, 2025
nfebe added a commit that referenced this pull request Sep 30, 2025
We implemented a max entries per result config that ultimately hides possible
search results after 25 (default)  or configured maximum.

This fix implements getting new entries starting from an offset with the allowed max entries.

Related: #55434

Signed-off-by: nfebe <[email protected]>
@nfebe nfebe force-pushed the fix/unfied-search-pagination-limit branch from 649dbb3 to a241675 Compare October 1, 2025 11:10
Copy link
Member

@provokateurin provokateurin left a comment

Choose a reason for hiding this comment

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

Maybe just squash both commits, then the first commit won't introduce a possible issue.

@nfebe nfebe force-pushed the fix/unfied-search-pagination-limit branch from a241675 to 0ba46bc Compare October 1, 2025 11:48
@nfebe nfebe requested a review from provokateurin October 1, 2025 11:48
@nfebe nfebe force-pushed the fix/unfied-search-pagination-limit branch from 0ba46bc to 0384209 Compare October 1, 2025 11:51
@nfebe nfebe enabled auto-merge October 1, 2025 11:51
A change added in #45317 introduced
a hard stop (25) that prevents full search results from showing up.

If there are more than 25 search results for a query only 25 can be seen.

So two main issues:

- Only 25 results can be seen in total no matter what.
- Breaks web client pagination, which typically adds 5 results per request.

Signed-off-by: nfebe <[email protected]>
@nfebe nfebe force-pushed the fix/unfied-search-pagination-limit branch from 0384209 to 2053112 Compare October 2, 2025 13:44
@nfebe
Copy link
Contributor Author

nfebe commented Oct 2, 2025

cc: @provokateurin

@nfebe nfebe merged commit a9d925b into master Oct 5, 2025
207 of 212 checks passed
@nfebe nfebe deleted the fix/unfied-search-pagination-limit branch October 5, 2025 10:07
@nfebe
Copy link
Contributor Author

nfebe commented Oct 6, 2025

/backport to stable32

@nfebe
Copy link
Contributor Author

nfebe commented Oct 6, 2025

/backport to stable31

@backportbot
Copy link

backportbot bot commented Oct 6, 2025

The backport to stable31 failed. Please do this backport manually.

# Switch to the target branch and update it
git checkout stable31
git pull origin stable31

# Create the new backport branch
git checkout -b backport/55434/stable31

# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts, resolve them
git cherry-pick 20531128

# Push the cherry pick commit to the remote repository and open a pull request
git push origin backport/55434/stable31

Error: Failed to check for changes with origin/stable31: No changes found in backport branch


Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants