Skip to content

Atom 36.0.0

Choose a tag to compare

@github-actions github-actions released this 01 Dec 14:19
· 138 commits to dd51840eb4659165f234f968739b38579e064034 since this release

Upgrade (projects must change): only calls that send the removed params; none of Atom's pages do. Each removed param gets 400 naming its replacement, never a different action.

  • mode is the write mode on every object create and update (docs/write-mode.md). ?broker=redis on /my/object-create and /my/object-update → ?mode=redis. Create routes (/public, /my, /admin) take now (default), buffer, redis, rabbitmq, kafka, celery; update routes (/my, /admin) the same but buffer. Broker values come from config_queue_brokers.
  • A delete deletes (docs/delete.md). /my/object-delete, /admin/object-delete, /my/user-delete and /admin/user-delete lose mode. A soft delete is an update sending deleted_at (any value; Atom stores the database's now() and deleted_by_id, and a row already deleted keeps its first deletion); deleted_at: null restores. Setting it needs the table in control.tier.<tier>.delete too. mode=soft → PUT /<tier>/object-update {"id": 5, "deleted_at": "now"}; mode=restore → {"id": 5, "deleted_at": null}; users: /admin/user-update and /my/user-update the same (root's and an admin's own deleted_at never change).
  • Import mode is a query param: POST /admin/postgres-import?mode=create, with table and file still in the form. A CSV update with a deleted_at column soft deletes or restores.
  • POST /admin/blob-container-update → POST /admin/blob-container-write (permission id 80 kept), query service, mode, container; func_blob_container_update → func_blob_container_write.
  • MongoDB is removed: POST /my/mongodb-object-create (id 34), POST /admin/mongodb-import (id 76), client_mongodb, func_mongodb_create, func_mongodb_import, config_mongodb_url, config_mongodb_my_create_allowed and the pymongo dependency. It was create and import only, and Postgres jsonb keeps documents with indexes, transactions and Atom's access rules. Startup names a removed setting still set; a project that needs MongoDB opens its own client with func_extend_client. Users granted 76 keep a stale id: UPDATE users SET permissions = array_remove(permissions, 76::smallint) WHERE 76 = ANY(permissions).
  • Removed: func_object_soft_delete, func_user_soft_delete.

Features:

  • Broker modes on /public and /admin object create and /admin/object-update; every check of the route runs before a job is queued.
  • /my/message-inbox-read mode is optional, default all.
  • New docs: write-mode.md (now, buffer or a broker: when rows are written and what a crash loses) and delete.md (delete, soft delete, restore, deactivate).