WIP more metadata reporting w/ burnettk

This commit is contained in:
jasquat 2022-11-29 16:00:19 -05:00
parent 385e8cea2b
commit 17831eafa7
1 changed files with 4 additions and 4 deletions

View File

@ -936,10 +936,10 @@ def process_instance_list(
stock_columns = ProcessInstanceReportService.get_column_names_for_model(ProcessInstanceModel)
# print(f"stock_columns: {stock_columns}")
# import pdb; pdb.set_trace()
# for column in process_instance_report.report_metadata['columns']:
# if column not in stock_columns:
# # continue
for column in [{'accessor': 'key1'}]:
for column in process_instance_report.report_metadata['columns']:
if column['accessor'] in stock_columns:
continue
# for column in [{'accessor': 'key1'}]:
# print(f"column: {column['accessor']}")
# process_instance_query = process_instance_query.outerjoin(ProcessInstanceMetadataModel, ProcessInstanceModel.id == ProcessInstanceMetadataModel.process_instance_id, ProcessInstanceMetadataModel.key == column['accessor'])
instance_metadata_alias = aliased(ProcessInstanceMetadataModel)