Skip to content

[Bug]: Cannot rollback to previous version if there is a single version in other channel #15804

@diox

Description

@diox

What happened?

  • Enable version-rollback waffle switch
  • Submit a new add-on choosing to host on AMO and have that version approved
  • Submit a second version, still choosing to host it on AMO and have that version approved
  • Submit a third version, this time self-hosted, and have that version approved
  • In devhub in the versions list page, you should have the button to roll back to a previous version
  • When opening the version rollback modal, note that it allows you to select a channel, but that field is disabled
  • Trying to submit the form will raise an error that the field is required and that you must select a channel and version to rollback to.

What did you expect to happen?

No error. Since the "self" channel only has one version, it probably shouldn't be presented at all, or only that channel option should be disabled.

Is there an existing issue for this?

  • I have searched the existing issues

┆Issue is synchronized with this Jira Task

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions