Remember per-user filter and sort on the decisions list (D-0061) #142
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/decisions-sticky-view"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What does this PR do?
The
/decisionslist now remembers each operator's filter and sort selections and restores them automatically on the next visit, so returning to the tab reopens the same view. Typed Search text is remembered the same way (D-0061).Implementation follows the existing per-user display-preferences pattern (time zone, page size, status-refresh):
AdminUserPreferences.DecisionsViewfield holds the remembered view as a canonical query string. EF migrationAddDecisionsDefaultViewadds a non-nulldecisions_viewcolumn (max length 512, default empty) that auto-applies on deploy. In-memory and Postgres stores round-trip and length-clamp it./decisions?clear=1, which resets the stored view to empty and lands on the unfiltered list. An ordinary render never stores an empty view, so Clear is the only way to reset.DecisionsViewforward, so editing time zone / page size / refresh does not reset the remembered view.Per-user display convenience only: no pipeline behaviour, endpoint contract, step-up, or read-only-API change. Consistent with the existing page-size and time-zone preferences, which are also per-user and not on the read-only API.
Fixes #
How was this tested?
dotnet build- 0 errors, 0 warningsdotnet test- AdminApi 230 passed, Application 595 passed (added one store round-trip/clamp test forDecisionsView)dotnet ef migrations has-pending-model-changes- model in sync with the new migrationChecklist