From 3969b2fb1e94c3ce15b1229810be5a40a80f91b4 Mon Sep 17 00:00:00 2001 From: mprahl Date: Mon, 6 Aug 2018 20:08:03 -0400 Subject: [PATCH] Expose the component batch in the API to help in future debugging --- module_build_service/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/module_build_service/models.py b/module_build_service/models.py index a6342b8b..aa3d7fd2 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],