A view somebody rebuilds every week should be one they can keep #259
Labels
No labels
accessibility
authentication
breaking change
bug
documentation
enhancement
interface
internationalisation
observability
security
tier
1
tier
2
tier
3
tier/4
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Postulo/postulo#259
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
"Everything I have not heard back on in three weeks." "Companies I have applied to more
than once." Those are the questions a job search asks over and over, and #173 made every
one of them answerable — every column of both tables filters, and a filtered table pushes
its state into the URL. What it did not do is let anybody keep the answer. Each week the
same boxes are filled in again from memory.
The state is already serialisable:
hx-push-urlmeans the filtered, sorted, paged viewis a query string. Saving one is storing that string under a name.
And there is already a place to put it.
Profile.table_settingsholds per-user, per-tablepreferences — that is where a column's width lives — it is a JSON field, and it is already
listed in
core/export.py, so anything kept there leaves with the person's data and comesback with it. A saved view is the same kind of thing as a saved column width, for the same
table, belonging to the same person.
Shape
Two tables have this today,
applicationsandcompanies(Table.register), and #160would make listings a third — so whatever is built belongs in
core/tables.pybeside theregistry rather than in either app.
Worth deciding
exists, a sort on a field that was renamed, a stored width for a column that went away —
the view has to degrade to what it can still honour and say so, never fail. That is the
whole of the risk in this feature and it is where the tests belong.
end of it: Postulo is one person's record.
not a replacement for one — a bookmark must keep working, and somebody must be able to
send themselves a link.