Commit Graph

60 Commits

Author SHA1 Message Date
Christoph Kluge
b2aed2f16b Add 'project' to user table, add 'manager' role, conditional web render
- Addresses issues #40 #45 #82
- Reworked Navigation Header for all roles
- 'Manager' role added, can be assigned a project-id in config by admins
- BREAKING! -> Added 'project' column in SQLite3 table 'user'
- Manager-Assigned project will be added to all graphql filters: Only show Jobs and Users of given project
- 'My Jobs' Tab for all Roles
- Switched from Bool "isAdmin" to integer authLevels
- Removed critical data frontend logging
- Reworked repo.query.SecurityCheck()
2023-01-27 18:36:58 +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
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