fsanyoto commited on
Commit
b7b2aea
·
verified ·
1 Parent(s): 3c757f7

Deploy AIOS web (React glide grid + FastAPI slice)

Browse files
RELEASES.json CHANGED
@@ -1,4 +1,4 @@
1
  {
2
- "current": "3ec5f41072",
3
  "releases": []
4
  }
 
1
  {
2
+ "current": "0f5b70008",
3
  "releases": []
4
  }
VERSION CHANGED
@@ -1 +1 @@
1
- 3ec5f41072
 
1
+ 0f5b70008
api/application_registry.py CHANGED
@@ -1467,8 +1467,10 @@ def create(runtime, tenant, user, payload, *, semantic_records=None, field_contr
1467
  result = None
1468
  if (is_admin and readable.get("createdBy") != user
1469
  and (readable.get("share") or {}).get("mode") != "tenant"
 
1470
  and not workspace_share_needs_approval(readable, is_admin)):
1471
  # The tenant's one copy is listed for everyone; an admin's add shares a private legacy copy.
 
1472
  try:
1473
  result = mutate(runtime, readable["id"], user, is_admin,
1474
  {"share": {"mode": "tenant", "users": []}}, allowed_databases=allowed_databases)
 
1467
  result = None
1468
  if (is_admin and readable.get("createdBy") != user
1469
  and (readable.get("share") or {}).get("mode") != "tenant"
1470
+ and template_identity(readable) != "route"
1471
  and not workspace_share_needs_approval(readable, is_admin)):
1472
  # The tenant's one copy is listed for everyone; an admin's add shares a private legacy copy.
1473
+ # Routing is one private copy per account, as in `_template_share_plan`.
1474
  try:
1475
  result = mutate(runtime, readable["id"], user, is_admin,
1476
  {"share": {"mode": "tenant", "users": []}}, allowed_databases=allowed_databases)
api/external_openapi.py CHANGED
@@ -40,7 +40,9 @@ def _record_name(database):
40
  def _field_schema(field, source_kind):
41
  if field.get("type") == "multiselect":
42
  return {"type": ["string", "array", "null"], "items": {"type": "string"}}
43
- kind = ("boolean" if field.get("type") == "checkbox" and source_kind == "mirror_user_table"
 
 
44
  else _JSON_TYPE.get(field.get("type"), "string"))
45
  types = [kind]
46
  # Materialised table writes retain numeric cells as strings; reads preserve those bytes.
 
40
  def _field_schema(field, source_kind):
41
  if field.get("type") == "multiselect":
42
  return {"type": ["string", "array", "null"], "items": {"type": "string"}}
43
+ # A mirror and the runtime cache both serve a checkbox as the source's own boolean.
44
+ kind = ("boolean" if field.get("type") == "checkbox"
45
+ and source_kind in {"mirror_user_table", "runtime_cache"}
46
  else _JSON_TYPE.get(field.get("type"), "string"))
47
  types = [kind]
48
  # Materialised table writes retain numeric cells as strings; reads preserve those bytes.
platform/harness/datastore.py CHANGED
@@ -1702,8 +1702,11 @@ class _TimedCursor:
1702
  def cursor(self, *args, **kwargs):
1703
  if self._mirror_handle is not None:
1704
  _assert_tenant_path(self._mirror_handle.tenant_key, self._mirror_handle.path)
1705
- return _TimedCursor(self._cursor.cursor(*args, **kwargs), self._owner, self._factory,
1706
- self._mirror_handle)
 
 
 
1707
 
1708
  def close(self):
1709
  if self._closed:
 
1702
  def cursor(self, *args, **kwargs):
1703
  if self._mirror_handle is not None:
1704
  _assert_tenant_path(self._mirror_handle.tenant_key, self._mirror_handle.path)
1705
+ child = _TimedCursor(self._cursor.cursor(*args, **kwargs), self._owner, self._factory,
1706
+ self._mirror_handle)
1707
+ # A DuckDB child cursor dies when its parent closes, and __del__ closes a collected parent.
1708
+ child._parent = self
1709
+ return child
1710
 
1711
  def close(self):
1712
  if self._closed:
web/public/AIOS_DEPLOY_RECEIPT CHANGED
@@ -1 +1 @@
1
- e7366377d8b5a433064bb5bac1ca360154e1031ec518a938a60840001a147f3f
 
1
+ b93086b7fb1c4830b349b2bd2f7fcc5e3822b3277eaaec911955290e0bd91e86
web/src/apps/AppRail.tsx CHANGED
@@ -27,6 +27,7 @@ function railApplications(body: unknown): RailApplication[] {
27
  return body.applications.filter((row): row is RailApplication => {
28
  if (!row || typeof row !== "object" || typeof row.id !== "string" || !row.id
29
  || typeof row.name !== "string" || !row.name.trim() || seen.has(row.id)
 
30
  || row.capabilities?.read === false) return false;
31
  seen.add(row.id);
32
  return true;
@@ -41,7 +42,7 @@ function railHref(app: RailApplication): string {
41
  : `#/app?application=${encodeURIComponent(app.id)}`;
42
  }
43
 
44
- /** The left rail inside an App: every App the grant-filtered nav returns, the current one selected. */
45
  export function AppRail({ appId }: { appId: string }) {
46
  const tenant = currentTenant();
47
  const [revision, setRevision] = useState(0);
 
27
  return body.applications.filter((row): row is RailApplication => {
28
  if (!row || typeof row !== "object" || typeof row.id !== "string" || !row.id
29
  || typeof row.name !== "string" || !row.name.trim() || seen.has(row.id)
30
+ || (row.templateConnector !== "amazon" && row.templateConnector !== "amazon_ads")
31
  || row.capabilities?.read === false) return false;
32
  seen.add(row.id);
33
  return true;
 
42
  : `#/app?application=${encodeURIComponent(app.id)}`;
43
  }
44
 
45
+ /** The left rail inside an Amazon App: every Amazon App the grant-filtered nav returns, the current one selected. */
46
  export function AppRail({ appId }: { appId: string }) {
47
  const tenant = currentTenant();
48
  const [revision, setRevision] = useState(0);