Skip to content

2023 bug sorting on included section broken#610

Merged
cv5ch merged 2 commits intomasterfrom
2023-bug-sorting-on-included-section-broken
Mar 26, 2026
Merged

2023 bug sorting on included section broken#610
cv5ch merged 2 commits intomasterfrom
2023-bug-sorting-on-included-section-broken

Conversation

@correct-horse-battery-bench
Copy link
Copy Markdown
Contributor

@correct-horse-battery-bench correct-horse-battery-bench commented Mar 26, 2026

Parent field has been missing in existing type and added zod validation schema and was therefore stripped away when trying to store user sorting preference 'task.taskName' -> only 'taskName' is stored.

This is a problem as the request sent to the backend will be 'taskName' after storing in localStorage which will fail.
Therefore also store the parent. Better solution here would probably be not to store the parent separately from the column field but store both together as a single string. But this is a quickfix to allow releasing the new version.

Also if people already have stored sorting in their local storage before the addition of included field sorting by the backend this pr will not fix this existing issue. This cannot be validated with the zod schema as we do not know which column fields require a parent and which do not. Maybe with improved typing and validation this issue can be mitigated completely.

@cv5ch cv5ch merged commit e73be5a into master Mar 26, 2026
3 checks passed
@cv5ch cv5ch deleted the 2023-bug-sorting-on-included-section-broken branch March 26, 2026 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]: sorting on included section broken

2 participants