Closed shelleydoljack closed 1 month ago
We want to refactor https://github.com/sul-dlss/libsys-airflow/blob/d7ee828fbc9e4011e1e04e30836b90cda35cc923/libsys_airflow/plugins/digital_bookplates/apps/digital_bookplates_batch_upload_view.py#L22-L40 so that the digital_bookplate_instances DAG and the UI use the same function to trigger the digital_bookplate_979 DAG.
The launch_add_979_fields_task currently looks for params with key "druids_for_instance_id". The data coming out of instances_from_po_lines in the digital_bookplates_instances DAG is input into the launch_add_979_fields_task but it looks like this:
https://github.com/sul-dlss/libsys-airflow/blob/d7ee828fbc9e4011e1e04e30836b90cda35cc923/libsys_airflow/plugins/digital_bookplates/bookplates.py#L168
Need to wrap in a "druids_for_instance_id" key.