You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/models
Lunny Xiao 3b2da7e4ae
Redefine the meaning of column is_active to make Actions Registration Token generation easier (#27143)
Partially Fix #25041

This PR redefined the meaning of column `is_active` in table
`action_runner_token`.
Before this PR, `is_active` means whether it has been used by any
runner. If it's true, other runner cannot use it to register again.

In this PR, `is_active` means whether it's validated to be used to
register runner. And if it's true, then it can be used to register
runners until it become false. When creating a new `is_active` register
token, any previous tokens will be set `is_active` to false.
9 months ago
..
actions Redefine the meaning of column is_active to make Actions Registration Token generation easier (#27143) 9 months ago
activities Another round of `db.DefaultContext` refactor (#27103) 9 months ago
admin Next round of `db.DefaultContext` refactor (#27089) 10 months ago
asymkey Another round of `db.DefaultContext` refactor (#27103) 9 months ago
auth Next round of `db.DefaultContext` refactor (#27089) 10 months ago
avatars Fix context cache bug & enable context cache for dashabord commits' authors (#26991) 10 months ago
db Improve DeleteByID (#26904) 10 months ago
dbfs Fix content holes in Actions task logs file (#25560) 1 year ago
fixtures Fix more yaml lint errors (#27284) 9 months ago
git Updates to the API for archived repos (#27149) 9 months ago
issues Another round of `db.DefaultContext` refactor (#27103) 9 months ago
migrations Fix more yaml lint errors (#27284) 9 months ago
organization Another round of `db.DefaultContext` refactor (#27103) 9 months ago
packages move repository deletion to service layer (#26948) 10 months ago
perm move repository deletion to service layer (#26948) 10 months ago
project Refactor project templates (#26448) 11 months ago
pull refactor some functions to support ctx as first parameter (#21878) 2 years ago
repo Another round of `db.DefaultContext` refactor (#27103) 9 months ago
secret Refactor secrets modification logic (#26873) 10 months ago
shared/types Display owner of a runner as a tooltip instead of static text (#24377) 1 year ago
system Another round of `db.DefaultContext` refactor (#27103) 9 months ago
unit Use `Set[Type]` instead of `map[Type]bool/struct{}`. (#26804) 10 months ago
unittest Replace `interface{}` with `any` (#25686) 1 year ago
user Another round of `db.DefaultContext` refactor (#27103) 9 months ago
webhook Replace `interface{}` with `any` (#25686) 1 year ago
error.go Sync branches into databases (#22743) 1 year ago
fixture_generation.go Fix yaml test (#27297) 9 months ago
fixture_test.go Fix yaml test (#27297) 9 months ago
main_test.go move repository deletion to service layer (#26948) 10 months ago
org.go refactor some functions to support ctx as first parameter (#21878) 2 years ago
org_team.go Use db.WithTx for AddTeamMember to avoid ctx abuse (#27095) 10 months ago
org_team_test.go Reduce usage of `db.DefaultContext` (#27073) 10 months ago
org_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
repo.go move repository deletion to service layer (#26948) 10 months ago
repo_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
repo_transfer.go Next round of `db.DefaultContext` refactor (#27089) 10 months ago
repo_transfer_test.go Next round of `db.DefaultContext` refactor (#27089) 10 months ago