Can't edit forked files inthe web UI
When I try to edit https://docs.gitlab.com/ee/api/graphql/getting_started.html and commit it, I get "Someone edited the file the same time you did." every time.
The link leads to https://gitlab.com/gitlab-org/gitlab/-/blob/abitrolly-master-patch-51927/doc/api/graphql/getting_started.md which is 404.
Preview doesn't work too - An error occurred previewing the blob
.
Steps to reproduce
- Click "Edit this page" link leading to https://gitlab.com/gitlab-org/gitlab/blob/master/doc/api/graphql/getting_started.md
- Edit it, the URL is https://gitlab.com/gitlab-org/gitlab/-/update/master/doc/api/graphql/getting_started.md
- Hit "Commit changes"
Further details
This is the updated content I am trying to save.
### Command line You can run GraphQL queries from the command line on your local machine using `curl` or HTTPie. A GraphQL request can be made as a `POST` request to `/api/graphql` with the query as the payload. You can authorize your request by generating a [personal access token](../../user/profile/personal_access_tokens.md) to use as a bearer token. Example with `curl`: ```shell GRAPHQL_TOKEN= curl "https://gitlab.com/api/graphql" --header "Authorization: Bearer $GRAPHQL_TOKEN" --header "Content-Type: application/json" --request POST --data "{\"query\": \"query {currentUser {name}}\"}" ``` Example with HTTPie: ```shell GRAPHQL_TOKEN= http POST "https://gitlab.com/api/graphql" "Authorization:Bearer $GRAPHQL_TOKEN" query="{currentUser {name}}" ``` Note that these tools do not natively support GitLab pagination and you need to implement it yourself.
Edited by Achilleas Pipinellis