Menu

#30 Two-day jobs not displayed on either day

v_1.2.x
open
5
2005-02-22
2005-02-21
Chris Wade
No

When a job crosses over the midnight mark (like if
you're up coding all night), it will not be displayed
on the home page summary on either the day it started
or the day it was finished. Needs to display on one or
the other, or both.

A question is, do we display these jobs on both (or
all) of the days that lie within their start and end
dates, or only on one of them?

If it displays on both days, do we split the hours and
show only the hours in that day's summary that actually
occurred on that day? Showing all the hours for that
job would end up including some of the next day's or
previous day's hours and make it appear at first
glance, to someone flipping through the days, as though
more hours were spent than actually were. Summaries
would also come out wrong for that day. Or do we allow
it to display the entire job with all the hours
included in it on every day on which it occurred?

On the other hand, if it displays on only one of the
days with the total number of hours for that job, which
day should it display on? I think it would be the last
day (the day it finishes on) or the current day, if
it's still running. That way when we go to start a job
in the morning we can see immediately if we left one
running from last night.

Any thoughts?

Discussion

  • Chris Wade

    Chris Wade - 2005-02-22
    • assigned_to: nobody --> genghishack
     
  • Chris Wade

    Chris Wade - 2005-02-22

    Logged In: YES
    user_id=845727

    I committed a change to CVS for the file inc/job.inc.php. I
    made it so that when a job exists on two or more days, it
    and all of its hours will be displayed on its close date on
    the home page, or on the current day if it's a running job.

    I did it this way because it's easier to handle the time
    this way. The only ambiguity here is that days with
    multi-day jobs will end up with hours in their overall
    summary that were actually worked on a previous day.

     
  • Chris Wade

    Chris Wade - 2005-02-22

    Updated job.inc.php file

     

Log in to post a comment.

MongoDB Logo MongoDB