"Create Pull Request" button is not disabled after first click #8833

Closed
opened 2025-11-02 08:20:11 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @lehag92 on GitHub (Apr 15, 2022).

Description

I my project when a developer clicks several times "Create Pull Request" because of server load, 2 requests where sent to server, and 2 PRs created.
Same behaviour I can reproduce on try,giteahttps://try.gitea.io/
example:
Screenshot 2022-04-15 at 20 41 05

https://try.gitea.io/1234iiiii/test-PR/pulls

At least button can be disabled after first click. Or additional check on API that this PR already exists/

Gitea Version

1.16.5

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

EC2 server hosted with packet through systemd

Database

No response

Originally created by @lehag92 on GitHub (Apr 15, 2022). ### Description I my project when a developer clicks several times "Create Pull Request" because of server load, 2 requests where sent to server, and 2 PRs created. Same behaviour I can reproduce on [try,gitea](https://try.gitea.io)https://try.gitea.io/ example: <img width="702" alt="Screenshot 2022-04-15 at 20 41 05" src="https://user-images.githubusercontent.com/26865927/163603446-63181de0-da91-43ca-9725-6ead3d7ae7bc.png"> https://try.gitea.io/1234iiiii/test-PR/pulls At least button can be disabled after first click. Or additional check on API that this PR already exists/ ### Gitea Version 1.16.5 ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? EC2 server hosted with packet through systemd ### Database _No response_
GiteaMirror added the type/bug label 2025-11-02 08:20:11 -06:00
Author
Owner

@wxiaoguang commented on GitHub (Apr 16, 2022):

A longstanding problem with no progress yet.

@wxiaoguang commented on GitHub (Apr 16, 2022): A longstanding problem with no progress yet. * https://github.com/go-gitea/gitea/issues/17111
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#8833