Codeminer42/cm42-central

View on GitHub
app/assets/javascripts/selectors/done.js

Summary

Maintainability
A
0 mins
Test Coverage
export const mountPastIterations = (pastIterations, stories) =>
  pastIterations
    .map(sprint => ({
      ...sprint,
      number: sprint.iterationNumber,
      startDate: sprint.startDate,
      endDate: sprint.endDate,
      stories: stories.filter(story => sprint.storyIds.includes(story.id)),
      isDropDisabled: true,
    }))
    .reverse();