Detect lunch time when suggesting tasks
When it is not enough hours WorkHours context currently suggests tasks assuming that lunch time is 13:00 - 14:00 for everyone. But this time may differ for employees...
The WorkHours context should be able to “detect” the lunch time of an employee by extracting it from previous database records. Currently similar is done to detect work hours...
I do not use WorkHours context mostly because lunch time is not detected correctly...
#1 Updated by Andriy Lesyuk over 12 years ago
The main issue here is how to determine lunch time.. Currently I see several options:
- Extract information about tasks time, calculate lunch time, calculate average time.
- Create a context which will save away times for previous day and this way will detect lunch time (but what if Jabber client is buggy?).
#3 Updated by Andriy Lesyuk over 12 years ago
I like option #2 more... Detected lunch time can be saved in memory and dumped to special files on terminate. Anyway it is perhaps a good idea to store user’s away/online status changes for the previous/current work day. I believe this information can be useful...
#7 Updated by Andriy Lesyuk over 12 years ago
- Target version changed from 1.02 to 1.03
- % Done changed from 20 to 50
A special context Presence has been added. This context collects information about user’s online/away times and stores it in a special custom field. The context is trying to detect buggy clients (which are sending online presence even if a user is away) and to remove too short periods (less than a half of an hour). Because of this I can’t be sure that information collected is valid and the context should be well tested. The testing is to be done under production environment (currently the context only collects data - nothing uses them). The production environment has many clients and some of them are buggy - that’s why the context can be tested only on production.
In other words this bug is not going to be fixed in 1.02. So postponing it to 1.03...