fsanyoto commited on
Commit
7bbaa84
·
verified ·
1 Parent(s): 68cb19d

Deploy AIOS web (React glide grid + FastAPI slice)

Browse files
RELEASES.json CHANGED
@@ -1,4 +1,4 @@
1
  {
2
- "current": "d0564b87b",
3
  "releases": []
4
  }
 
1
  {
2
+ "current": "03583500e",
3
  "releases": []
4
  }
VERSION CHANGED
@@ -1 +1 @@
1
- d0564b87b
 
1
+ 03583500e
platform/harness/amazon_store.py CHANGED
@@ -5429,6 +5429,8 @@ def read_connector_status(docs):
5429
  pass
5430
  try:
5431
  doc = _doc(docs, key)
 
 
5432
  except Exception: # noqa: BLE001
5433
  return {}
5434
  connectors = doc.get("connectors") if isinstance(doc.get("connectors"), dict) else doc
@@ -5436,8 +5438,23 @@ def read_connector_status(docs):
5436
 
5437
 
5438
  def _status_stamp(status, connector):
 
5439
  row = status.get(connector) or {}
5440
- return row.get("lastGoodSyncAt")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5441
 
5442
 
5443
  def first_load_table_status(tasks, finished, failed, counts):
 
5429
  pass
5430
  try:
5431
  doc = _doc(docs, key)
5432
+ if key != SYNC_STATUS_DOC and (doc is None or isinstance(doc, dict) and not doc):
5433
+ doc = _doc(docs, SYNC_STATUS_DOC)
5434
  except Exception: # noqa: BLE001
5435
  return {}
5436
  connectors = doc.get("connectors") if isinstance(doc.get("connectors"), dict) else doc
 
5438
 
5439
 
5440
  def _status_stamp(status, connector):
5441
+ """Newest stored success across this provider's connections, retaining legacy flat entries."""
5442
  row = status.get(connector) or {}
5443
+ if not isinstance(row, dict):
5444
+ return None
5445
+ rows = [row] if "lastGoodSyncAt" in row else list(row.values())
5446
+ stamps = []
5447
+ for entry in rows:
5448
+ stamp = entry.get("lastGoodSyncAt") if isinstance(entry, dict) else None
5449
+ if not isinstance(stamp, str) or not stamp.strip():
5450
+ continue
5451
+ try:
5452
+ parsed = datetime.fromisoformat(stamp.replace("Z", "+00:00"))
5453
+ parsed = parsed.replace(tzinfo=timezone.utc) if parsed.tzinfo is None else parsed.astimezone(timezone.utc)
5454
+ except (ValueError, OverflowError):
5455
+ continue
5456
+ stamps.append((parsed, stamp))
5457
+ return max(stamps, key=lambda item: item[0])[1] if stamps else None
5458
 
5459
 
5460
  def first_load_table_status(tasks, finished, failed, counts):
web/public/AIOS_DEPLOY_RECEIPT CHANGED
@@ -1 +1 @@
1
- e1de89bad3aaf540f22bdef8c103a4008729aee598cf981bac73f891eb0d7bf6
 
1
+ aba033e50114e08633e6362a74f81a0e2a62907f4e26a1535dbc3779aed0a963