Opened 11 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 Initial Version
Reported by: | falkb | Owned by: | Chris Nelson |
---|---|---|---|
Priority: | high | Component: | TracJsGanttPlugin |
Severity: | critical | Keywords: | |
Cc: | Trac Release: | 0.12 |
Description
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.
Note: See
TracTickets for help on using
tickets.