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

Improve Stopwatch behavior #18930

Merged
merged 23 commits into from
Apr 25, 2022
Merged

Improve Stopwatch behavior #18930

merged 23 commits into from
Apr 25, 2022

Conversation

Gusted
Copy link
Contributor

@Gusted Gusted commented Feb 27, 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.

- 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
Copy link
Contributor Author

Gusted commented Feb 27, 2022

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
routers/web/events/events.go Outdated Show resolved Hide resolved
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 lunny and delvh February 28, 2022 20:18
@Gusted
Copy link
Contributor Author

Gusted commented Feb 28, 2022

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

Signed-off-by: Andrew Thornton <art27@cantab.net>
@zeripath
Copy link
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
Copy link
Contributor Author

Gusted commented Mar 28, 2022

Should be all good now.

@Gusted
Copy link
Contributor Author

Gusted commented Apr 25, 2022

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