woodpecker/server/store/datastore
Anbraten 556607b525
Rework log streaming and related functions (#1802)
closes #1801
closes #1815 
closes #1144
closes  #983
closes  #557
closes #1827
regression of #1791

# TODO
- [x] adjust log model
- [x] add migration for logs
- [x] send log line via grpc using step-id
- [x] save log-line to db
- [x] stream log-lines to UI
- [x] use less structs for log-data
- [x] make web UI work
  - [x] display logs loaded from db
  - [x] display streaming logs
- [ ] ~~make migration work~~ -> dedicated pull (#1828)

# TESTED
- [x] new logs are stored in database
- [x] log retrieval via cli (of new logs) works
- [x] log streaming works (tested via curl & webui)
- [x] log retrieval via web (of new logs) works

---------

Co-authored-by: 6543 <6543@obermui.de>
2023-06-06 09:52:08 +02:00
..
migration Rework log streaming and related functions (#1802) 2023-06-06 09:52:08 +02:00
agent.go Initiate Pagination Implementation for API and Infinite Scroll in UI (#1651) 2023-04-30 03:40:13 +02: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 Initiate Pagination Implementation for API and Infinite Scroll in UI (#1651) 2023-04-30 03:40:13 +02:00
cron_test.go Add cron feature (#934) 2022-09-01 00:36:32 +02:00
engine.go Initiate Pagination Implementation for API and Infinite Scroll in UI (#1651) 2023-04-30 03:40:13 +02:00
engine_test.go Remove MSSQL specific code and cleanups (#1796) 2023-05-31 21:27:57 +02: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
helper.go Initiate Pagination Implementation for API and Infinite Scroll in UI (#1651) 2023-04-30 03:40:13 +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 Rework log streaming and related functions (#1802) 2023-06-06 09:52:08 +02:00
log_test.go Rework log streaming and related functions (#1802) 2023-06-06 09:52:08 +02:00
permission.go Consistent status on delete (#1703) 2023-04-15 15:22:39 +02:00
permission_test.go Rename forge-id to forge-remote-id (#1418) 2022-11-15 15:01:23 +01:00
pipeline.go Initiate Pagination Implementation for API and Infinite Scroll in UI (#1651) 2023-04-30 03:40:13 +02:00
pipeline_test.go Initiate Pagination Implementation for API and Infinite Scroll in UI (#1651) 2023-04-30 03:40:13 +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 Initiate Pagination Implementation for API and Infinite Scroll in UI (#1651) 2023-04-30 03:40:13 +02:00
registry_test.go Initiate Pagination Implementation for API and Infinite Scroll in UI (#1651) 2023-04-30 03:40:13 +02:00
repo.go Initiate Pagination Implementation for API and Infinite Scroll in UI (#1651) 2023-04-30 03:40:13 +02:00
repo_test.go Rework log streaming and related functions (#1802) 2023-06-06 09:52:08 +02:00
secret.go Initiate Pagination Implementation for API and Infinite Scroll in UI (#1651) 2023-04-30 03:40:13 +02:00
secret_test.go Initiate Pagination Implementation for API and Infinite Scroll in UI (#1651) 2023-04-30 03:40:13 +02:00
server_config.go Consistent status on delete (#1703) 2023-04-15 15:22:39 +02:00
server_config_test.go Use asym key to sign webhooks (#916) 2022-06-01 20:06:27 +02:00
step.go Rework log streaming and related functions (#1802) 2023-06-06 09:52:08 +02:00
step_test.go Rework log streaming and related functions (#1802) 2023-06-06 09:52:08 +02:00
task.go Consistent status on delete (#1703) 2023-04-15 15:22:39 +02:00
task_test.go Add queue details UI for admins (#1632) 2023-03-20 04:50:56 +01:00
user.go Identify users using their remote ID (#1732) 2023-05-11 05:19:35 +02:00
users_test.go Initiate Pagination Implementation for API and Infinite Scroll in UI (#1651) 2023-04-30 03:40:13 +02:00