Unverified Commit 72f9ad60 authored by John Chilton's avatar John Chilton Committed by GitHub
Browse files

Merge pull request #16356 from mvdbeek/hide_skipped_output

[23.1] Hide conditionally skipped output
parents 1c4eb704 c7a2af13
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -663,11 +663,15 @@ class DefaultToolAction(ToolAction):
            job.state = job.states.SKIPPED
            for output_collection in output_collections.out_collections.values():
                output_collection.mark_as_populated()
            for hdca in output_collections.out_collection_instances.values():
                hdca.visible = False
            object_store_populator = ObjectStorePopulator(trans.app, trans.user)
            for data in out_data.values():
                object_store_populator.set_object_store_id(data)
                data.extension = "expression.json"
                data.state = "ok"
                data.blurb = "skipped"
                data.visible = False
                with open(data.dataset.file_name, "w") as out:
                    out.write(json.dumps(None))
        job.preferred_object_store_id = preferred_object_store_id