Skip to content

[Task]: Set request metadata when rolling back version #16282

@diox

Description

@diox

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

  • rollback versions activity log ip shows ip and other metadata matching the request the rollback was originating from

┆Issue is synchronized with this Jira Task

Metadata

Metadata

Assignees

No one assigned
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions