Commit Graph

45 Commits

Author SHA1 Message Date
Lou Knauer
e0cc17cfa9 Allow making LDAP users admins 2022-04-11 12:29:24 +02:00
Lou Knauer
220758dae1 Fix /api/jobs/start_job duplicate check 2022-03-21 13:04:57 +01:00
Jan Eitzinger
0206303d98 Reject jobs if start time is within 24h 2022-03-21 11:28:59 +01:00
Lou Knauer
641959101c Add metadata to REST-API 2022-03-15 09:49:41 +01:00
Lou Knauer
a448868f9c Fix missing metaData in archive; Add iat to JWTs 2022-03-10 14:09:13 +01:00
Lou Knauer
9535c11dc4 Make metaData a map[string]string; Resolve explicitly 2022-03-08 11:53:24 +01:00
Lou Knauer
08d760361d Minor fixes; Update frontend 2022-03-08 10:33:56 +01:00
Lou Knauer
046d4d5187 Some new REST endpoints; cleanup 2022-03-03 14:54:37 +01:00
Lou Knauer
7e468a7b8d Add API endpoints for creating users and jwts 2022-03-02 10:50:08 +01:00
Lou Knauer
4138055f55 Add /api/jobs/import endpoint 2022-02-25 11:04:34 +01:00
Lou Knauer
f330d24768 Sanitize job before import 2022-02-25 10:50:43 +01:00
Lou Knauer
ef089a7f2b no paging in REST-API by default 2022-02-22 14:07:49 +01:00
Lou Knauer
6ccf354035 Add stats and startTime filter to jobs api query 2022-02-22 10:51:58 +01:00
Jan Eitzinger
9f341a4a6c Allow variable number of parameters for stop job 2022-02-15 17:13:16 +01:00
Lou Knauer
2f32760cc5 fix stop_job returned state; handle monitoring status 2022-02-15 14:25:39 +01:00
Lou Knauer
8d4498f58e Add success log message 2022-02-15 13:31:54 +01:00
Lou Knauer
53312c4882 refactor stopJob, remove non-async archiving 2022-02-15 13:18:27 +01:00
Jan Eitzinger
d8782f4d3b Cleanup stop job code. Still broken 2022-02-15 12:47:23 +01:00
Jan Eitzinger
ec677d26d2 Remove segvaulting error handling 2022-02-15 12:13:21 +01:00
Jan Eitzinger
b0403da93b Add error handling to stop job 2022-02-15 11:33:59 +01:00
Jan Eitzinger
9047c69fa6 Try to fix stop job issue. Add Archive to repo. 2022-02-15 11:10:49 +01:00
Lou Knauer
ec1f200061 return more erros as JSON 2022-02-14 17:40:47 +01:00
Lou Knauer
b40c046f62 return errors as JSON 2022-02-14 17:31:51 +01:00
Lou Knauer
27fd3c4e5a Add /search endpoint which redirects to user/job 2022-02-09 15:03:12 +01:00
Lou Knauer
0ca7dbb4f1 Create tags if needed 2022-02-08 12:49:28 +01:00
Lou Knauer
0c2904d982 Fix vet and staticcheck warning 2022-02-08 11:10:05 +01:00
Jan Eitzinger
d63130923c Change job repo interface 2022-02-07 14:56:46 +01:00
Jan Eitzinger
cb70711c15 Port api test. Fix Bugs 2022-02-07 14:20:44 +01:00
Jan Eitzinger
e39bf6da78 Refactor job repository API. Cleanup. 2022-02-07 09:57:06 +01:00
Jan Eitzinger
d9aac00476 Extract DB queries from REST API 2022-02-07 07:09:47 +01:00
Jan Eitzinger
99865f4152 Start to extract DB repositories 2022-02-06 09:48:31 +01:00
Lou Knauer
f8ad53caf0 use a custom logger 2022-01-27 10:35:26 +01:00
Lou Knauer
436eaf0a9d Change import path 2022-01-27 09:40:59 +01:00
Lou Knauer
1c1b043246 Add REST endpoint for metrics 2022-01-27 09:29:53 +01:00
Lou Knauer
32c32ba949 authentication: roles as regular array; simplified LDAP 2022-01-27 09:29:11 +01:00
Lou Knauer
7359a556d9 new test: start/stop job via REST API 2022-01-24 10:08:47 +01:00
Lou Knauer
9034cb90aa make database schema mysql compatible; use prepared statements 2022-01-20 10:00:55 +01:00
Lou Knauer
1a9f67fa28 new /api/jobs/ REST endpoint 2022-01-17 13:51:20 +01:00
Lou Knauer
f185d12078 read .env automatically, support systemd 2022-01-17 13:51:20 +01:00
Lou Knauer
290e9b89bf add cli option for generating a JWT; simplify templates 2022-01-10 16:14:54 +01:00
Lou Knauer
9d87e8874c slight change to job structure 2022-01-07 09:39:00 +01:00
Lou Knauer
a6e8d5b484 Slight GraphQL-API changes 2021-12-20 10:48:58 +01:00
Lou Knauer
5403177edc all schemas new 2021-12-17 15:49:22 +01:00
Lou Knauer
89333666b3 BC: new schemas for basically everything 2021-12-16 13:17:48 +01:00
Lou Knauer
7fcc39a144 Add async archiving option; Move REST-API to new package 2021-12-16 09:35:03 +01:00