-
-
Notifications
You must be signed in to change notification settings - Fork 554
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
Only one running timesheet: automatically stop others #386
Conversation
automatically stop other time sheets when starting a new one
@lduer thanks for the contribution! Adding these settings to
Soft limit will be converted to the theme setting and hard_limit should be used to detect how many active records a user can have. Default values should be different than the above (probably 3 and 10). You would need to add the config keys to the Configuration class and map them in the AppExtension. |
For me, the naming and the use of the timesheet settings are ok :) ( I cannot imagine a configuration, where users have to allow 10 simultaneously running timerecords, but that's another part of the story) In the following week, I'll adapt my changes and add some documentation and tests. Just for my understanding: The limit in the repository |
Yes, that's exactly what I had in mind. Keep the newest entries running. |
I did some work but I think some features are still missing:
|
Let me think about that. |
On the one side it is a very handy feature to be able to directly switch a task without first having to stop the last one. I guess we can find users that prefer either way. What do you say? |
I think I cannot follow clearly.
Are talking about my implementation of Regarding my question:
I've read some of kimai's docs and website and due to "It’s simplicity is its strength" I want to withdraw this suggestion for the moment. I worked on a timetracking implementation (better to say: "time-documentation") few years ago and the strict requirement was not to allow 2 entries at the same time for the same user. For the missing implementation of the flash message: I'm a bit busy at the moment and will submit some code asap. |
I was addressing the two possible thoughts one could have about auto-stopping entries:
For the special case with I wanted to address that I am simply not sure what the best way would be to implement that feature. We should also switch the default |
…andling for stopping records
I'm good with this, implemented your requested changes. Additional thoughts about your Do you want me to add |
And where should I add the translation for the Exception: f813464#diff-9f87c76ff254d43b462a2debdd6e8437R287 Or are these never translated? |
I'll have a look this week, sorry for the delay! |
Works pretty awesome! I'll push some documentation changes later and then merge it |
I pushed a small change, mainly documentation. |
# Conflicts: # config/packages/kimai.yaml
refactor durationOnly setting
@lduer do you want to have a last look before I merge? |
👍 Thanks for your improvements Too bad that I don't have much free time left for coding at the moment. |
Feedback is enough. In that case I will do a last test run and merge it. |
Any update on this? I'd also love to see this merged :) |
I am so sorry for being so late on this one. Had a lot of private stuff to clarify in the meantime. |
I haven't tested it again. I think it's important to keep in mind, that this merge will break the configuration: The only open question from my side: #386 (comment) |
Stil having |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. If you use Kimai on a daily basis, please consider donating to support further development of Kimai. |
Description
For my usecase, I need the previous Timesheet to stop when the user starts a new one.
The Pull request #308 already mentions this "problem". I tried to improve it.
As suggested in the (comment of 308), I used the
active_warning
setting to detect if the running entries have to be stopped.Note: In my opinion, it's not correct to use a parameter from the "theme" stettings to detect the stop-mode. After discussing and reviewing, I'll add the tests and update the documentation.
Types of changes
Checklist