-
-
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
Add UI to delete tracked times #14100
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this code will never be used ... - change it
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: 6543 <6543@obermui.de>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should ask for confirmation in dialog if you really want to delete it
@lafriks done! |
Codecov Report
@@ Coverage Diff @@
## master #14100 +/- ##
=======================================
Coverage 41.76% 41.77%
=======================================
Files 748 749 +1
Lines 80103 80143 +40
=======================================
+ Hits 33458 33476 +18
- Misses 41123 41147 +24
+ Partials 5522 5520 -2
Continue to review full report at Codecov.
|
The use of a rounded button seems a bit odd to me. Don't we already have rectangular buttons in use in the history somewhere? Would prefer a rectangular button with text and maybe a icon. |
If I see correctly what this PR is doing, there is currently no support to revert time using the API, right? |
@lafriks Need your review again. |
@6543 wait, it's already supported for the API but not for the web interface? Strange… |
See #14100 (comment), otherwise LGTM. |
@lunny done |
Adds a button on time tracker issue comments to delete a tracked time again (in an append-only-log style).
This button is available only to the poster of the tracked time and site admins.
Caveat is, that this does not work for times created until now, as the comment has no reference to the time ID. (This could probably be resolved once via a migration that mactches comments & times with common fields, but thats far out of my comfort zone)
I'm not very familiar with gitea codebase yet, so better check things twice.
In particular I don't know if a migration is needed for the fields added to
Comment
..fixes #2642