swagger-api / swagger-api/swagger-ui
"Cancel" button should cancel the ongoing request
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 29k
- Forks
- 9.3k
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 25
Description
Describe the solution you'd like
When a user hits the "Cancel" button while a request is in progress, I expect the ongoing request to be canceled. Instead the request continues in the background. This can be done easily with an AbortController that gets canceled upon clicking Cancel.
Describe alternatives you've considered
Perhaps it was an intentional decision not to cancel the requests. If so maybe this can at least be an optional setting?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the request flow and the "Cancel" button handling in Swagger UI, then trace how an AbortController could be connected to the ongoing request. Done means clicking Cancel stops the request instead of allowing it to continue in the background; consider whether an optional setting is needed if cancellation is intentionally unsupported.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100