swh.deposit.api.converters module#

swh.deposit.api.converters.convert_status_detail(status_detail)[source]#

Given a status_detail dict, transforms it into a human readable string.

Dict has the following form (all first level keys are optional):

{
  'url': {
      'summary': "summary-string",
      'fields': [impacted-fields-list]
  },
  'metadata': [{
      'summary': "summary-string",
      'fields': [impacted-fields-list],
  }],
  'archive': [{
      'summary': "summary-string",
      'fields': [impacted-fields-list],
  }],
  'loading': [
      'error 1',
      'error 2',
  ],
}
Parameters:

status_detail (dict) – The status detail dict with the syntax mentioned

Returns:

the status detail as inlined string