Description
When we create a version as part of a version rollback, we should set request_metadata on the intermediary FileUpload, so that metadata about the activity is recorded properly.
That means passing core.get_request_metadata() to the task responsible for the rollback from devhub and the API, and then passing it down to duplicate_addon_version() so that it's set on the FileUpload. While we're at it, a similar thing should be done for the ip address, so that we don't use user.last_login_ip as the IP, but instead the IP of the request (core.get_remote_addr()).
Acceptance Criteria
┆Issue is synchronized with this Jira Task
Description
When we create a version as part of a version rollback, we should set
request_metadataon the intermediaryFileUpload, so that metadata about the activity is recorded properly.That means passing
core.get_request_metadata()to the task responsible for the rollback from devhub and the API, and then passing it down toduplicate_addon_version()so that it's set on theFileUpload. While we're at it, a similar thing should be done for the ip address, so that we don't useuser.last_login_ipas the IP, but instead the IP of the request (core.get_remote_addr()).Acceptance Criteria
┆Issue is synchronized with this Jira Task