Hardening: Restore V3 Search legacy compatibility and fix Hosted File specialized delete logic
- Restored legacy query aliases (qry_ae_obj_li__event, qry__event_file, etc.) across Event modules to fix build errors.
- Fixed Hosted File deletion logic in core__hosted_files.ts to use specialized /hosted_file/{id} endpoint with fake_delete support.
- Standardized ID field usage (hosted_file_id vs hosted_file_id_random) in Archive Content and Event File upload components.
- Updated TODO.md to reflect completed search restoration tasks.
This commit is contained in:
@@ -189,9 +189,11 @@
|
||||
let hosted_file_id = hosted_file_obj.hosted_file_id_random;
|
||||
|
||||
let event_file_data: key_val = {};
|
||||
event_file_data['hosted_file_id_random'] = hosted_file_id;
|
||||
event_file_data['hosted_file_id'] = hosted_file_id;
|
||||
// event_file_data['hosted_file_id_random'] = hosted_file_id;
|
||||
event_file_data['for_type'] = link_to_type;
|
||||
event_file_data['for_id_random'] = link_to_id;
|
||||
event_file_data['for_id'] = link_to_id;
|
||||
// event_file_data['for_id_random'] = link_to_id;
|
||||
event_file_data['filename'] = hosted_file_obj.filename;
|
||||
event_file_data['extension'] = hosted_file_obj.extension;
|
||||
event_file_data['enable'] = true;
|
||||
|
||||
@@ -334,7 +334,7 @@
|
||||
api_cfg: $ae_api,
|
||||
archive_content_id: $idaa_slct.archive_content_id,
|
||||
data_kv: {
|
||||
hosted_file_id_random: hosted_file_obj_li[0].hosted_file_id_random,
|
||||
hosted_file_id: hosted_file_obj_li[0].hosted_file_id,
|
||||
// file_path: hosted_file_obj_li[0].file_path,
|
||||
filename: hosted_file_obj_li[0].filename,
|
||||
file_extension: hosted_file_obj_li[0].extension,
|
||||
@@ -384,7 +384,7 @@
|
||||
api_cfg: $ae_api,
|
||||
archive_content_id: $idaa_slct.archive_content_id,
|
||||
data_kv: {
|
||||
hosted_file_id_random: slct_hosted_file_id,
|
||||
hosted_file_id: slct_hosted_file_id,
|
||||
// file_path: hosted_file_obj_li[0].file_path,
|
||||
filename: slct_hosted_file_obj.filename,
|
||||
file_extension: slct_hosted_file_obj.extension,
|
||||
@@ -561,7 +561,7 @@
|
||||
bind:upload_complete={
|
||||
$idaa_slct.archive_content_obj.upload_complete
|
||||
}
|
||||
{log_lvl}
|
||||
log_lvl={1}
|
||||
>
|
||||
{#snippet label()}
|
||||
<span>
|
||||
@@ -629,7 +629,7 @@
|
||||
api_cfg: $ae_api,
|
||||
archive_content_id: $idaa_slct.archive_content_id,
|
||||
data_kv: {
|
||||
hosted_file_id_random: null,
|
||||
hosted_file_id: null,
|
||||
file_path: null,
|
||||
filename: null,
|
||||
file_extension: null,
|
||||
|
||||
Reference in New Issue
Block a user