More work on updating Archives and Posts to use tmp_sort_x and other changes.

This commit is contained in:
Scott Idem
2025-06-04 14:04:51 -04:00
parent f38d9b58ab
commit dbbd8209cc
14 changed files with 383 additions and 3 deletions

View File

@@ -798,6 +798,12 @@ export const properties_to_save = [
'created_on',
'updated_on',
// Generated fields for sorting locally only
'tmp_sort_1',
'tmp_sort_2',
// 'tmp_sort_a',
// 'tmp_sort_b',
// From SQL view
'file_count',
'file_count_all',
@@ -864,6 +870,10 @@ export async function process_ae_obj__event_location_props({
created_on: obj.created_on,
updated_on: obj.updated_on,
// Generated fields for sorting locally only
tmp_sort_1: `${obj.group}_${obj.priority}_${obj.sort}_${obj.updated_on ?? obj.created_on}`,
tmp_sort_2: `${obj.group}_${obj.priority}_${obj.sort}_${obj.updated_on}_${obj.created_on}`,
// From SQL view
file_count: obj.file_count,
file_count_all: obj.file_count_all,