- Synchronized searchable_fields (V3 whitelists) across all Primary and Active AE objects (Identity, People, Events, Journals, Posts, Archives, Business).
- Standardized Pydantic models for core objects to include the 10 common fields (id, id_random, enable, hide, priority, sort, group, notes, created_on, updated_on).
- Fixed field aliases and uncommented valid database columns in User_Base and Organization_Base.
- Pruned non-existent fields from searchable lists in legacy or config-specific definitions (account_cfg, user_role, log_client_viewing).
- Added system discovery and validation tools:
- ae_object_info.py: AE object status and metadata browser.
- export_all_interfaces.py: E2E TypeScript interface generator.
- Verification scripts for searchable field consistency.
- Updated Jan 8 milestone progress and platform roadmap in GEMINI.md.
124 lines
4.4 KiB
Python
124 lines
4.4 KiB
Python
from app.models.page_models import *
|
|
from app.models.post_models import *
|
|
from app.models.post_comment_models import *
|
|
from app.models.site_models import *
|
|
from app.models.site_domain_models import *
|
|
|
|
cms_obj_li = {
|
|
'page': {
|
|
'tbl': 'page',
|
|
'tbl_default': 'page',
|
|
'tbl_update': 'page',
|
|
'mdl': Page_Base,
|
|
'mdl_default': Page_Base,
|
|
'mdl_in': Page_Base,
|
|
'mdl_out': Page_Base,
|
|
# Legacy V2 keys:
|
|
'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', 'sort', 'group', 'notes', 'created_on', 'updated_on'
|
|
],
|
|
},
|
|
'post': {
|
|
'tbl': 'post',
|
|
'tbl_default': 'v_post',
|
|
'tbl_alt': 'v_post_detail',
|
|
'tbl_update': 'post',
|
|
'mdl': Post_Base,
|
|
'mdl_default': Post_Base,
|
|
'mdl_in': Post_Base,
|
|
'mdl_out': Post_Base,
|
|
# Legacy V2 keys:
|
|
'table_name': 'v_post',
|
|
'table_name_alt': 'v_post_detail',
|
|
'tbl_name_update': 'post',
|
|
'base_name': Post_Base,
|
|
'exp_default': [
|
|
'post_id_random',
|
|
'account_id_random',
|
|
'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', 'sort', 'group', 'notes',
|
|
'archive_on', 'created_on', 'updated_on'
|
|
],
|
|
},
|
|
'post_comment': {
|
|
'tbl': 'post_comment',
|
|
'tbl_default': 'v_post_comment',
|
|
'tbl_alt': 'v_post_comment_detail',
|
|
'tbl_update': 'post_comment',
|
|
'mdl': Post_Comment_Base,
|
|
'mdl_default': Post_Comment_Base,
|
|
'mdl_in': Post_Comment_Base,
|
|
'mdl_out': Post_Comment_Base,
|
|
# Legacy V2 keys:
|
|
'table_name': 'v_post_comment',
|
|
'table_name_alt': 'v_post_comment_detail',
|
|
'tbl_name_update': 'post_comment',
|
|
'base_name': Post_Comment_Base,
|
|
'exp_default': [
|
|
'post_comment_id_random',
|
|
'account_id_random', 'post_id_random',
|
|
'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', 'sort', 'group', 'notes', 'created_on', 'updated_on'
|
|
],
|
|
},
|
|
'site': {
|
|
'tbl': 'site',
|
|
'tbl_default': 'site',
|
|
'tbl_update': 'site',
|
|
'mdl': Site_Base,
|
|
'mdl_default': Site_Base,
|
|
'mdl_in': Site_Base,
|
|
'mdl_out': Site_Base,
|
|
# Legacy V2 keys:
|
|
'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', 'sort', 'group', 'notes', 'created_on', 'updated_on'
|
|
],
|
|
},
|
|
'site_domain': {
|
|
'tbl': 'site_domain',
|
|
'tbl_default': 'v_site_domain',
|
|
'tbl_alt': 'v_site_domain_fqdn_id',
|
|
'tbl_update': 'site_domain',
|
|
'mdl': Site_Domain_Base,
|
|
'mdl_default': Site_Domain_Base,
|
|
'mdl_alt': Site_Domain_FQDN_ID_Base,
|
|
'mdl_in': Site_Domain_Base,
|
|
'mdl_out': Site_Domain_Base,
|
|
# Legacy V2 keys:
|
|
'table_name': 'v_site_domain',
|
|
'table_name_alt': 'v_site_domain_fqdn_id',
|
|
'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', 'sort', 'group', 'notes', 'created_on', 'updated_on'
|
|
],
|
|
},
|
|
}
|