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:
@@ -14,6 +14,14 @@ order_obj_li = {
|
||||
'table_name': 'v_order',
|
||||
'tbl_name_update': 'order',
|
||||
'base_name': Order_Base,
|
||||
# V3 Search Security:
|
||||
'searchable_fields': [
|
||||
'order_id_random', 'account_id_random', 'organization_id_random',
|
||||
'contact_id_random', 'person_id_random', 'user_id_random',
|
||||
'order_status_id', 'order_status_name', 'payment_status_id',
|
||||
'payment_status_name', 'external_id', 'source_code', 'notes',
|
||||
'enable', 'hide', 'priority', 'group', 'created_on', 'updated_on'
|
||||
],
|
||||
},
|
||||
'order_line': {
|
||||
'tbl': 'order_line',
|
||||
@@ -27,6 +35,12 @@ order_obj_li = {
|
||||
'table_name': 'v_order_line',
|
||||
'tbl_name_update': 'order_line',
|
||||
'base_name': Order_Line_Base,
|
||||
# V3 Search Security:
|
||||
'searchable_fields': [
|
||||
'order_line_id_random', 'order_id_random', 'product_id_random',
|
||||
'name', 'description', 'enable', 'hide', 'priority', 'group',
|
||||
'created_on', 'updated_on'
|
||||
],
|
||||
},
|
||||
'order_cart': {
|
||||
'tbl': 'order_cart',
|
||||
@@ -37,6 +51,12 @@ order_obj_li = {
|
||||
'table_name': 'v_order_cart',
|
||||
'tbl_name_update': 'order_cart',
|
||||
'base_name': Order_Cart_Base,
|
||||
# V3 Search Security:
|
||||
'searchable_fields': [
|
||||
'order_cart_id_random', 'account_id_random', 'person_id_random',
|
||||
'user_id_random', 'session_id', 'enable', 'hide', 'priority',
|
||||
'group', 'created_on', 'updated_on'
|
||||
],
|
||||
},
|
||||
'order_cart_line': {
|
||||
'tbl': 'order_cart_line',
|
||||
@@ -47,5 +67,10 @@ order_obj_li = {
|
||||
'table_name': 'v_order_cart_line',
|
||||
'tbl_name_update': 'order_cart_line',
|
||||
'base_name': Order_Cart_Line_Base,
|
||||
# V3 Search Security:
|
||||
'searchable_fields': [
|
||||
'order_cart_line_id_random', 'order_cart_id_random', 'product_id_random',
|
||||
'enable', 'hide', 'priority', 'group', 'created_on', 'updated_on'
|
||||
],
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user