From 3969b2fb1e94c3ce15b1229810be5a40a80f91b4 Mon Sep 17 00:00:00 2001 From: mprahl Date: Aug 07 2018 14:33:56 +0000 Subject: Expose the component batch in the API to help in future debugging --- diff --git a/module_build_service/models.py b/module_build_service/models.py index a6342b8..aa3d7fd 100644 --- a/module_build_service/models.py +++ b/module_build_service/models.py @@ -747,6 +747,7 @@ class ComponentBuild(MBSBase): if show_state_url: state_url = get_url_for('component_build', api_version=api_version, id=self.id) json.update({ + 'batch': self.batch, 'state_trace': [{'time': _utc_datetime_to_iso(record.state_time), 'state': record.state, 'state_name': INVERSE_BUILD_STATES[record.state],