Skip to content

Remove all watchers from a repository #5917

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

Closed
2 tasks done
MarkusAmshove opened this issue Jan 31, 2019 · 4 comments
Closed
2 tasks done

Remove all watchers from a repository #5917

MarkusAmshove opened this issue Jan 31, 2019 · 4 comments
Labels
type/feature Completely new functionality. Can only be merged if feature freeze is not active. type/proposal The new feature has not been accepted yet but needs to be discussed first.

Comments

@MarkusAmshove
Copy link
Contributor

  • Gitea version (or commit ref): 1.7
  • Database (use [x]):
    • PostgreSQL
  • Can you reproduce the bug at https://try.gitea.io:
    • Not relevant

Description

I've migrated all our corporate repositories to a selfhosted Gitea instance and we're liking it a lot so far.

The migration was done via the REST API for every repository we had on another hosting service.

I'd like to turn on email notifications for mentions and PRs, but the migration sadly added all users as watchers to all repositories.

Is it possible to remove all watcher from all repositories? At the moment developers would get emails even for repositories they don't care about.

@techknowlogick techknowlogick added type/proposal The new feature has not been accepted yet but needs to be discussed first. type/feature Completely new functionality. Can only be merged if feature freeze is not active. labels Jan 31, 2019
@MarkusAmshove
Copy link
Contributor Author

Maybe there is a save SQL statement I can run? :-)

@lafriks
Copy link
Member

lafriks commented Jan 31, 2019

Yes you can easily remove that using sql

@sebastian-sauer
Copy link
Contributor

What you should keep in mind is that currently all users of a team will watch new repos added to the team by default and i think a new user added to a team will watch all repos of the team automatically.

There is a merged PR for 1.8 (#5852) to disable this automatic behaviour.

@MarkusAmshove
Copy link
Contributor Author

DELETE FROM watch was all I had to do and was save to execute.
Gitea needed to be restarted to see the changes in the UI.

The setting from #5852 will fix the original issue, so I'm closing 😄

@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type/feature Completely new functionality. Can only be merged if feature freeze is not active. type/proposal The new feature has not been accepted yet but needs to be discussed first.
Projects
None yet
Development

No branches or pull requests

4 participants