Deploy AIOS web (React glide grid + FastAPI slice)
Browse files- RELEASES.json +7 -1
- VERSION +1 -1
- api/routes_tables.py +28 -2
RELEASES.json
CHANGED
|
@@ -1,6 +1,12 @@
|
|
| 1 |
{
|
| 2 |
-
"current": "
|
| 3 |
"releases": [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
{
|
| 5 |
"version": "v18",
|
| 6 |
"sha": "0106ef9",
|
|
|
|
| 1 |
{
|
| 2 |
+
"current": "v19 (94cb4a4)",
|
| 3 |
"releases": [
|
| 4 |
+
{
|
| 5 |
+
"version": "v19",
|
| 6 |
+
"sha": "94cb4a4",
|
| 7 |
+
"date": "2026-08-09",
|
| 8 |
+
"subject": "release v19"
|
| 9 |
+
},
|
| 10 |
{
|
| 11 |
"version": "v18",
|
| 12 |
"sha": "0106ef9",
|
VERSION
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
|
|
|
|
| 1 |
+
v19 (94cb4a4)
|
api/routes_tables.py
CHANGED
|
@@ -421,8 +421,34 @@ def table_rows(table_key: str, session: Session = Depends(require_session)):
|
|
| 421 |
|
| 422 |
_ig_forward(session)
|
| 423 |
g = ut_assembly(session, table_key)
|
| 424 |
-
|
| 425 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 426 |
rows = aios_grid.rows_from_pool(
|
| 427 |
g["rows_src"], g["fields"], merged, derived=g["derived"])
|
| 428 |
return {"fields": g["fields"], "rows": rows, "today": g["today"],
|
|
|
|
| 421 |
|
| 422 |
_ig_forward(session)
|
| 423 |
g = ut_assembly(session, table_key)
|
| 424 |
+
# ⛔ THE OVERLAY WAS NEVER ACTUALLY MERGED, and the docstring above has described the merge
|
| 425 |
+
# this line does not perform since the route was written (owner item 3, 2026-08-09:
|
| 426 |
+
# *"Using the swipe, fast doesn't register the CHANGE. I went back and it all got reseted"*).
|
| 427 |
+
#
|
| 428 |
+
# `merged` was built from `rows_src` ALONE — the DEFINITION rows. But `rows_from_pool`
|
| 429 |
+
# sources an overlay-typed field's cell from this dict, and a CUSTOM column on a `ut_*` table
|
| 430 |
+
# is overlay-typed by construction, so it looked up a key that could not be there and every
|
| 431 |
+
# such cell rendered blank.
|
| 432 |
+
#
|
| 433 |
+
# ⭐ THE WRITES WERE NEVER LOST — MEASURED. `ws['overlays']` holds
|
| 434 |
+
# `{"1": {"custom_geography_yf6vi": "Jakarta"}, ...}` for ten rows: the owner's swipes landed
|
| 435 |
+
# in the store exactly as they should. Only the READ-BACK dropped them, which is why the
|
| 436 |
+
# value survived the gesture, vanished on reload, and looked like "it reset itself" — and
|
| 437 |
+
# why `patch_row`'s `_took()` then reported a perfectly good write as `refused`.
|
| 438 |
+
#
|
| 439 |
+
# ⚠ OVERLAY WINS, base underneath — the order the docstring already specifies. A definition
|
| 440 |
+
# value must not shadow an edit the user has made on top of it.
|
| 441 |
+
# ⚠ AND IT IS THIS USER'S OWN OVERLAY (`table_workspace` is keyed by `ctx.uname`), so this
|
| 442 |
+
# widens what a caller can SEE by exactly their own edits and nothing else.
|
| 443 |
+
_overlays = (g.get("ws") or {}).get("overlays") or {}
|
| 444 |
+
merged = {}
|
| 445 |
+
for _r in g["rows_src"]:
|
| 446 |
+
_pid = str(_r["pid"])
|
| 447 |
+
_cells = {k: v for k, v in _r.items() if k != "pid"}
|
| 448 |
+
_ov = _overlays.get(_pid)
|
| 449 |
+
if isinstance(_ov, dict):
|
| 450 |
+
_cells.update(_ov)
|
| 451 |
+
merged[_pid] = _cells
|
| 452 |
rows = aios_grid.rows_from_pool(
|
| 453 |
g["rows_src"], g["fields"], merged, derived=g["derived"])
|
| 454 |
return {"fields": g["fields"], "rows": rows, "today": g["today"],
|