Skip to content

Improve Stopwatch behavior#18930

Merged
6543 merged 23 commits into
go-gitea:mainfrom
Gusted:improve-watch
Apr 25, 2022
Merged

Improve Stopwatch behavior#18930
6543 merged 23 commits into
go-gitea:mainfrom
Gusted:improve-watch

Conversation

@Gusted

@Gusted Gusted commented Feb 27, 2022

Copy link
Copy Markdown
Contributor
  • Don't send empty stopwatch over and over again, only send once.
  • Stop interval to update stopwatch's timer when there is no more stopwatch.

- Don't send empty stopwatch over and over again, only send once.
- Stop interval to update stopwatch's timer when there is no more stopwatch.
@Gusted Gusted added type/enhancement An improvement of existing functionality performance/cpu labels Feb 27, 2022
@Gusted

Gusted commented Feb 27, 2022

Copy link
Copy Markdown
Contributor Author

Tagging performance/cpu as it doesn't have to send data over HTTP for most use-cases(user which are logged in but don't have any stopwatches/timers).

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Feb 27, 2022
@Gusted Gusted added this to the 1.17.0 milestone Feb 27, 2022
@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 Feb 27, 2022
Comment thread routers/web/events/events.go Outdated
Comment thread web_src/js/features/stopwatch.js Outdated
Gusted and others added 3 commits February 27, 2022 15:17
@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 Feb 28, 2022
@Gusted Gusted requested review from delvh and lunny February 28, 2022 20:18
@Gusted

Gusted commented Feb 28, 2022

Copy link
Copy Markdown
Contributor Author

PR has changed pretty significant since e769c24 please re-check.,

Comment thread models/issue_stopwatch.go
Comment thread modules/eventsource/manager_run.go Outdated
Comment thread modules/eventsource/manager_run.go
Signed-off-by: Andrew Thornton <art27@cantab.net>
@zeripath

Copy link
Copy Markdown
Contributor

Test failure is related.

Gusted added 2 commits March 28, 2022 02:08
- The current test isn't expecting the noise from stopwatch, so simply
but hacky move up the code for notications. No behavior changes or anything.
@Gusted

Gusted commented Mar 28, 2022

Copy link
Copy Markdown
Contributor Author

Should be all good now.

@Gusted

Gusted commented Apr 25, 2022

Copy link
Copy Markdown
Contributor Author

At this point we're torturing the CI server every so often with new commits, time to get it merged?
image

@6543 6543 merged commit 4e912a6 into go-gitea:main Apr 25, 2022
@Gusted Gusted deleted the improve-watch branch April 25, 2022 20:46
zjjhot added a commit to zjjhot/gitea that referenced this pull request Apr 26, 2022
* giteaofficial/main:
  Add a new menu in file view to open blame view and fix blame view select range bug (go-gitea#19500)
  Fix two UI bugs: JS error in imagediff.js, 500 error in diff/compare.tmpl
  [skip ci] Updated translations via Crowdin
  Improve Stopwatch behavior (go-gitea#18930)
  Pass gitRepo down to GetRawDiff, since its used for main repo and wiki (go-gitea#19461)
  Use queue instead of memory queue in webhook send service (go-gitea#19390)
  add a directory prefix `gitea-src-VERSION` to release-tar-file (go-gitea#19396)
AbdulrhmnGhanem pushed a commit to kitspace/gitea that referenced this pull request Aug 24, 2022
- Don't send empty stopwatch over and over again, only send once.
- Stop interval to update stopwatch's timer when there is no more stopwatch.
@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
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. performance/cpu type/enhancement An improvement of existing functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants