ergoserv / redmine-progressive-projects-list

⛏️ Redmine plugin that powers a project list with progress bars for every project and version.
https://ergoserv.github.io/redmine-progressive-projects-list/
MIT License
109 stars 57 forks source link

Problem with closed issuue with fixed version and separated due date #40

Closed asmikhailov closed 9 years ago

asmikhailov commented 9 years ago

In project_decorator.rb

def opened_due_date
    @opened_due_date ||= [
     issues.open.maximum('due_date'),
     shared_versions.maximum('effective_date'),
     Issue.fixed_version(shared_versions).maximum('due_date')
    ].compact.max
  end

Issue.fixed_version(shared_versions).maximum('due_date') filter closed issues with open. So any closed project with such issues shows as overdue

stgeneral commented 9 years ago

@asmikhailov seems that versions should be closed to be excluded from the list. Could you please check if your problems is related to open versions or closed. Thank you.

stgeneral commented 9 years ago

@asmikhailov seems you are right. Will try to fix it and release a new version.