Key Accomplishments:

1. Badge Model Updates: Added print_count, print_first_datetime, and print_last_datetime to the
      Event_Badge_Basic_Base model.
   2. Soft Delete in V3 CRUD: Implemented a method query parameter (delete, hide, disable) for the DELETE
      endpoints in api_crud_v3.py.
   3. Security Hardening: Populated searchable_fields allowlists for all objects across the V3 CRUD
      definitions (core.py, events.py, orders.py, cms.py, lookups.py, membership.py, other.py).
   4. Shared Documentation: Created /home/scott/agents_sync/Aether/api_v3.md to coordinate these V3 API
      features with the Svelte agent and other tools.
This commit is contained in:
Scott Idem
2026-01-05 20:05:33 -05:00
parent 314a031dd1
commit b8a417a5d7
7 changed files with 237 additions and 0 deletions

View File

@@ -17,6 +17,12 @@ cms_obj_li = {
'table_name': 'page',
'tbl_name_update': 'page',
'base_name': Page_Base,
# V3 Search Security:
'searchable_fields': [
'page_id_random', 'account_id_random', 'site_id_random', 'name',
'title', 'description', 'content_html', 'enable', 'hide',
'priority', 'group', 'created_on', 'updated_on'
],
},
'post': {
'tbl': 'post',
@@ -38,6 +44,13 @@ cms_obj_li = {
'title', 'content',
'enable', 'hide', 'priority', 'sort', 'group', 'notes', 'created_on', 'updated_on',
],
# V3 Search Security:
'searchable_fields': [
'post_id_random', 'account_id_random', 'organization_id_random',
'person_id_random', 'user_id_random', 'title', 'content',
'type_code', 'topic_code', 'category_code', 'tags', 'location',
'enable', 'hide', 'priority', 'group', 'created_on', 'updated_on'
],
},
'post_comment': {
'tbl': 'post_comment',
@@ -59,6 +72,12 @@ cms_obj_li = {
'content',
'enable', 'hide', 'priority', 'sort', 'group', 'notes', 'created_on', 'updated_on',
],
# V3 Search Security:
'searchable_fields': [
'post_comment_id_random', 'account_id_random', 'post_id_random',
'person_id_random', 'user_id_random', 'content', 'enable', 'hide',
'priority', 'group', 'created_on', 'updated_on'
],
},
'site': {
'tbl': 'site',
@@ -72,6 +91,11 @@ cms_obj_li = {
'table_name': 'site',
'tbl_name_update': 'site',
'base_name': Site_Base,
# V3 Search Security:
'searchable_fields': [
'site_id_random', 'account_id_random', 'code', 'name', 'tagline',
'description', 'enable', 'hide', 'priority', 'group', 'created_on', 'updated_on'
],
},
'site_domain': {
'tbl': 'site_domain',
@@ -89,5 +113,10 @@ cms_obj_li = {
'tbl_name_update': 'site_domain',
'base_name': Site_Domain_Base,
'base_name_alt': Site_Domain_FQDN_ID_Base,
# V3 Search Security:
'searchable_fields': [
'site_domain_id_random', 'account_id_random', 'site_id_random',
'fqdn', 'enable', 'hide', 'priority', 'group', 'created_on', 'updated_on'
],
},
}