Skip to content
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

When starting new stopwatch stop previous if it is still running #10533

Merged
merged 5 commits into from
Jul 12, 2020

Conversation

bobemoe
Copy link
Contributor

@bobemoe bobemoe commented Feb 28, 2020

Currently it is possible to start tracked time stopwatches on multiple issues at the same time.

The UX feedback of this is a bit confusing, fixes #10529

This PR will prevent multiple stopwatches running by stopping the current stopwatch when another one is started.

Maybe needs a config option if multiple tracking is deemed a required feature. Perhaps even 3 options Multiple Tracking: Prevent|Stop Other|Allow

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Apr 28, 2020
@stale stale bot added the issue/stale label Apr 28, 2020
@stale stale bot removed the issue/stale label May 5, 2020
@stale stale bot added the issue/stale label Jul 4, 2020
@stale stale bot removed the issue/stale label Jul 5, 2020
@bobemoe
Copy link
Contributor Author

bobemoe commented Jul 5, 2020

I still have this merged in locally. It's proving very useful for my workflow.

@zeripath
Copy link
Contributor

zeripath commented Jul 5, 2020

I think no one has looked at this because it is still marked WIP.

@zeripath
Copy link
Contributor

zeripath commented Jul 5, 2020

@bobemoe Could you update the first comment and title, and provide a bit more explanation as to what this is supposed to do and why it is useful.

@bobemoe bobemoe changed the title WIP: stop current stopwatch when another is started WIP: prevent multiple stopwatches running Jul 12, 2020
@bobemoe bobemoe changed the title WIP: prevent multiple stopwatches running prevent multiple stopwatches running Jul 12, 2020
@bobemoe
Copy link
Contributor Author

bobemoe commented Jul 12, 2020

@zeripath I've removed WIP so it can get some attention and updated the description, thanks.

@lafriks lafriks added the type/enhancement An improvement of existing functionality label Jul 12, 2020
@lafriks lafriks added this to the 1.13.0 milestone Jul 12, 2020
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Jul 12, 2020
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Jul 12, 2020
@lafriks lafriks changed the title prevent multiple stopwatches running When starting new stopwatch stop previous if it is still running Jul 12, 2020
@lafriks lafriks merged commit bac57ab into go-gitea:master Jul 12, 2020
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
@bobemoe bobemoe deleted the stopwatch branch December 13, 2020 08:25
@go-gitea go-gitea deleted a comment from stale bot Dec 24, 2020
@go-gitea go-gitea deleted a comment from stale bot Dec 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/enhancement An improvement of existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Automatically stop tracking time on one issue if I start tracking time on another
5 participants