Commit Graph

118 Commits

Author SHA1 Message Date
747f6d4e2d Add MetricConfig in SubClusters. 2023-03-20 16:27:36 +01:00
Jan Eitzinger
97f391deff GraphQL remove toplevel thresholds and add Unit
Add Unit to metric values in subCluster
2023-03-10 12:13:40 +01:00
9d28cb83f0 Remove swagger enum comment and rebuild Swagger docs
Relates to #95
2023-03-01 10:49:08 +01:00
e13f184414 Regenerate Swagger docs
Relates to #94 and #95
2023-02-27 07:49:37 +01:00
60437ce264 Rebuild GraphQL api and Swagger UI code. 2023-02-21 18:13:16 +01:00
Christoph Kluge
09bcf9f355 Better implementation for querying multiple users 2023-02-20 10:20:08 +01:00
Christoph Kluge
bf6ec1bc98 Add search for user names, add names in user table
- Regenerated GraphQL due to new required query 'multiUser'
2023-02-17 10:45:27 +01:00
Christoph Kluge
a642e9cc7c Add working, but manually entered jobName url query 2023-01-11 16:25:02 +01:00
Christoph Kluge
a39fc73345 Rerun swagger and fix typo 2022-11-30 12:40:07 +01:00
Jan Eitzinger
948da8f10b Review Sagger config. Delete Job endpoints 2022-11-11 15:26:27 +01:00
Christoph Kluge
3867ea137b Update and regenerate graphQL for new unit type 2022-10-06 18:04:47 +02:00
Christoph Kluge
c9184a7575 Move identical parts of stopJob routines to new function
- No solution for two swagger doc annotations for one function (ie function handles two inputs) found
- Also: Delete handwritten openapi.yaml
2022-09-23 11:59:18 +02:00
Christoph Kluge
b96c515c2c Small additions to 'getJobs' API docs 2022-09-22 13:32:40 +02:00
Christoph Kluge
93713edcac Add '401 unauthorized' to api docs 2022-09-21 17:13:55 +02:00
Christoph Kluge
872bc77708 Add missing error codes to documentation, fix wrong success type 2022-09-21 17:03:01 +02:00
Christoph Kluge
6712b15034 Better represent 'exclusiveMinimum' from JSON schemata 2022-09-21 14:21:13 +02:00
Christoph Kluge
94c77d8a67 Small additions to swagger docs 2022-09-21 14:12:24 +02:00
Christoph Kluge
05a84cb95c Extend parsed swagger documentation by adding comments 2022-09-21 11:54:19 +02:00
Jan Eitzinger
24f374ed36 Fix API tag data type 2022-09-16 11:21:27 +02:00
Jan Eitzinger
6325f02ba2 Merge branch 'dev-job-archive-module' of github.com:ClusterCockpit/cc-backend into dev-job-archive-module 2022-09-16 06:28:07 +02:00
Jan Eitzinger
f1941b5e67 Reconfigure Swagger integration. Regenerate API docs 2022-09-16 06:09:55 +02:00
Jan Eitzinger
c0daad256f Regenerate GraphQL Api. Remove FilterRanger 2022-09-12 13:33:01 +02:00
Jan Eitzinger
81819db436 Refactor directory structure 2022-06-21 17:52:36 +02:00
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