Skip to content

Cancelling pushes does not work in the admin UI (regression) #1384

@kriswest

Description

@kriswest

Describe the bug
A user is currently unable to cancel their own push. The page reloads, but the push remains unmodified, appearing under pending in the dashboard and without an update having been applied to the record.

The API call made to cancel is:
http://localhost:8080/push/0000000000000000000000000000000000000000__fe691faa06d628214b6dd03c8ce71b2f34794460/cancel

where reject uses a different path for the API:

http://localhost:8080/api/v1/push/0000000000000000000000000000000000000000__fe691faa06d628214b6dd03c8ce71b2f34794460/reject

To Reproduce
Steps to reproduce the behaviour:

  1. Push to a proxied repository
  2. Visit the admin UI and login as teh user that pushed
  3. Navigate to the push in the dashboard
  4. Hit the cancel button - the page will reload but the

Expected behaviour
A push is cancellable, and appears in the cancelled tab afterwards.

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions