Deploy AIOS web (React glide grid + FastAPI slice)
Browse files- RELEASES.json +1 -1
- VERSION +1 -1
- api/routes_odoo_tables.py +20 -1
- web/public/AIOS_DEPLOY_RECEIPT +1 -1
RELEASES.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"current": "
|
| 3 |
"releases": [
|
| 4 |
{
|
| 5 |
"version": "v75",
|
|
|
|
| 1 |
{
|
| 2 |
+
"current": "7375a1f",
|
| 3 |
"releases": [
|
| 4 |
{
|
| 5 |
"version": "v75",
|
VERSION
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
|
|
|
|
| 1 |
+
7375a1f
|
api/routes_odoo_tables.py
CHANGED
|
@@ -2959,8 +2959,21 @@ def odoo_table_rows(table_key: str,
|
|
| 2959 |
# is a page of* - and that is provable only while there is one of it. What stays here is what
|
| 2960 |
# a WINDOW alone needs: the total order, the projection, the overlay merge and the two
|
| 2961 |
# sentences a page earns (`window_clamped`, the deep-page walk).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2962 |
read = _compiled_read(table_key, session, filters=filters, filterConj=filterConj,
|
| 2963 |
sorts=sorts, search=search, related=related)
|
|
|
|
| 2964 |
defn, fields, cur, spec = read["defn"], read["fields"], read["cur"], read["spec"]
|
| 2965 |
cols, limits, frm = read["cols"], read["limits"], read["frm"]
|
| 2966 |
base_where, wall_params = read["base_where"], read["wall_params"]
|
|
@@ -2980,6 +2993,7 @@ def odoo_table_rows(table_key: str,
|
|
| 2980 |
win = datastore.window(select=f'{spec["id"]} AS "_pid", {select}',
|
| 2981 |
where=where, params=tuple(params), order_by=order,
|
| 2982 |
offset=offset, limit=(limit or None), cur=cur, **frm)
|
|
|
|
| 2983 |
if win["clamped"]:
|
| 2984 |
limits.append({
|
| 2985 |
"subject": "limit", "effect": "window_clamped",
|
|
@@ -3009,6 +3023,7 @@ def odoo_table_rows(table_key: str,
|
|
| 3009 |
rows_src = _pool_from_window(spec, win,
|
| 3010 |
stamp=mirror_stamp(spec, cur, table_key,
|
| 3011 |
session.runtime))
|
|
|
|
| 3012 |
overlays = {str(r["pid"]): {k: v for k, v in r.items() if k != "pid"} for r in rows_src}
|
| 3013 |
|
| 3014 |
# ββ W30-T28 β THE TENANT-WIDE OVERLAY, ON A READ-THROUGH GRID.
|
|
@@ -3035,6 +3050,7 @@ def odoo_table_rows(table_key: str,
|
|
| 3035 |
# in an overlay column that reads a hidden mirror column was outside its reach - and a formula
|
| 3036 |
# carrying a hidden value is the leak `hidden_keys` exists to close, wearing a second door's
|
| 3037 |
# name. Same wall, asked once the field list is whole.
|
|
|
|
| 3038 |
_hidden = perm_scope.hidden_keys(session.user, table_key, fields)
|
| 3039 |
if _hidden:
|
| 3040 |
# BOTH WIRES, and the field list is narrowed BEFORE the rows are built so a hidden column
|
|
@@ -3047,17 +3063,20 @@ def odoo_table_rows(table_key: str,
|
|
| 3047 |
for pid, cells in overlays.items()}
|
| 3048 |
rows = aios_grid.rows_from_pool(rows_src, fields, overlays)
|
| 3049 |
|
|
|
|
| 3050 |
unfiltered = win["total"] if where == base_where else datastore.window(
|
| 3051 |
select="1", where=base_where, params=tuple(wall_params), order_by=spec["id"],
|
| 3052 |
limit=1, cur=cur, **frm)["total"]
|
| 3053 |
|
|
|
|
| 3054 |
return {"ok": True, "fields": fields, "rows": rows,
|
| 3055 |
# β FROM THE COUNT STATEMENT. Never `len(rows)`.
|
| 3056 |
"total": win["total"], "totalUnfiltered": unfiltered,
|
| 3057 |
"offset": win["offset"], "limit": win["limit"], "limits": limits,
|
| 3058 |
"today": _today(), "identity": {"pid": "pid"},
|
| 3059 |
"scope": {"table": table_key, "readThrough": True},
|
| 3060 |
-
"recordsMutable": bool(defn.get("recordMode") != _ut().AUTOMATION_RECORD_MODE)
|
|
|
|
| 3061 |
|
| 3062 |
|
| 3063 |
# ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
|
|
| 2959 |
# is a page of* - and that is provable only while there is one of it. What stays here is what
|
| 2960 |
# a WINDOW alone needs: the total order, the projection, the overlay merge and the two
|
| 2961 |
# sentences a page earns (`window_clamped`, the deep-page walk).
|
| 2962 |
+
# HOTFIX 2026-09-23: staging served a 50-row page of order lines in 5-7 s while its SQL runs in
|
| 2963 |
+
# ~80 ms, so every phase of this door reports its own milliseconds in `timing` (read-only, and
|
| 2964 |
+
# the client ignores it). A lag you cannot attribute is a lag nobody fixes.
|
| 2965 |
+
_t0 = time.perf_counter()
|
| 2966 |
+
_timing = {}
|
| 2967 |
+
|
| 2968 |
+
def _lap(name):
|
| 2969 |
+
nonlocal _t0
|
| 2970 |
+
now = time.perf_counter()
|
| 2971 |
+
_timing[name] = round((now - _t0) * 1000)
|
| 2972 |
+
_t0 = now
|
| 2973 |
+
|
| 2974 |
read = _compiled_read(table_key, session, filters=filters, filterConj=filterConj,
|
| 2975 |
sorts=sorts, search=search, related=related)
|
| 2976 |
+
_lap("compiled_read")
|
| 2977 |
defn, fields, cur, spec = read["defn"], read["fields"], read["cur"], read["spec"]
|
| 2978 |
cols, limits, frm = read["cols"], read["limits"], read["frm"]
|
| 2979 |
base_where, wall_params = read["base_where"], read["wall_params"]
|
|
|
|
| 2993 |
win = datastore.window(select=f'{spec["id"]} AS "_pid", {select}',
|
| 2994 |
where=where, params=tuple(params), order_by=order,
|
| 2995 |
offset=offset, limit=(limit or None), cur=cur, **frm)
|
| 2996 |
+
_lap("window")
|
| 2997 |
if win["clamped"]:
|
| 2998 |
limits.append({
|
| 2999 |
"subject": "limit", "effect": "window_clamped",
|
|
|
|
| 3023 |
rows_src = _pool_from_window(spec, win,
|
| 3024 |
stamp=mirror_stamp(spec, cur, table_key,
|
| 3025 |
session.runtime))
|
| 3026 |
+
_lap("pool_and_stamp")
|
| 3027 |
overlays = {str(r["pid"]): {k: v for k, v in r.items() if k != "pid"} for r in rows_src}
|
| 3028 |
|
| 3029 |
# ββ W30-T28 β THE TENANT-WIDE OVERLAY, ON A READ-THROUGH GRID.
|
|
|
|
| 3050 |
# in an overlay column that reads a hidden mirror column was outside its reach - and a formula
|
| 3051 |
# carrying a hidden value is the leak `hidden_keys` exists to close, wearing a second door's
|
| 3052 |
# name. Same wall, asked once the field list is whole.
|
| 3053 |
+
_lap("shared_overlay")
|
| 3054 |
_hidden = perm_scope.hidden_keys(session.user, table_key, fields)
|
| 3055 |
if _hidden:
|
| 3056 |
# BOTH WIRES, and the field list is narrowed BEFORE the rows are built so a hidden column
|
|
|
|
| 3063 |
for pid, cells in overlays.items()}
|
| 3064 |
rows = aios_grid.rows_from_pool(rows_src, fields, overlays)
|
| 3065 |
|
| 3066 |
+
_lap("hidden_and_rows")
|
| 3067 |
unfiltered = win["total"] if where == base_where else datastore.window(
|
| 3068 |
select="1", where=base_where, params=tuple(wall_params), order_by=spec["id"],
|
| 3069 |
limit=1, cur=cur, **frm)["total"]
|
| 3070 |
|
| 3071 |
+
_lap("unfiltered_count")
|
| 3072 |
return {"ok": True, "fields": fields, "rows": rows,
|
| 3073 |
# β FROM THE COUNT STATEMENT. Never `len(rows)`.
|
| 3074 |
"total": win["total"], "totalUnfiltered": unfiltered,
|
| 3075 |
"offset": win["offset"], "limit": win["limit"], "limits": limits,
|
| 3076 |
"today": _today(), "identity": {"pid": "pid"},
|
| 3077 |
"scope": {"table": table_key, "readThrough": True},
|
| 3078 |
+
"recordsMutable": bool(defn.get("recordMode") != _ut().AUTOMATION_RECORD_MODE),
|
| 3079 |
+
"timing": _timing}
|
| 3080 |
|
| 3081 |
|
| 3082 |
# ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
web/public/AIOS_DEPLOY_RECEIPT
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
|
|
|
|
| 1 |
+
8d1e7477caef6de3a29f72e37636044b7e5a936fca19ed469a6d540e21e38a77
|