-
Notifications
You must be signed in to change notification settings - Fork 250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Review splitting and merging of activities #396
Comments
Upon further testing, I find that it always works as advertised, but the documentation could be clearer. When you create a new activity whose start and end time both lie within the interval of an existing activity, the existing activity will be split in two. If you only specify a start time then the previous activity is simply truncated, not split. |
interesting observation, useful, thanks ! |
Whether it fails or is a feature is a matter of opinion I suppose. Currently the behaviour is to truncate the ongoing activity at the start of the new activity, whether or not the new activity has an end time. It is done in __add_fact here. |
In my opinion, it would more consistent to split the ongoing activity A in two, inserting the new B inside, Besides, trying to insert a B without any end-time yields two on-going activities, But that will have to wait, after 2.3 to the very least. |
I agree about postponing this work.
I cannot replicate this behaviour. For me, ongoing activity A is terminated at the start-time of B, whether or not B has an end-time. There seem to be a number of possible improvements, so maybe the title should be "Review splitting and merging of activities" or maybe we should create another issue to gather the ideas. Among them:
|
Sorry for the noise, you are right. I was on an experimental branch. Removing the bug label. I agree with your points, except perhaps
Currently it is impossible to create overlapping activities, which seems a good feature ? |
Here's an example of overlapping activities that are not yet handled:
|
Related issue #235 |
According to the help pages,
hamster/help/C/merge.page
Lines 11 to 14 in 8326504
This does not work this way now. (the end part is simply disregarded)
The relevant code is still there:
hamster/src/hamster/storage/db.py
Lines 454 to 456 in 8326504
Need to investigate...
The text was updated successfully, but these errors were encountered: