Skip to content

Commit

Permalink
rubocop and lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielRMuller committed Aug 15, 2024
1 parent 89c0491 commit e268cf4
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 14 deletions.
3 changes: 2 additions & 1 deletion app/assets/javascripts/actions/story.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,8 @@ export const toggleStory =
}
};

export const dragDropStory = (storyId, projectId, newAttributes, from) =>
export const dragDropStory =
(storyId, projectId, newAttributes, from) =>
async (dispatch, getState, { Story }) => {
const { stories } = getState();

Expand Down
1 change: 0 additions & 1 deletion app/assets/javascripts/components/story/StoryItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
isHighlighted,
isAccepted,
} from '../../models/beta/story';
import { releaseIsLate, isHighlighted, isAccepted } from '../../models/beta/story';
import classNames from 'classnames';

export const StoryItem = ({
Expand Down
29 changes: 17 additions & 12 deletions app/models/story.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,23 @@ class Story < ApplicationRecord
start_date.beginning_of_day,
end_date.end_of_day)
}
scope :not_accepted_or_recently_accepted, ->(current_iteration_start) { where.not(state: 'accepted').or(where("accepted_at >= ?", current_iteration_start))}
scope :collapsed_story, -> {select(
:id,
:title,
:description,
:estimate,
:story_type,
:state,
:requested_by_name,
:owned_by_initials,
:project_id
)}
scope :not_accepted_or_recently_accepted, ->(current_iteration_start) {
where.not(state: 'accepted').or(where('accepted_at >= ?', current_iteration_start))
}

scope :collapsed_story, -> {
select(
:id,
:title,
:description,
:estimate,
:story_type,
:state,
:requested_by_name,
:owned_by_initials,
:project_id
)
}

delegate :suppress_notifications, to: :project

Expand Down

0 comments on commit e268cf4

Please sign in to comment.