feat(registry): standardize searchable_fields and add developer reminders
- Added id_random, account_id_random, created_on, and updated_on to searchable whitelists. - Standardized field coverage for Core and Other (Archive/HostedFile) modules. - Added Developer Handshake comments to prevent future whitelist/model desync. - Verified via new E2E registry test suite.
This commit is contained in:
@@ -33,9 +33,9 @@ other_obj_li = {
|
||||
],
|
||||
# V3 Search Security:
|
||||
'searchable_fields': [
|
||||
'sponsorship_id_random', 'account_id_random', 'name', 'description',
|
||||
'website_url', 'level_str', 'enable', 'hide', 'priority', 'group',
|
||||
'created_on', 'updated_on'
|
||||
'id', 'account_id', 'id_random', 'sponsorship_id_random', 'account_id_random',
|
||||
'name', 'description', 'website_url', 'level_str', 'enable', 'hide',
|
||||
'priority', 'group', 'created_on', 'updated_on'
|
||||
],
|
||||
},
|
||||
'sponsorship_cfg': {
|
||||
@@ -50,8 +50,9 @@ other_obj_li = {
|
||||
'base_name': Sponsorship_Cfg_Base,
|
||||
# V3 Search Security:
|
||||
'searchable_fields': [
|
||||
'sponsorship_cfg_id_random', 'account_id_random', 'name',
|
||||
'description', 'enable', 'hide', 'priority', 'sort', 'group', 'notes', 'created_on', 'updated_on'
|
||||
'id', 'account_id', 'id_random', 'sponsorship_cfg_id_random', 'account_id_random',
|
||||
'name', 'description', 'enable', 'hide', 'priority', 'sort', 'group',
|
||||
'notes', 'created_on', 'updated_on'
|
||||
],
|
||||
},
|
||||
'archive': {
|
||||
@@ -85,9 +86,10 @@ other_obj_li = {
|
||||
],
|
||||
# V3 Search Security:
|
||||
'searchable_fields': [
|
||||
'archive_id_random', 'account_id_random', 'archive_type_id_random',
|
||||
'archive_type', 'name', 'description', 'filename', 'original_location', 'enable',
|
||||
'hide', 'priority', 'sort', 'group', 'notes', 'created_on', 'updated_on'
|
||||
'id', 'account_id', 'id_random', 'archive_id_random', 'account_id_random',
|
||||
'archive_type_id_random', 'archive_type', 'name', 'description',
|
||||
'filename', 'original_location', 'enable', 'hide', 'priority',
|
||||
'sort', 'group', 'notes', 'created_on', 'updated_on'
|
||||
],
|
||||
},
|
||||
'archive_content': {
|
||||
@@ -105,7 +107,8 @@ other_obj_li = {
|
||||
'public_read': True,
|
||||
# V3 Search Security:
|
||||
'searchable_fields': [
|
||||
'archive_content_id_random', 'account_id_random', 'archive_id_random',
|
||||
'id', 'account_id', 'archive_id', 'hosted_file_id',
|
||||
'id_random', 'archive_content_id_random', 'account_id_random', 'archive_id_random',
|
||||
'archive_content_type', 'lu_media_type', 'name', 'description',
|
||||
'filename', 'file_extension', 'original_location', 'original_url',
|
||||
'enable', 'hide', 'priority', 'sort', 'group', 'notes', 'created_on', 'updated_on'
|
||||
@@ -136,7 +139,7 @@ other_obj_li = {
|
||||
],
|
||||
# V3 Search Security:
|
||||
'searchable_fields': [
|
||||
'id', 'account_id', 'hosted_file_id_random', 'account_id_random',
|
||||
'id', 'account_id', 'id_random', 'hosted_file_id_random', 'account_id_random',
|
||||
'hash_sha256', 'title', 'description', 'filename', 'extension',
|
||||
'content_type', 'enable', 'hide', 'priority', 'sort', 'group',
|
||||
'notes', 'created_on', 'updated_on'
|
||||
@@ -156,7 +159,7 @@ other_obj_li = {
|
||||
'base_name': Hosted_File_Link_Base,
|
||||
# V3 Search Security:
|
||||
'searchable_fields': [
|
||||
'id', 'account_id', 'hosted_file_id', 'account_id_random',
|
||||
'id', 'account_id', 'hosted_file_id', 'id_random', 'account_id_random',
|
||||
'hosted_file_id_random', 'link_to_type', 'link_to_id_random',
|
||||
'created_on', 'updated_on'
|
||||
],
|
||||
@@ -171,7 +174,8 @@ other_obj_li = {
|
||||
'base_name': Stripe_Log_Base_In,
|
||||
# V3 Search Security:
|
||||
'searchable_fields': [
|
||||
'stripe_log_id_random', 'account_id_random', 'person_id_random',
|
||||
'id', 'account_id', 'person_id', 'user_id', 'event_id', 'order_id',
|
||||
'id_random', 'stripe_log_id_random', 'account_id_random', 'person_id_random',
|
||||
'user_id_random', 'event_id_random', 'order_id_random', 'type',
|
||||
'status', 'created_on', 'updated_on'
|
||||
],
|
||||
@@ -188,7 +192,8 @@ other_obj_li = {
|
||||
'base_name': Cont_Edu_Cert_Base,
|
||||
# V3 Search Security:
|
||||
'searchable_fields': [
|
||||
'cont_edu_cert_id_random', 'account_id_random', 'event_id_random',
|
||||
'id', 'account_id', 'event_id',
|
||||
'id_random', 'cont_edu_cert_id_random', 'account_id_random', 'event_id_random',
|
||||
'name', 'description', 'code', 'enable', 'hide', 'priority', 'sort',
|
||||
'group', 'notes', 'created_on', 'updated_on'
|
||||
],
|
||||
@@ -205,7 +210,8 @@ other_obj_li = {
|
||||
'base_name': Cont_Edu_Cert_Person_Base,
|
||||
# V3 Search Security:
|
||||
'searchable_fields': [
|
||||
'cont_edu_cert_person_id_random', 'cont_edu_cert_id_random',
|
||||
'id', 'cont_edu_cert_id', 'person_id',
|
||||
'id_random', 'cont_edu_cert_person_id_random', 'cont_edu_cert_id_random',
|
||||
'person_id_random', 'enable', 'hide', 'priority', 'sort', 'group', 'notes',
|
||||
'created_on', 'updated_on'
|
||||
],
|
||||
@@ -222,9 +228,9 @@ other_obj_li = {
|
||||
'base_name': Grant_Base,
|
||||
# V3 Search Security:
|
||||
'searchable_fields': [
|
||||
'grant_id_random', 'account_id_random', 'code', 'name',
|
||||
'description', 'enable', 'hide', 'priority', 'sort', 'group', 'notes',
|
||||
'created_on', 'updated_on'
|
||||
'id', 'account_id', 'id_random', 'grant_id_random', 'account_id_random',
|
||||
'code', 'name', 'description', 'enable', 'hide', 'priority', 'sort',
|
||||
'group', 'notes', 'created_on', 'updated_on'
|
||||
],
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user