-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Ability to edit and delete Time Tracking entries #2642
Comments
Should be an option for admins only, maybe with you can only delete your own times if you're not an admin. |
Maybe more detailed settings for who can delete it, like:
Another thing is to lock any modification (eg. monthly report) for repository, user or combination of both, but that can be new feature... |
I think only repo admin & user who created time record can edit&delete it |
I think that should be very simple like @lafriks said. I.e, only repo admin & user who created time record should can edit&delete it. |
I think that we have two options for this.
|
What if Gitea would only support deleting time entries for the time being? This should be way easier to implement than an edit modal and will allow us to start using the time tracking feature. |
@MrHaroldA I'm currently working on this. |
Instead of deleting or directly editing an entry, which could smash traceability/accountability, I would rather see an 'Adjustment' action that allows adding negative (or positive) entries to the cumulative time duration. There should be two base forms of adjustment, with three options:
This promotes an accounting style of time management, where you can't change what is done, but you can acknowledge a mistake, correct it the best you can, and move forward. |
This is way overkill for our needs: some simple logging of who changed the logged hours would suffice in all our use cases. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions. |
This issue has been automatically closed because of inactivity. You can re-open it if needed. |
I hope it will be implemented, would be awesome. Also a table to overview all the tracked time in the repo would be great also. |
Currently working with Gitea Version: 1.11.0 as "Owner" and repository administrator, and I can't edit/delete (even) my own time for some reason. The red cross next to the entry is not displayed. Not sure if this should be reported separately as a bug. |
@FriedrichVonSchnitzel I don't use the time tracking function, but I've just read a comment in another thread from a user saying that their problems with time tracking not working were solved when they've upgraded to 1.11.4. Can you check if that's your case too? Also, I wouldn't stay on 1.11.0 because it has some annoying bugs that have been fixed in 1.11.3 and up. |
@guillep2k thank you for your reply, we have updated to 1.11.4, but the red cross next to the entry is still not displayed. I've also tried unchecking the "Let Only Contributors Track Time" in the repository settings. |
This has got me a few times, I accidentally entered the wrong time and there's no way to adjust it. I think, at a minimum, be able to clear it, or just edit it. It already shows it in the activity of the issue anyways? Why make this more difficult than it needs to be. If no edit or delete, how about being able to subtract time? |
I'll try to implement a UI for this in the coming days/weeks. As a stop gap: the
|
Description
I'm testing the feature Time tracking (#967), which I think that is very useful, but should allow that the user modify or delete a time tracking event because It can make a mistake.
Imagine that I made the mistake of not remembering to close a task or that I entered a very large number in error. It would make this feature useless.
At the moment, I am able to update using the database directly.
What do you think about?
The text was updated successfully, but these errors were encountered: