Epic subscriptions don't work
Summary
ENV: Gitlab Next
I cannot subscribe to a milestone, even though this button is available in the frontend. The HTTP response of the request sent to graphql is 200, the actual data contains a permission / endpoint error, as you can see:
request
request:
POST https://gitlab.com/api/graphql
[{"operationName":"epicSetSubscription","variables":{"epicSetSubscriptionInput":{"iid":"11766","groupPath":"charts","subscribedState":true}},"query":"mutation epicSetSubscription($epicSetSubscriptionInput: EpicSetSubscriptionInput!) {\n epicSetSubscription(input: $epicSetSubscriptionInput) {\n clientMutationId\n errors\n __typename\n }\n}\n"}]
response:
[{"data":{"epicSetSubscription":null},"errors":[{"message":"The resource that you are attempting to access does not exist or you don't have permission to perform this action","locations":[{"line":2,"column":3}],"path":["epicSetSubscription"]}]}]
Steps to reproduce
try to subscribe to epic gitlab-org/charts&1 (closed) as a logged in user not related to gitlab.
Example Project
What is the current bug behavior?
http status 200, and no subscription generated, no information is provided to the user other than "something went wrong"
What is the expected correct behavior?
subscription is generated, or detailed error "you cannot subscribe to epics" / "no-one can subscribe to epics" / "only project members can subscribe to epics"
Output of checks
gitlab.com -> next enabled
Edited by Brett Walker