Development changelog

What has changed on this site, in its database and in the scripts behind it, newest first. Older history is being filled in as it is reconstructed, and each entry says whether it was recorded at the time or rebuilt later.

Showing entries for file TGI_choice_surface_acceptance_v0.1.0.sql. Show everything

Choice Surface: each portfolio chooses how Stock on Hand ranks, filters and caps

Nov 18, 2026
added Nov 18, 2026

A new table holds one Choice Surface settings document per portfolio: which securities qualify, how they are sorted, which rankings are shown, and the position, sector and dividend caps.

The document is JSON with a versioned schema key. The database checks that it is an object carrying that key; the application checks everything else before saving. Existing portfolios were given documents that reproduce the previous built-in settings exactly, by a setup script that never overwrites a saved document. Read-only checks before and after confirmed that no other table changed, and a 29-test acceptance suite ran in a throwaway database first.