Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
040d7b6f
Commit
040d7b6f
authored
Nov 28, 2019
by
Igor Drozdov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove id and description from mr widget poll serializer
parent
71c398d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
app/serializers/merge_request_poll_widget_entity.rb
app/serializers/merge_request_poll_widget_entity.rb
+3
-1
No files found.
app/serializers/merge_request_poll_widget_entity.rb
View file @
040d7b6f
# frozen_string_literal: true
class
MergeRequestPollWidgetEntity
<
IssuableEntity
class
MergeRequestPollWidgetEntity
<
Grape
::
Entity
include
RequestAwareEntity
expose
:auto_merge_strategy
expose
:available_auto_merge_strategies
do
|
merge_request
|
AutoMergeService
.
new
(
merge_request
.
project
,
current_user
).
available_strategies
(
merge_request
)
# rubocop: disable CodeReuse/ServiceClass
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment