fix(projects): allow max columns to the limit (#39272)

Signed-off-by: Petr Vaněk <pevadev@gmail.com>
Co-authored-by: silverwind <me@silverwind.io>
This commit is contained in:
Petr Vaněk
2026-09-10 22:32:46 +02:00
committed by GitHub
parent 579de92b8a
commit 40385ef284
4 changed files with 8 additions and 6 deletions

View File

@@ -138,7 +138,7 @@ func createDefaultColumnsForProject(ctx context.Context, project *Project) error
// maxProjectColumns max columns allowed in a project, this should not bigger than 127
// because sorting is int8 in database
const maxProjectColumns = 20
const maxProjectColumns = 127
// NewColumn adds a new project column to a given project
func NewColumn(ctx context.Context, column *Column) error {

View File

@@ -123,7 +123,7 @@ func Test_NewColumn(t *testing.T) {
assert.NoError(t, err)
}
err = NewColumn(t.Context(), &Column{
Title: "column-21",
Title: fmt.Sprintf("column-%d", maxProjectColumns+1),
ProjectID: project1.ID,
})
assert.Error(t, err)