Skip to content

Commit e268cf4

Browse files
rubocop and lint fixes
1 parent 89c0491 commit e268cf4

File tree

3 files changed

+19
-14
lines changed

3 files changed

+19
-14
lines changed

app/assets/javascripts/actions/story.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,8 @@ export const toggleStory =
249249
}
250250
};
251251

252-
export const dragDropStory = (storyId, projectId, newAttributes, from) =>
252+
export const dragDropStory =
253+
(storyId, projectId, newAttributes, from) =>
253254
async (dispatch, getState, { Story }) => {
254255
const { stories } = getState();
255256

app/assets/javascripts/components/story/StoryItem.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import {
99
isHighlighted,
1010
isAccepted,
1111
} from '../../models/beta/story';
12-
import { releaseIsLate, isHighlighted, isAccepted } from '../../models/beta/story';
1312
import classNames from 'classnames';
1413

1514
export const StoryItem = ({

app/models/story.rb

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,23 @@ class Story < ApplicationRecord
2020
start_date.beginning_of_day,
2121
end_date.end_of_day)
2222
}
23-
scope :not_accepted_or_recently_accepted, ->(current_iteration_start) { where.not(state: 'accepted').or(where("accepted_at >= ?", current_iteration_start))}
24-
scope :collapsed_story, -> {select(
25-
:id,
26-
:title,
27-
:description,
28-
:estimate,
29-
:story_type,
30-
:state,
31-
:requested_by_name,
32-
:owned_by_initials,
33-
:project_id
34-
)}
23+
scope :not_accepted_or_recently_accepted, ->(current_iteration_start) {
24+
where.not(state: 'accepted').or(where('accepted_at >= ?', current_iteration_start))
25+
}
26+
27+
scope :collapsed_story, -> {
28+
select(
29+
:id,
30+
:title,
31+
:description,
32+
:estimate,
33+
:story_type,
34+
:state,
35+
:requested_by_name,
36+
:owned_by_initials,
37+
:project_id
38+
)
39+
}
3540

3641
delegate :suppress_notifications, to: :project
3742

0 commit comments

Comments
 (0)