osclib/origin: origin_history(): expose source_(project,package,revision).
This is the best location to expose the information as the action context is already available. Alternatively, a lookup function accepting a request target_project and target_package could perform the equivalent of the client-side filter operation that is part of the initial search. This also alleviates additional queries that would be needed later.
This commit is contained in:
parent
b466442260
commit
edfef91b3d
@ -577,6 +577,9 @@ def origin_history(apiurl, target_project, package, user):
|
||||
'origin': annotation.get('origin', 'None'),
|
||||
'request': request.reqid,
|
||||
'state': request.state.name,
|
||||
'source_project': action.src_project,
|
||||
'source_package': action.src_package,
|
||||
'source_revision': action.src_rev,
|
||||
})
|
||||
|
||||
return history
|
||||
|
Loading…
x
Reference in New Issue
Block a user