Deploy AIOS web (React glide grid + FastAPI slice)
Browse files- RELEASES.json +1 -1
- VERSION +1 -1
- api/routes_sheet.py +4 -1
- api/routes_tables.py +14 -15
- web/public/AIOS_DEPLOY_RECEIPT +1 -1
RELEASES.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
{
|
| 2 |
-
"current": "
|
| 3 |
"releases": []
|
| 4 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"current": "4b1bcdd4f",
|
| 3 |
"releases": []
|
| 4 |
}
|
VERSION
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
|
|
|
|
| 1 |
+
4b1bcdd4f
|
api/routes_sheet.py
CHANGED
|
@@ -3047,7 +3047,10 @@ _METRIC_COLUMN_CREATE_LOCK = threading.RLock()
|
|
| 3047 |
|
| 3048 |
def _forget_sheet_database(session, database):
|
| 3049 |
"""A field write invalidates both request-local schema and materialised-column memos."""
|
| 3050 |
-
getattr(session, "_sheet_assemblies", {})
|
|
|
|
|
|
|
|
|
|
| 3051 |
memo = getattr(session, "_sheet_read_memo", None)
|
| 3052 |
if isinstance(memo, dict):
|
| 3053 |
for slot in [slot for slot in memo if isinstance(slot, tuple)
|
|
|
|
| 3047 |
|
| 3048 |
def _forget_sheet_database(session, database):
|
| 3049 |
"""A field write invalidates both request-local schema and materialised-column memos."""
|
| 3050 |
+
assemblies = getattr(session, "_sheet_assemblies", {})
|
| 3051 |
+
for slot in list(assemblies):
|
| 3052 |
+
if slot == database or (isinstance(slot, tuple) and slot and slot[0] == database):
|
| 3053 |
+
assemblies.pop(slot, None)
|
| 3054 |
memo = getattr(session, "_sheet_read_memo", None)
|
| 3055 |
if isinstance(memo, dict):
|
| 3056 |
for slot in [slot for slot in memo if isinstance(slot, tuple)
|
api/routes_tables.py
CHANGED
|
@@ -197,6 +197,17 @@ def _ut():
|
|
| 197 |
return user_tables
|
| 198 |
|
| 199 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 200 |
def _table_lend(runtime, table_key, defs_only=False):
|
| 201 |
"""Borrow one entry for the wall and page; old snapshot stores retain their lend."""
|
| 202 |
ut = _ut()
|
|
@@ -205,13 +216,7 @@ def _table_lend(runtime, table_key, defs_only=False):
|
|
| 205 |
return ut.lend_defs(runtime)
|
| 206 |
if _ut()._entry_reader(runtime) is None:
|
| 207 |
return ut.lend(runtime)
|
| 208 |
-
|
| 209 |
-
entry = ut.get_one(table_key, st=runtime)
|
| 210 |
-
except Exception as exc:
|
| 211 |
-
if type(exc).__name__ in {'StoreUnavailable', 'PoolTimeout', 'OperationalError',
|
| 212 |
-
'InterfaceError', 'ConnectionTimeout'}:
|
| 213 |
-
raise err(503, 'store_unavailable', 'the tenant store is unavailable') from exc
|
| 214 |
-
raise
|
| 215 |
return ut.lend(runtime, user_tables={str(table_key): entry} if entry else {})
|
| 216 |
|
| 217 |
|
|
@@ -888,7 +893,7 @@ def scoped_pids(session: Session, table_key: str, limits=None, st=None):
|
|
| 888 |
# read-through databases (every one of them, which is why the switch was slow) skip the big
|
| 889 |
# read entirely.
|
| 890 |
from core import store
|
| 891 |
-
whole = defn if isinstance(defn, dict) and "rows" in defn and not store.is_projected(defn) else
|
| 892 |
if whole is None:
|
| 893 |
# Between the wall and here the table was deleted by another request. Same refusal the
|
| 894 |
# wall gives, rather than an empty pid set nobody can distinguish from an empty table.
|
|
@@ -2339,13 +2344,7 @@ def table_rows(table_key: str, session: Session = Depends(require_session),
|
|
| 2339 |
entry = assembly_rt.docs[entry_key]
|
| 2340 |
else:
|
| 2341 |
# A warm memo holds no records. Read the original runtime, avoiding a whole-entry copy.
|
| 2342 |
-
|
| 2343 |
-
entry = _ut().get_one(table_key, st=original_rt)
|
| 2344 |
-
except Exception as exc:
|
| 2345 |
-
if type(exc).__name__ in {'StoreUnavailable', 'PoolTimeout', 'OperationalError',
|
| 2346 |
-
'InterfaceError', 'ConnectionTimeout'}:
|
| 2347 |
-
raise err(503, 'store_unavailable', 'the tenant store is unavailable') from exc
|
| 2348 |
-
raise
|
| 2349 |
_lent = _ut().lend(assembly_rt, user_tables={str(table_key): entry} if entry else {})
|
| 2350 |
# The page borrows the same envelope as workspace; only records and shared cells are fresh.
|
| 2351 |
pids, rows_src, _fields_base, _defn = scoped_pool(session, table_key, st=_lent)
|
|
|
|
| 197 |
return user_tables
|
| 198 |
|
| 199 |
|
| 200 |
+
def _table_entry(runtime, table_key):
|
| 201 |
+
"""Translate store availability failures identically on cold and warm entry reads."""
|
| 202 |
+
try:
|
| 203 |
+
return _ut().get_one(table_key, st=runtime)
|
| 204 |
+
except Exception as exc:
|
| 205 |
+
if type(exc).__name__ in {'StoreUnavailable', 'PoolTimeout', 'OperationalError',
|
| 206 |
+
'InterfaceError', 'ConnectionTimeout'}:
|
| 207 |
+
raise err(503, 'store_unavailable', 'the tenant store is unavailable') from exc
|
| 208 |
+
raise
|
| 209 |
+
|
| 210 |
+
|
| 211 |
def _table_lend(runtime, table_key, defs_only=False):
|
| 212 |
"""Borrow one entry for the wall and page; old snapshot stores retain their lend."""
|
| 213 |
ut = _ut()
|
|
|
|
| 216 |
return ut.lend_defs(runtime)
|
| 217 |
if _ut()._entry_reader(runtime) is None:
|
| 218 |
return ut.lend(runtime)
|
| 219 |
+
entry = _table_entry(runtime, table_key)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 220 |
return ut.lend(runtime, user_tables={str(table_key): entry} if entry else {})
|
| 221 |
|
| 222 |
|
|
|
|
| 893 |
# read-through databases (every one of them, which is why the switch was slow) skip the big
|
| 894 |
# read entirely.
|
| 895 |
from core import store
|
| 896 |
+
whole = defn if isinstance(defn, dict) and "rows" in defn and not store.is_projected(defn) else _table_entry(session.runtime, table_key)
|
| 897 |
if whole is None:
|
| 898 |
# Between the wall and here the table was deleted by another request. Same refusal the
|
| 899 |
# wall gives, rather than an empty pid set nobody can distinguish from an empty table.
|
|
|
|
| 2344 |
entry = assembly_rt.docs[entry_key]
|
| 2345 |
else:
|
| 2346 |
# A warm memo holds no records. Read the original runtime, avoiding a whole-entry copy.
|
| 2347 |
+
entry = _table_entry(original_rt, table_key)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2348 |
_lent = _ut().lend(assembly_rt, user_tables={str(table_key): entry} if entry else {})
|
| 2349 |
# The page borrows the same envelope as workspace; only records and shared cells are fresh.
|
| 2350 |
pids, rows_src, _fields_base, _defn = scoped_pool(session, table_key, st=_lent)
|
web/public/AIOS_DEPLOY_RECEIPT
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
|
|
|
|
| 1 |
+
ab7a9ffd4eb3c70ce981245bb69d3f3723cb485df317cd19b7bbeec355c9bac1
|