woodpecker/server/store/datastore
qwerty287 0970f35df5
Do not store inactive repos (#1658)
Do not sync repos with forge if the repo is not necessary in DB.

In the DB, only repos that were active once or repos that are currently
active are stored. When trying to enable new repos, the repos list is
fetched from the forge instead and displayed directly. In addition to
this, the forge func `Perm` was removed and is now merged with `Repo`.

Solves a TODO on RepoBatch.

---------

Co-authored-by: Anbraten <anton@ju60.de>
2023-03-21 23:01:59 +01:00
..
migration Do not store inactive repos (#1658) 2023-03-21 23:01:59 +01:00
agent.go Store an agents list and add agent heartbeats (#1189) 2023-01-28 14:13:04 +01:00
config.go Migrate sql querys to xorm query builder (#1356) 2022-10-31 16:08:57 +01:00
config_test.go Renamed procs/jobs to steps in code (#1331) 2022-10-28 17:38:53 +02:00
cron.go Fix linter (#1647) 2023-03-18 20:35:27 +01:00
cron_test.go Add cron feature (#934) 2022-09-01 00:36:32 +02:00
engine.go Migrate to Xorm (#474) 2021-11-13 20:18:06 +01:00
engine_test.go Fix tests and pipeline (#732) 2022-01-31 14:39:53 +01:00
errors.go Check if repo exists before creating pipeline (#1297) 2022-10-22 01:34:11 +02:00
feed.go Fix pipeline feed not updated by new events (#1424) 2022-11-18 10:59:24 +01:00
feed_test.go Rename forge-id to forge-remote-id (#1418) 2022-11-15 15:01:23 +01:00
file.go Renamed procs/jobs to steps in code (#1331) 2022-10-28 17:38:53 +02:00
file_test.go Renamed procs/jobs to steps in code (#1331) 2022-10-28 17:38:53 +02:00
helper.go Return return 404 if registry to delete do not exist (#1278) 2022-10-18 01:48:04 +02:00
init.go Migrate to Xorm (#474) 2021-11-13 20:18:06 +01:00
init_cgo.go Add linter revive (#554) 2021-12-01 14:22:06 +01:00
log.go Renamed procs/jobs to steps in code (#1331) 2022-10-28 17:38:53 +02:00
log_test.go Renamed procs/jobs to steps in code (#1331) 2022-10-28 17:38:53 +02:00
permission.go Rename forge-id to forge-remote-id (#1418) 2022-11-15 15:01:23 +01:00
permission_test.go Rename forge-id to forge-remote-id (#1418) 2022-11-15 15:01:23 +01:00
pipeline.go Renamed procs/jobs to steps in code (#1331) 2022-10-28 17:38:53 +02:00
pipeline_test.go Renamed procs/jobs to steps in code (#1331) 2022-10-28 17:38:53 +02:00
redirection.go Fetch repositories with remote ID if possible (#1078) 2022-09-05 17:08:51 +02:00
redirection_test.go Return return 404 if registry to delete do not exist (#1278) 2022-10-18 01:48:04 +02:00
registry.go Fix registry delete (#532) 2021-11-25 19:04:36 +01:00
registry_test.go Return return 404 if registry to delete do not exist (#1278) 2022-10-18 01:48:04 +02:00
repo.go Do not store inactive repos (#1658) 2023-03-21 23:01:59 +01:00
repo_test.go Do not store inactive repos (#1658) 2023-03-21 23:01:59 +01:00
secret.go Secrets encryption in database (#1475) 2023-01-12 20:59:07 +01:00
secret_test.go Secrets encryption in database (#1475) 2023-01-12 20:59:07 +01:00
server_config.go Secrets encryption in database (#1475) 2023-01-12 20:59:07 +01:00
server_config_test.go Use asym key to sign webhooks (#916) 2022-06-01 20:06:27 +02:00
step.go Renamed procs/jobs to steps in code (#1331) 2022-10-28 17:38:53 +02:00
step_test.go Save agent-id for tasks and add endpoint to get agent tasks (#1631) 2023-03-21 15:10:43 +02:00
task.go Migrate to Xorm (#474) 2021-11-13 20:18:06 +01:00
task_test.go Add queue details UI for admins (#1632) 2023-03-20 04:50:56 +01:00
user.go Migrate sql querys to xorm query builder (#1356) 2022-10-31 16:08:57 +01:00
users_test.go Add users UI for admins (#1634) 2023-03-18 21:21:20 +01:00