Skip to content

Commit 88ef72c

Browse files
pedrokelvinalaxalves
authored andcommitted
Merging branch 'devel' of https://github.com/fga-gpp-mds/Falko-2017.2-BackEnd into US21_manter_nota
Signed-off-by: Álax Alves <[email protected]>
2 parents f97b492 + edd1d32 commit 88ef72c

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

app/controllers/issues_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ def convert_form_params(issue)
134134
end
135135

136136
def assingnee_counter(issue)
137+
assignees = []
137138
if issue.assignees.count > 0
138-
assignees = []
139139
issue.assignees.each do |assignee|
140140
assignees.push(assignee.login)
141141
end

app/controllers/sprints_controller.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ def get_burndown
8787
set_ideal_line(days_of_sprint, ideal_line, total_points)
8888

8989
coordenates = { x: date_axis, y: points_axis, ideal_line: ideal_line }
90+
9091
burned_stories = burned_stories.sort_by { |key, value| key }
9192

9293
render json: coordenates

app/controllers/stories_controller.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ def create
6262
end
6363

6464
def update
65+
if story_params[:pipeline] == "Done"
66+
@story.final_date = Date.today
67+
end
6568
if @story.update(story_params)
66-
if @story.pipeline == "Done"
67-
@story.final_date = Date.today
68-
end
6969
render json: @story
7070
else
7171
render json: @story.errors, status: :unprocessable_entity

0 commit comments

Comments
 (0)