<div dir="ltr">As long as we don't expect to have a 1-to-1 relation between the new "spent times per session" and launch times I think it will be fine.<div><br></div><div>We have to make sure everyone understand this will not be 100% reliable. We might loose some of these spent times when the laptop or activity crashes, activities could be left opened for hours etc, but, I don't think we should be worried in the practice. As Walter said, is still better than nothing.<div>
<div><br></div><div>I see benefit in both approaches, and I guess they are not mutually exclusive:</div><div><br></div><div>One Big Sum: it could be interesting to use this information to sort entries in the journal ie., "sort entries by spent time", so it would be good to have that info already processed, it could have some value.<br>
</div><div><br></div><div>Series: the benefit of having this split as series instead of just one big sum, is that it could give extra information about the time its being spent on each "session" individually.</div>
</div><div><br></div><div>Regarding harvest, we can carefully drop that placeholder, and add a new table for storing these times, if needed.</div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Mar 28, 2014 at 6:53 AM, Walter Bender <span dir="ltr"><<a href="mailto:walter.bender@gmail.com" target="_blank">walter.bender@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Sorry for chiming in late. I was indespoised yesterday.<br>
<br>
I think there is no harm in gathering the data as a series. If we have<br>
missing elements due to crashes, etc., it is still better than<br>
nothing. Originally, I was thinking of adding something in the same<br>
place where we trigger write_file so that we accumulated data each<br>
time the activity was in the background or closed (a bit more robust)<br>
but honestly, I don't think it really matters so much).<br>
<div><div class="h5"><br>
<br>
On Thu, Mar 27, 2014 at 4:02 PM, Gonzalo Odiard <<a href="mailto:godiard@sugarlabs.org">godiard@sugarlabs.org</a>> wrote:<br>
><br>
><br>
><br>
> On Thu, Mar 27, 2014 at 4:17 PM, Manuel Quiñones <<a href="mailto:manuq@laptop.org">manuq@laptop.org</a>> wrote:<br>
>><br>
>> 2014-03-27 15:23 GMT-03:00 Gonzalo Odiard <<a href="mailto:godiard@sugarlabs.org">godiard@sugarlabs.org</a>>:<br>
>> > Maybe have sense save the spent time as a list too,<br>
>> > like we do with launch times.<br>
>> > Looks like a non invasive change, and a good source of information.<br>
>><br>
>> Good point, is the other option I was handling. Is a trivial patch too:<br>
>><br>
>> <a href="https://github.com/manuq/sugar-toolkit-gtk3/pull/8/files" target="_blank">https://github.com/manuq/sugar-toolkit-gtk3/pull/8/files</a><br>
>><br>
>> I think this one is definetely better.<br>
>><br>
>> I was in doubt for two reasons: 1. because unlike launch_time, this<br>
>> spent-times metadata will not be saved if the activity does not end<br>
>> properly: could be a crash, a programming error, end of battery, etc.<br>
>> So the item N of spent-times will not necessarily correspont to item N<br>
>> of launch-times.<br>
>><br>
><br>
> While is true you don't have how much time was spent in every session,<br>
> the sequence is good data anyway.<br>
><br>
>><br>
>> And secondly, because the simpler option satisfies the placeholder<br>
>> that is currently in Harvest<br>
>><br>
>> <a href="https://github.com/tchx84/harvest-server/blob/master/sql/001-harvest.sql#L24" target="_blank">https://github.com/tchx84/harvest-server/blob/master/sql/001-harvest.sql#L24</a><br>
>><br>
>> The second one will require a new table in Harvest. But that's an<br>
>> easy change too.<br>
><br>
><br>
> Ok, would be good have tch involved then.<br>
><br>
>><br>
>><br>
>> Side note: I see we have a horrible mix of styles in metadata, some<br>
>> names use underscore (title_set_by_user, activity_id) and some use<br>
>> minus character (share-scope, icon-color, launch-times). Does anyone<br>
>> know the preferred style?<br>
>><br>
><br>
> No idea about that<br>
<br>
</div></div>This has always bothered me, but I am not sure how we address it<br>
without breaking lots of code.<br>
<br>
><br>
> Gonzalo<br>
<span class="HOEnZb"><font color="#888888"><br>
-walter<br>
<br>
--<br>
Walter Bender<br>
Sugar Labs<br>
<a href="http://www.sugarlabs.org" target="_blank">http://www.sugarlabs.org</a><br>
</font></span></blockquote></div><br></div>