Commit Graph
100 Commits
Author SHA1 Message Date
moebiusband f0257a2784 Drop privileges after server start 2024-11-08 19:16:56 +01:00
moebiusband ec1ead89ab Switch back to previous meaning of energy metric attribute 2024-11-08 06:27:27 +01:00
moebiusband 5fa6c9db35 Merge branch 'dev' of github.com:ClusterCockpit/cc-backend into dev 2024-09-06 11:25:03 +02:00
moebiusband 5482b9be2c Add debug output 2024-09-06 11:24:54 +02:00
moebiusband 7c33dcf630 Bugfix in footprint update 2024-09-05 14:58:08 +02:00
moebiusband 5e65e21f0b Add quotes in duration query 2024-09-05 12:38:39 +02:00
moebiusband 53ca38ce53 Add debug output to duration query 2024-09-05 11:18:00 +02:00
moebiusband 508978d586 Initial attempt to update footprints in transaction 2024-09-03 15:59:01 +02:00
moebiusband e267481f71 Cleanup transaction api 2024-09-03 15:40:02 +02:00
moebiusband f58efa2871 Allow to combine job update queries 2024-09-03 13:41:00 +02:00
moebiusband 6568b6d723 Prepare transaction API for general usage 2024-09-03 13:40:11 +02:00
moebiusband 39c09f8565 Introduce job duration update task 2024-09-03 10:03:38 +02:00
moebiusband 47b14f932e Start footprint service 2024-09-02 12:07:44 +02:00
moebiusband c459724114 Resolve build errors 2024-08-30 13:50:49 +02:00
moebiusband b0c9d1164d Add initial version of footprint update service
Not tested yet
2024-08-30 07:22:40 +02:00
moebiusband 7c51d88501 Add stub for Footprint update service 2024-08-29 08:45:04 +02:00
moebiusband 5b03cf826b feat: Add total energy and energy footprint 2024-08-29 07:26:49 +02:00
moebiusband f305863616 Bugs fixed in unit tests and archiver init 2024-08-28 12:26:35 +02:00
moebiusband db5809d522 Move rest of archiveing code into new archive package 2024-08-28 11:13:54 +02:00
moebiusband e7231b0e13 Finish refactoring
Add new packages:
- metricDataDispatcher
- archiver
2024-08-28 10:03:04 +02:00
moebiusband f914a312f5 Introduce metricDataDispatcher
Does not compile yet
2024-08-27 16:44:16 +02:00
moebiusband 56ebb301ca Start to restructure
Does not compile
2024-08-27 10:14:33 +02:00
moebiusband a8a27c9b51 Add project index to job table 2024-08-19 12:11:53 +02:00
moebiusband 5e074dad10 Resolve error in migration 2024-08-15 12:39:14 +02:00
moebiusband d6a88896d0 Refactor: Reduce struct memory size 2024-08-15 12:36:21 +02:00
moebiusband 5c99f5f8bb Only add footprint columns if not 0 2024-08-15 12:35:11 +02:00
moebiusband e1faba0ff2 Update cluster json schema 2024-08-15 10:39:32 +02:00
moebiusband ba2f406bc0 Extend sqlite db migration 2024-08-15 09:41:54 +02:00
moebiusband 9b6db4684a Refactor: Remove redundant code 2024-08-15 08:53:49 +02:00
moebiusband c4d93e492b Remove bugs in main init 2024-07-20 10:03:14 +02:00
moebiusband c2f72f72ac Update go dependencies 2024-07-20 08:59:51 +02:00
moebiusband 721b6b2afa Change footprint variabel from bool to string
The footprint variable also indicates the type of statistic used now
2024-07-20 08:59:07 +02:00
moebiusband b6f011c669 Move footprint update task placeholder to taskmanager 2024-07-16 12:34:27 +02:00
moebiusband 801607fc16 Refactor main
Convert components to Singletons
Restructure main package
Reduce dependencies
2024-07-16 12:08:10 +02:00
moebiusband 01a4d33514 Refactor: Archive workers and Tasks
Work in progress
2024-07-14 11:18:38 +02:00
moebiusband e348ec74fd Fix bugs in stats.go 2024-07-12 14:08:48 +02:00
moebiusband 0458675608 Convert histogram query to json keys 2024-07-12 13:42:12 +02:00
moebiusband c61ffce0e9 Make job query on metric stats generic 2024-07-12 13:21:19 +02:00
moebiusband 68a97dc980 Add footprint to global metric list 2024-07-12 13:20:54 +02:00
moebiusband a07d167390 Fix build error with updated prometheus client 2024-07-12 09:17:31 +02:00
moebiusband 0adfb631ef Update go version to 1.22 for Github test workflow 2024-07-11 17:11:01 +02:00
moebiusband b64ce1f67f Add LowerIsBetter Metric boolean. Upgrade dependencies. 2024-07-11 16:58:12 +02:00
moebiusband e8e3b1595d Switch to Go 1.22 to get rid of global loop variable bug 2024-07-11 16:12:20 +02:00
moebiusband f1427d5272 Add global metric list including graphQL query 2024-07-11 11:09:14 +02:00
moebiusband a54acb8c42 Merge branch '264_user_api_access' into Refactor-job-footprint 2024-07-05 16:17:57 +02:00
moebiusband c6ede67589 Add energy footprint 2024-07-05 16:16:01 +02:00
moebiusband ac9bba8b5b Restructure and simplify job repo 2024-07-04 15:05:24 +02:00
moebiusband 80c46bea7f Fix bugs and failed testcases 2024-07-04 14:14:27 +02:00
moebiusband 1b70596735 Fix and test subcluster Config 2024-07-04 06:49:59 +02:00
moebiusband b05909969f Add test for clusterConfig 2024-07-03 12:11:43 +02:00
moebiusband bd89ce7cc9 Extend schema and start Unit test implementation
Does not compile and work yet
2024-07-02 10:13:11 +02:00
moebiusband 130613b717 Fix build errors
Code not yet functional
2024-06-28 17:08:28 +02:00
moebiusband b3c1f39a0e Merge branch 'master' into Refactor-job-footprint 2024-06-28 16:50:04 +02:00
moebiusband 97c807cd33 Add migration for footprint 2024-06-28 16:49:24 +02:00
moebiusband aede5f71ec Introduce adapted graphql schema 2024-06-28 16:49:02 +02:00
moebiusband 786770f56a Start to convert to new footprint layout 2024-06-28 16:48:10 +02:00
moebiusband d61c4235dc Merge branch 'master' into hotfix 2024-06-28 15:41:52 +02:00
moebiusband e8794b8c79 Add graphql generation target to Makefile 2024-06-28 15:41:11 +02:00
moebiusband 552da005dc Add make target for swagger UI generator 2024-06-26 05:41:42 +02:00
moebiusband 5c5484b4d2 Export package runtimeEnv 2024-06-25 07:12:46 +02:00
moebiusband 6c0bfc6c35 Prepare release 1.3.1 2024-06-22 08:55:37 +02:00
moebiusband dff7aeefb8 Merge branch 'hotfix' of github.com:ClusterCockpit/cc-backend into hotfix 2024-05-16 11:19:00 +02:00
moebiusband 54f7980162 fix: Add required key to init config file 2024-05-16 11:18:57 +02:00
moebiusband b67f5436f8 Merge branch 'hotfix' of github.com:ClusterCockpit/cc-backend into hotfix 2024-04-21 15:04:09 +02:00
moebiusband b637ddeb28 Refactor and reformat userConfig 2024-04-21 15:04:00 +02:00
moebiusband 6df639a0c3 Prepare Release 1.3.0 2024-04-15 12:54:50 +02:00
moebiusband fb8bbea99d Remove year in copyright notice 2024-04-11 23:04:30 +02:00
moebiusband 9b261a4778 Merge branch 'master' into hotfix 2024-04-10 14:24:12 +02:00
moebiusband 6828c97415 Add central function to persist users on Login 2024-03-28 14:22:23 +01:00
moebiusband 50401e0030 Fix conditional rendering of OIDC button in login 2024-03-28 13:18:25 +01:00
moebiusband c3d2508693 Update package deps after merge 2024-03-28 12:09:08 +01:00
moebiusband 642fd5cc91 Merge branch 'master' into 236-user-authentication-using-keycloak-or-any-openid-client-for-using-external-auth-providers-such-as-ldap-github-google 2024-03-28 12:07:58 +01:00
moebiusband e8fb5a0030 Add OpenID Connect authentication
Fixes #236
Template conditional not yet working
Needs more testing
2024-03-28 12:01:13 +01:00
moebiusband 03895f9e45 Swag dependency needs at least Go 1.20 2024-03-22 09:41:18 +01:00
moebiusband 5c79f44055 Clarify functionality of gen-keypair tool 2024-03-22 08:59:59 +01:00
moebiusband 83c38e74db Refactoring: Reduze bytesize of structs. 2024-03-22 08:59:35 +01:00
moebiusband 1e5f2944cf Upgrade dependencies. Port to jwt-auth v5. 2024-03-21 22:02:59 +01:00
moebiusband c65694b36c Add tags and metadata to job queries. Fix query parameter handling.
Fixes #248
2024-03-19 16:18:43 +01:00
moebiusband 0005469101 Refactor 2024-03-19 16:16:02 +01:00
moebiusband e92e727279 Extend oidc auth provider 2024-03-13 17:09:36 +01:00
moebiusband f761900a3e Add initial code for oidc authentication support 2024-03-13 09:37:12 +01:00
moebiusband 32a57661fd Upgrade frontend dependencies
Change to most recent @sveltestrap/sveltestrap
Reformat with Svelte LSP
2024-03-09 10:30:40 +01:00
moebiusband 99d55f05f8 feat: Add cluster config endpoint to rest api 2024-03-08 16:35:30 +01:00
moebiusband 9fd839fad8 Add rest endpoint to get all job data
Fixes #203
2024-03-08 15:31:34 +01:00
moebiusband 06d01962a6 feat: Allow to revert db to previous version 2024-03-08 11:28:26 +01:00
moebiusband 2c2c1accb5 Allow up and down migration of database 2024-03-08 10:58:45 +01:00
moebiusband 105b7eabf0 Add migration and introduce dirty flag handling 2024-03-08 10:47:32 +01:00
moebiusband e81e56ea1d Add rest endpoint edit_meta including helper routines
Fixes #219
2024-03-08 08:51:05 +01:00
moebiusband aa6336ea1e Refactor
Reformat.
Convert to query builder.
Add descriptive error log messages.
2024-03-06 14:50:08 +01:00
moebiusband dd887cbb1f Do all tag queries with query builder
Fix bug in mysql database initialization.
Fixes #231
2024-03-06 13:47:52 +01:00
moebiusband 5a4671b7b1 Always return on metricstore error. 2024-02-23 10:08:41 +01:00
moebiusband e7ae9dd06d Cleanup README 2024-02-13 11:55:00 +01:00
moebiusband 0c7f55ff8d Remove obsolete package build rule
In case of cc-backend it is recommended to setup by hand or use the prebuild binary.
2024-02-13 11:54:50 +01:00
moebiusband bcd7f47409 Transfer docs to dedicated doc webpage 2024-02-13 11:54:02 +01:00
moebiusband 476caebe7f Merge branch 'master' into hotfix 2024-02-13 11:05:09 +01:00
moebiusband 10a332083b Merge branch 'master' into 196_add_footprint 2024-02-08 12:03:00 +01:00
moebiusband 4b922c575e Prepare bugfix release 2023-09-15 15:59:54 +02:00
moebiusband bb1c8cc25d fix: Move name extract from token in else branch 2023-09-08 12:11:49 +02:00
moebiusband 4b06fa788d fix: Fix buggy logic and simplify code if ValidateUser enabled 2023-09-08 11:50:28 +02:00
moebiusband 7a5ccff6da fix: Remove port before IP check 2023-09-07 16:36:47 +02:00