Add "can_current_user_push_to_branch" to GraphQL Query
This is a follow-up issue to MR !65293 (merged), where we introduced the "Delete" blob functionality in Vue.
However we run into a missing info that is not currently provided in GraphQL for the query project.can_current_user_push_to_branch?(branch_name)
. This information is required to render the hidden_field_tag 'create_merge_request'
. Link to code
Just for reference, the push_code
information is provided in GraphQL:

Proposal
backend
Can we please create the can_current_user_push_to_branch
via GraphQL
frontend
Include this new field in the frontend query and use it for the create_merge_request
input
Example
- <input type="hidden" name="create_merge_request" :value="1" />
+ <input v-if="!canPushToBranch" type="hidden" name="create_merge_request" :value="1" />
Designs
- Show closed items
Activity
-
Newest first Oldest first
-
Show all activity Show comments only Show history only
- Samantha Ming changed the description
Compare with previous version changed the description
- Samantha Ming added backend devopscreate groupsource code labels
added backend devopscreate groupsource code labels
- Maintainer
Setting label(s) Category:Source Code Management sectiondev based on groupsource code.
- 🤖 GitLab Bot 🤖 added Category:Source Code Management sectiondev labels
added Category:Source Code Management sectiondev labels
- Author Maintainer
@sean_carroll can I please get some backend help on this
It's needed to ensure we have the proper permission guard in place for the delete blob functionality > (follow up of MR !65293 (merged)). No rush to work on this for this sprint. The blob refactor is still behind a FF, so we still have some time Collapse replies - Developer
1 - Developer
@sean_carroll Adding the %14.3 milestone
- Sean Carroll added typefeature label
added typefeature label
- Samantha Ming added frontend label
added frontend label
- Samantha Ming added frontend-weight1 label
added frontend-weight1 label
- Samantha Ming changed the description
Compare with previous version changed the description
- Author Maintainer
- Sarah Waldner changed milestone to %14.3
changed milestone to %14.3
- Samantha Ming changed the description
Compare with previous version changed the description
- 🤖 GitLab Bot 🤖 added [deprecated] Accepting merge requests label
added [deprecated] Accepting merge requests label
- Jacques Erasmus added to epic &5531 (closed)
added to epic &5531 (closed)
- Jacques Erasmus added workflowready for development label
added workflowready for development label
- 🤖 GitLab Bot 🤖 mentioned in issue gitlab-org/quality/triage-reports#4263 (closed)
mentioned in issue gitlab-org/quality/triage-reports#4263 (closed)
- Developer
- André Luís added Stretch label
added Stretch label
- 🤖 GitLab Bot 🤖 mentioned in issue gitlab-org/quality/triage-reports#4358 (closed)
mentioned in issue gitlab-org/quality/triage-reports#4358 (closed)
- 🤖 GitLab Bot 🤖 mentioned in issue gitlab-org/quality/triage-reports#4425 (closed)
mentioned in issue gitlab-org/quality/triage-reports#4425 (closed)
- Jacques Erasmus mentioned in issue #324351 (closed)
mentioned in issue #324351 (closed)
- 🤖 GitLab Bot 🤖 mentioned in issue gitlab-org/quality/triage-reports#4510 (closed)
mentioned in issue gitlab-org/quality/triage-reports#4510 (closed)
- 🤖 GitLab Bot 🤖 mentioned in issue gitlab-org/quality/triage-reports#4600 (closed)
mentioned in issue gitlab-org/quality/triage-reports#4600 (closed)
- 🤖 GitLab Bot 🤖 mentioned in issue gitlab-org/quality/triage-reports#4667 (closed)
mentioned in issue gitlab-org/quality/triage-reports#4667 (closed)
- Developer
We're going to try to tackle this without Backend support for dev. We might send it for review, though.
1 1 - André Luís changed milestone to %14.4
changed milestone to %14.4
- André Luís removed Stretch backend labels
- 🤖 GitLab Bot 🤖 mentioned in issue gitlab-org/quality/triage-reports#4760 (closed)
mentioned in issue gitlab-org/quality/triage-reports#4760 (closed)
- 🤖 GitLab Bot 🤖 mentioned in issue gitlab-org/quality/triage-reports#4850 (closed)
mentioned in issue gitlab-org/quality/triage-reports#4850 (closed)
- 🤖 GitLab Bot 🤖 mentioned in issue gitlab-org/quality/triage-reports#4939 (closed)
mentioned in issue gitlab-org/quality/triage-reports#4939 (closed)
- 🤖 GitLab Bot 🤖 mentioned in issue gitlab-org/quality/triage-reports#5008 (closed)
mentioned in issue gitlab-org/quality/triage-reports#5008 (closed)
- André Luís added backend label
added backend label
- Developer
Moving this over to 14.6, tentatively.
- André Luís changed milestone to %14.6
changed milestone to %14.6
- 🤖 GitLab Bot 🤖 mentioned in issue gitlab-org/quality/triage-reports#5102 (closed)
mentioned in issue gitlab-org/quality/triage-reports#5102 (closed)
- 🤖 GitLab Bot 🤖 mentioned in issue gitlab-org/quality/triage-reports#5169 (closed)
mentioned in issue gitlab-org/quality/triage-reports#5169 (closed)
- 🤖 GitLab Bot 🤖 mentioned in issue gitlab-org/quality/triage-reports#5283 (closed)
mentioned in issue gitlab-org/quality/triage-reports#5283 (closed)
- André Luís set weight to 1
set weight to 1
- 🤖 GitLab Bot 🤖 mentioned in issue gitlab-org/quality/triage-reports#5351 (closed)
mentioned in issue gitlab-org/quality/triage-reports#5351 (closed)
- André Luís mentioned in issue create-stage#12954 (closed)
mentioned in issue create-stage#12954 (closed)
- Mark Lapierre added quad-planningcomplete-no-action label
added quad-planningcomplete-no-action label
- Developer
Picked up as Deliverable for 14.6!
- André Luís added Deliverable label
added Deliverable label
- André Luís assigned to @jerasmus
assigned to @jerasmus
- 🤖 GitLab Bot 🤖 removed [deprecated] Accepting merge requests label
removed [deprecated] Accepting merge requests label
- Jacques Erasmus mentioned in merge request !75017 (merged)
mentioned in merge request !75017 (merged)
- Maintainer
Taken care of in !75017 (merged), closing!
- Jacques Erasmus closed
closed
- 🤖 GitLab Bot 🤖 mentioned in issue gl-retrospectives/create-stage/source-code#44 (closed)
mentioned in issue gl-retrospectives/create-stage/source-code#44 (closed)
- Sean Carroll changed epic to &7128 (closed)
changed epic to &7128 (closed)
- Sean Carroll added Engineering Allocation label
added Engineering Allocation label
- Maintainer
@sean_carroll
, please ensure the required labels are present for Engineering Allocation measurements:- An
~Eng-Consumer::*
label - An
~Eng-Producer::*
label - A
~priority::*
label - A
~severity::*
label when the type is ~"bug"
- An