github atom36942/atom v32.0.0
Atom 32.0.0

one hour ago

Upgrade (projects must change):

  • Settings renamed to the config_is_* pattern: config_webhook_is_active → config_is_webhook_active, config_sftp_is_host_verify → config_is_sftp_host_verify, config_cors_allow_credentials → config_is_cors_allow_credentials (startup names the new key if .env or config_extend.py still has an old one).

  • POST /public/otp-verify (was GET): type, value and otp go in the body, never the URL.

  • Functions: every public func_* takes keyword arguments only. Renamed or merged functions:

    • func_auth_login_finish(app_state=, user=) (was 5 arguments);
    • func_middleware_check_user_status (replaces the deactivated/deleted pair);
    • func_query_runner_client_read (replaces the MSSQL and ClickHouse client readers);
    • func_page_limit (replaces func_message_limit).
  • connection: a route never lists connection in its params; it reads request.state.connection, which the middleware has already checked against is_connection_param.

  • Startup checks: a path registered with two methods stops startup (one path, one method).

  • Status codes: a wrong /auth/login-password answers 401, and /my/user-update with another user's id answers 403 (both were 400).

  • Log database is explicit again: config_postgres_db_log_api (default "master") names the database for the API log. Atom places its log_api table and that table's control entries there at startup, and writes, cleanup, Monitor and /my/api-usage follow it.

  • Messages: each pair of users is its own conversation (5↔1 and 5↔9 no longer merge). The inbox and threads hide soft-deleted messages, pass the table gate, and mark as read in the database they read from.

  • Fixes:

    • a cached reply keeps its content type;
    • a failed mark-as-read and a failed webhook delivery show on Monitor's App tab;
    • /public distinct validates order;
    • MSSQL and ClickHouse exports are named <engine>_query_result.csv;
    • sync.py says "same commit" correctly.
  • One implementation each: duplicated logic in function/ and router/ is merged:

    • user state checks, the token cache, MSSQL retry, AI SQL, Resend, blob URLs, the client open/close, queue outcomes;
    • the object read/export/create/delete, group-by and distinct routes, through func_route_*.
      Handler names follow their paths (a test keeps it that way). Dead code is removed, and the scripts check their .env keys at start.
  • Pages:

    • Monitor:
      • one Connections card ("server in use of max_connections", with this app's pool under it), master-only waiting locks;
      • Users created and Roles, RAM over time and Object types side by side at one height;
      • fixed column heads, and the log database named on Log API.
    • PgWeb:
      • opens on the first table;
      • the SQL runner always comes with the SQL tab;
      • 8 px between every card;
      • grouped header actions;
      • no stripes;
      • no size in the table header.
    • Every page and app: slim scrollbars, faint until hovered, and every search box says "Search".
    • atom.html: one modal per chapter, with short explained cards.
  • config.py sections are reordered (app, database, auth and its relatives, cors, postgres, log_api, …), and config_retention_day_user_soft_deleted moved into auth. ruff adds PIE, PLW and RUF100.

Don't miss a new atom release

NewReleases is sending notifications on new releases.