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],
  }]
}
Parameters

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

Returns

the status detail as inlined string