This repository has been archived on 2024-01-11. You can view files and clone it, but cannot push or open issues or pull requests.
gitea/modules/doctor
Gusted 59fd864fad
Add breaking email restrictions checker in doctor (#19903)
* Add breaking change check in doctor

- This patch introduces a new kind of doctor type, breaking. This file
is made to register checks that helps with detecting when a breaking
change might impact a Gitea instance.
- For now the only check here(and the reason of creating this) is to
check if all users in the database has a valid email address, which
might not be the case after
https://github.com/go-gitea/gitea/pull/17688. This _simply_ uses the
validation function to detect and report these cases.
- Helps admins with detecting #19897.
- I have no clue which priority should be and IsDefault is true, because
when breaking change happen and we have a doctor check for it, we can
say "run `gitea doctor` to help you with this and maybe you find other
errors 😉".

* Makes no sense tbh

* Fix copyright

* Update modules/doctor/breaking.go

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>

Co-authored-by: techknowlogick <matti@mdranta.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
2022-06-07 16:51:33 -04:00
..
authorizedkeys.go Move almost all functions' parameter db.Engine to context.Context (#19748) 2022-05-20 22:08:52 +08:00
breaking.go Add breaking email restrictions checker in doctor (#19903) 2022-06-07 16:51:33 -04:00
checkOldArchives.go Use ctx instead of db.DefaultContext in some packages(routers/services/modules) (#19163) 2022-03-22 16:22:54 +01:00
dbconsistency.go [doctor] pq: syntax error at or near "." quote user table name (#19765) 2022-05-20 15:36:34 +08:00
dbversion.go Propagate context and ensure git commands run in request context (#17868) 2022-01-19 23:26:57 +00:00
doctor.go Propagate context and ensure git commands run in request context (#17868) 2022-01-19 23:26:57 +00:00
fix16961.go Fix inconsistency in doctor output (#19836) 2022-05-31 14:49:40 -04:00
fix16961_test.go Move repository model into models/repo (#17933) 2021-12-10 09:27:50 +08:00
mergebase.go Fix inconsistency in doctor output (#19836) 2022-05-31 14:49:40 -04:00
misc.go [doctor] do not update User Stars numbers unless --fix (#19750) 2022-05-19 15:46:56 +02:00
paths.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
storage.go Propagate context and ensure git commands run in request context (#17868) 2022-01-19 23:26:57 +00:00
usertype.go Propagate context and ensure git commands run in request context (#17868) 2022-01-19 23:26:57 +00:00