Commit Graph

51 Commits

Author SHA1 Message Date
8139673a7f Always print Listen to URL 2023-02-25 08:28:43 +01:00
1e3e2ab222 Change default loglevel warn 2023-02-25 07:59:37 +01:00
63f8555af7 Add migration support for mysql 2023-02-21 14:45:59 +01:00
8ffb562d6b Introduce db migration support 2023-02-21 10:57:22 +01:00
033598a656 Remove loglevel notice 2023-02-15 11:50:51 +01:00
Christoph Kluge
b8528b42d2 Fix flaginfo for --logdate 2023-02-09 15:46:07 +01:00
Jan Eitzinger
30cada8f28 Merge branch '26_improve_logmessages' of github.com:ClusterCockpit/cc-backend into 26_improve_logmessages 2023-02-09 14:15:10 +01:00
Jan Eitzinger
c123a87ece Simplify log wrapper implementation 2023-02-09 14:14:58 +01:00
Christoph Kluge
728531946a
Merge branch 'master' into 26_improve_logmessages 2023-02-09 13:52:58 +01:00
Christoph Kluge
641affbbdf Move /search code to routerConfig, add simple docs for searchbar 2023-02-09 10:11:11 +01:00
Christoph Kluge
a885e69125 Adapt loglevel for logs, shorten strings, fix formats, streamline
- Switched to Warn for most errors, reduces bloat, improves log control
2023-02-01 11:58:27 +01:00
Christoph Kluge
79a949b55e Rework pkg/log, add 'loglevel' and 'logdate' flags, streamline
- removes some previously added manual location strings: now handled by pkg/log depending on loglevel
- kept manual string locations on fmt print functions
- add 'notice' and 'critical' loglevels
- add 'Panic' and 'Panicf' functions to log panics
- adresses issue #26
2023-01-23 18:48:06 +01:00
Christoph Kluge
1ec543daf6 Add log location string to main.go
- Adresses issue #26
2023-01-20 09:49:17 +01:00
Christoph Kluge
24a4244f19 add more information to existing errors logs and panics
- '$ROOT/$FILE' for better localization in the code
- add text where none was given
- fix unnecessary sprintf nesting in influxv2 and prometheus metricrepo logging
2023-01-19 16:59:14 +01:00
Christoph Kluge
1873c6a87d
Merge branch 'master' into 34-52-rework-searchbar 2023-01-13 09:58:56 +01:00
Christoph Kluge
2527a351b8 Trim spaces from search-query strings and tags
- Relates to issue #78
2023-01-12 12:11:58 +01:00
Christoph Kluge
bad3f9ea95 Makeover of searchbar, add "not found" results-redirects
- Tagged Search has priority
- Best guess search if no tag provided
- "Hard" errors only on searchtag-malformed or searchtag-unknown, or if best guess search fails
2023-01-12 11:26:01 +01:00
Christoph Kluge
c9ee8b552d Rework search to show jobId matches in table, add projectId search 2022-12-14 10:02:22 +01:00
Christoph Kluge
ac8548a950 Initial orientation 2022-12-13 09:53:37 +01:00
Pay Giesselmann
a0f7a598ad archive jobs in single worker thread 2022-12-08 15:04:58 +01:00
Pay Giesselmann
0de1368858 fix adding tag with disabled archive 2022-11-08 17:17:15 +01:00
Christoph Kluge
21b03d02b2 Swagger definition URL now based on config.json Addr field 2022-09-27 10:33:36 +02:00
Christoph Kluge
d405f0da41 Fix leftover local dev address 2022-09-27 10:02:01 +02:00
Christoph Kluge
24f9d4f934 Add buildInfo to frontend footer 2022-09-27 09:56:17 +02:00
Jan Eitzinger
066194121b Add version and git tag to binary
Fixes #47
2022-09-26 13:16:04 +02:00
Jan Eitzinger
5c715b6ec2 Add test for import job handler. Improve error messages. 2022-09-23 15:23:45 +02:00
Jan Eitzinger
35114aeb2d Cleanup. Fix failing test 2022-09-20 13:07:46 +02:00
Jan Eitzinger
02732cbbce Move additional tools to tools directory 2022-09-19 16:16:33 +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
Christoph Kluge
922e94e835 Fix API data types, use unsecured router for /docs
- Note: Use /docs swagger playground without login
- Otherwise: Session User will be used which leads to role mismatch
2022-09-15 17:38:11 +02:00
Christoph Kluge
8e90c954ff First commit for swagger api documentation, not yet fully functional
- Problems with JWT auth (eg startJob fails with missing role)
- Manually fixed auto-parsing errors (missing api.TagJobApiRequest, wrong API @Description)
2022-09-15 12:37:44 +02:00
Jan Eitzinger
520c814e3b Introduce import job flag 2022-09-13 15:20:07 +02:00
Jan Eitzinger
d8aaa26c27 Cleanup and small fixes 2022-09-13 07:38:18 +02:00
Jan Eitzinger
80583323c0 Inverse behavior for server flag 2022-09-11 07:08:28 +02:00
Jan Eitzinger
8856f26fb0 Reformat and Refactor packages. Rebuild GraphQL. 2022-09-07 12:24:45 +02:00
Jan Eitzinger
8fbd1b2cb8 Empty stub for json validation cmd 2022-09-06 09:32:25 +02:00
Jan Eitzinger
98d62f739f Add dev flag to enable API web interfaces 2022-09-06 08:57:01 +02:00
Jan Eitzinger
fc76eed899 Refactor package structure
Builds but not tested
2022-09-05 17:46:38 +02:00
Jan Eitzinger
26df1e7c14 Add copyright and license header. Update license year 2022-07-29 06:29:21 +02:00
Lou Knauer
aac19c938f Allow CORS credentials; cpu->hwthread for cc-metric-store 2022-07-28 18:07:30 +02:00
Lou Knauer
a48e94ab3e bugfixes in auth/ 2022-07-25 09:33:36 +02:00
Lou Knauer
187d6a1844 Move gen-keypair helper to cmd/ 2022-07-07 14:10:12 +02:00
Lou Knauer
04574db32f Integrate new auth interface 2022-07-07 14:08:37 +02:00
Lou Knauer
94017dc040 embed templates into binary (issue #2) 2022-07-06 15:00:08 +02:00
Lou Knauer
4f61580b2b embed frontend files into binary (issue #2) 2022-07-06 14:55:39 +02:00
Lou Knauer
3474ead49b Add content-type header to logout (issue #19) 2022-07-05 10:40:12 +02:00
Lou Knauer
65f7e5e6c8 load config.json in current directory by default (issue #17) 2022-07-05 10:23:26 +02:00
Jan Eitzinger
f291aa2f8c Fix paths. Adapt gitignore 2022-06-23 18:27:42 +02:00
Jan Eitzinger
c9821dbaad Fix Typos. Change default config. 2022-06-22 11:17:37 +02:00