Opened 12 years ago

Last modified 11 years ago

#10313 closed defect

schedule=alap: ticket finish date must default to milestone but not to today (if dependencies don't give a date) — at Version 2

Reported by: falkb Owned by: Chris Nelson
Priority: high Component: TracJsGanttPlugin
Severity: critical Keywords:
Cc: Trac Release: 0.12

Description (last modified by Ryan J Ollos)

        def _schedule_task_alap(t):

        ...

            # If we haven't scheduled this yet, do it now.
            if t.get('calc_finish') == None:
                # If there is a finish set, use it
                if self.pm.isSet(t, 'finish'):
                    # Don't adjust for work week; use the explicit date.
                    finish = self.pm.parseFinish(t)
                    finish += timedelta(hours=options['hoursPerDay'])
                    finish = [finish, True]
                # Otherwise, compute finish from dependencies.
                else:
                    finish = _earliest_successor(t, _ancestor_finish(t))
                    
==> WRONG!          # If dependencies don't give a date, default to
==> WRONG!          # today at close of business
                    if finish == None:
                        # Start at midnight today
==> ask milestone       finish = datetime.today().replace(hour=0, 
                                                          minute=0, 
                                                          second=0, 
                                                          microsecond=0)

Please, could you tell me, how I change finish = datetime.today()... into something like finish = milestone.datetime()... ?

At present, all tickets without dependencies and without set fields.start or fields.finish are scheduled to start in the past which is nonsense. ALAP means to me such tickets need at least to start with a finish on milestone date.

Change History (3)

Changed 12 years ago by falkb

Attachment: alap_finishtoday.png added

comment:1 Changed 12 years ago by falkb

comment:2 Changed 12 years ago by Ryan J Ollos

Description: modified (diff)
Note: See TracTickets for help on using tickets.