nextcloud / nextcloud/tables

Refactor Default Values

Open
#413 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0. Needs triage enhancement
Dominant language
JavaScript
Stars
214
Forks
52
Avg merge
1d 10h
Merged PRs (30d)
82

Description

Is your feature request related to a problem? Please describe.

Currently default values have two purposes:

  1. When creating a new row, those values are prefilled in the corresponding column input fields
  2. When a new column is created for a table that already contains some rows, the cells of the newly created column for those rows are filled with the default values. (More detailed: Whenever a cell value is null and has a default value, this value is shown in the table instead)

However, 2. is problematic since this creates problems with both frontend and backend filtering and more.

Describe the solution you'd like

Default values should only be used for the 1. purpose named above.
For the 2. case you could add a new field to the create column modal that allows to fill the cell of this column for all existing rows with this value.

Describe alternatives you've considered

No response

Additional context

Related: #411

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 how default values are handled in the create-column modal, new-row inputs, existing cells, and frontend/backend filtering. Review related issue #411 and map the current behavior before changing it. Done means defaults only prefill new-row inputs, while filling existing rows is an explicit separate action.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
backend, frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.