Refactor: Modularize object definitions and implement V3 Search beta recommendations.
This commit is contained in:
@@ -92,4 +92,12 @@ if __name__ == "__main__":
|
||||
}
|
||||
test_search("journal", query_nested, "Nested Logic (AND + OR group)")
|
||||
|
||||
# 6. Hosted File Link Search
|
||||
query_file_link = {
|
||||
"and": [
|
||||
{"field": "link_to_type", "op": "eq", "value": "journal"}
|
||||
]
|
||||
}
|
||||
test_search("hosted_file_link", query_file_link, "Hosted File Link Search (link_to_type='journal')")
|
||||
|
||||
print("Tests Complete.")
|
||||
|
||||
@@ -3,6 +3,7 @@ from app.models.sponsorship_cfg_models import *
|
||||
from app.models.archive_models import *
|
||||
from app.models.archive_content_models import *
|
||||
from app.models.hosted_file_models import *
|
||||
from app.models.hosted_file_link_models import *
|
||||
from app.models.e_stripe_models import *
|
||||
from app.models.cont_edu_cert_models import *
|
||||
from app.models.cont_edu_cert_person_models import *
|
||||
@@ -126,6 +127,19 @@ other_obj_li = {
|
||||
'hide', 'priority', 'sort', 'group', 'notes', 'created_on', 'updated_on',
|
||||
],
|
||||
},
|
||||
'hosted_file_link': {
|
||||
'tbl': 'hosted_file_link',
|
||||
'tbl_default': 'hosted_file_link',
|
||||
'tbl_update': 'hosted_file_link',
|
||||
'mdl': Hosted_File_Link_Base,
|
||||
'mdl_default': Hosted_File_Link_Base,
|
||||
'mdl_in': Hosted_File_Link_Base,
|
||||
'mdl_out': Hosted_File_Link_Base,
|
||||
# Legacy V2 keys:
|
||||
'table_name': 'hosted_file_link',
|
||||
'tbl_name_update': 'hosted_file_link',
|
||||
'base_name': Hosted_File_Link_Base,
|
||||
},
|
||||
'stripe_log': {
|
||||
'tbl': 'stripe_log',
|
||||
'tbl_update': 'stripe_log',
|
||||
|
||||
Reference in New Issue
Block a user