fsanyoto commited on
Commit
c6c4acf
·
verified ·
1 Parent(s): bf2d58a

Deploy AIOS web (React glide grid + FastAPI slice)

Browse files
RELEASES.json CHANGED
@@ -1,4 +1,4 @@
1
  {
2
- "current": "a50f43e",
3
  "releases": []
4
  }
 
1
  {
2
+ "current": "3bb6a04",
3
  "releases": []
4
  }
VERSION CHANGED
@@ -1 +1 @@
1
- a50f43e
 
1
+ 3bb6a04
platform/core/user_tables.py CHANGED
@@ -46,6 +46,7 @@ inherits C1 by construction — there is no list to add it to, which is R6's act
46
  """
47
  import datetime as _dt
48
  import hashlib
 
49
  import json as _json
50
  import math
51
  import re
@@ -1602,19 +1603,20 @@ def get_one(table_key, st=None):
1602
 
1603
  `get` deep-copies the whole tenant document to answer for one table. On a Postgres-backed
1604
  runtime `get_entry` reads `value -> table_key` instead, so a 1,168-row stored table no longer
1605
- costs a ~60-100 MB read. ⛔ A `_Lent` handle is never bypassed: its `__getattr__` would forward
1606
- `get_entry` to the runtime and skip the snapshot the pass was promised, so it takes `get`.
 
 
1607
  Anything else (no capability, an absent entry, a failed read) falls back to `get` unchanged.
1608
  """
1609
- if st is not None and not isinstance(st, _Lent):
1610
- reader = getattr(st, 'get_entry', None)
1611
- if callable(reader):
1612
- try:
1613
- one = reader(STORE_KEY, str(table_key))
1614
- except Exception: # noqa: BLE001
1615
- one = None
1616
- if isinstance(one, dict):
1617
- return one
1618
  return get(table_key, st)
1619
 
1620
 
 
46
  """
47
  import datetime as _dt
48
  import hashlib
49
+ import inspect
50
  import json as _json
51
  import math
52
  import re
 
1603
 
1604
  `get` deep-copies the whole tenant document to answer for one table. On a Postgres-backed
1605
  runtime `get_entry` reads `value -> table_key` instead, so a 1,168-row stored table no longer
1606
+ costs a ~60-100 MB read. ⛔ ONLY A CLASS THAT DEFINES `get_entry` QUALIFIES (`getattr_static`),
1607
+ never one that FORWARDS it: `_Lent`, the external-API draft runtime and the other snapshot
1608
+ wrappers serve documents of their own and pass the rest through `__getattr__`, so a plain
1609
+ `getattr` would read the live store past the snapshot (or the drafted rows) they promised.
1610
  Anything else (no capability, an absent entry, a failed read) falls back to `get` unchanged.
1611
  """
1612
+ if (st is not None and not isinstance(st, _Lent)
1613
+ and callable(inspect.getattr_static(type(st), 'get_entry', None))):
1614
+ try:
1615
+ one = st.get_entry(STORE_KEY, str(table_key))
1616
+ except Exception: # noqa: BLE001
1617
+ one = None
1618
+ if isinstance(one, dict):
1619
+ return one
 
1620
  return get(table_key, st)
1621
 
1622
 
web/public/AIOS_DEPLOY_RECEIPT CHANGED
@@ -1 +1 @@
1
- 7f76aab0536401a1643b0cb58869d49e23ccf8b2ce16bbe2f84941fb741e2d67
 
1
+ 6e8c650d2ce15312123d480286d53cce98bdbf03e36a4f0c409ce896b42a8ce2