nextcloud / nextcloud/tables

Manual column filter/sort doesn't work at first time with pre-sorted view

Open
#1,757 3 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop bug
Dominant language
JavaScript
Stars
214
Forks
52
Avg merge
1d 10h
Merged PRs (30d)
82

Description

Steps to reproduce
  1. Make a new view
  2. On the settings of this view, set at least one sorting
  3. Open the pre-sorted view
  4. Click on the heading of a column
  5. Selected alphabetic sorting for exemple (works also with filters)
Expected behavior

The view should remove pre-sort options and sort directly with the new column sorting

Actual behavior

The new sort is not working at the first time, and a button appears on the top of the view : "Reset local adjustments"
We have to click on it to reinitialize the pre-sort view options and make manual column sort again.

Tables app version

0.9.0

Browser

Brave Version 1.77.97 Chromium: 135.0.7049.84 (Build officiel) (64 bits)

Client operating system

Linux

Operating system

Ubuntu

Web server

Apache

PHP engine version

PHP 8.3

Database

PostgreSQL

Additional info

No response

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 reproducing the issue in the Tables app with a pre-sorted view, then trace the frontend handling for manual column sorting and the “Reset local adjustments” control. Done means the first manual sort or filter removes the pre-sort options and applies immediately, without requiring a reset.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.