Open SimonLab opened 2 years ago
@SimonLab these are all valid questions.
agree with removing person_id
from the Timer.start
š
Timer.stop
should allow the passing of the stop
value but should default to now
.
I've started to break to many things. I need to review first this section to understand fully how the item/timers structure is created: https://github.com/dwyl/mvp/blob/7e94e47a831a8436bfc97a8e8d1d1171e5ef8c25/lib/app/item.ex#L97-L247
I think the functions linked to the timers are correct and I misunderstood the structure
@SimonLab yeah, the disclaimer was my attempt to warn you. š¤Ŗ If you can wrap your head around it, Iām very happy for you to attempt to simplify it. But it needs to be time-boxed. šš»
@SimonLab if you have time to review this please go for it. š¤
I've noticed a few things that I want to update or have a detailed looked at to make sure I didn't miss something:
[x] Remove the
person_id
value as the schema doesn't have it:[ ] Make the
stop
function consistent with thestart
, ie pass the stop value as parameter:[ ] Combine start/stop function to
update
function[ ] Review how toggle stop the timer. This mean that when a
done
item returns toactive
status we also stop the timer again?