Closed sshetenhelm closed 7 months ago
Tested with batch process 823.
Instead of displaying all 3 in the table, as I refreshed the 'batch process' page, it showed first only mus
(which was first in the uploaded csv) and then only div
(which was last in the uploaded csv). So, it's showing one at a time, in the order of the spreadsheet, as the process is... processed.
I've done a few tests on test and local. It looks like this bug happens when the last item in the csv does not have any parent objects associated with it (in the BP 823 test case above, the div set does not have any PO's). Do we want the BP table to display all the admin sets that are present in the uploaded CSV? Or do we only want to show the admin sets that have parent objects in the set?
I think the best way would be to display all admin sets that were included in the csv, so users aren't under the impression that the process did not "read" that the admin set or something.
However, if that behavior is significantly more difficult to get working than having only admin sets that have parent objects, I would be satisfied to go that route as well. In PROD, there shouldn't be any "active" admin sets that don't have parents (JSS isn't in use so wouldn't matter).
Yep, no problem! BP table will now display all admin sets that are present in the csv.
PR: https://github.com/yalelibrary/yul-dc-management/pull/1353
Looks good on Test!
Deployed to UAT
Works as expected on UAT! Thank you!
Ready to close :)
Story In MGMT UAT, I did two 'Export parents by admin set' batch processes using the Batch Process Template that had two admin sets for each process, but the table is only displaying one.
Processes: Batch process 1816 Batch process 1803
Screenshot:
1816 should have both brbl and div 1803 should have both law and div
When exporting multiple admin sets, we would like all admin set keys to display in the Batch Process table.
Acceptance