Christoph Kluge
541d54aa7c
Users/Managers only display number of shared jobs
2023-06-01 15:13:12 +02:00
Christoph Kluge
5bb5e5ed24
Fix test: Change jobId conversion to fmt
2023-05-16 16:06:04 +02:00
Christoph Kluge
270750a78d
Move concurrentJobs as field to main job query
2023-05-16 12:42:06 +02:00
Christoph Kluge
a337482fa2
Add shared metric marker to job view plots
2023-04-28 14:34:44 +02:00
Christoph Kluge
d93610f700
List parallel jobs on node for jobs on shared node
...
- Relates to issue #97
- required GQL schema extension and regeneration
- Works for archived jobs aswell
2023-04-28 12:34:40 +02:00
Christoph Kluge
e9301a5d39
Mark shared metrics on shared jobs
...
- show [shared] in plots in JobList
- other plot locations Todo
- Relates to issue #107
2023-04-28 12:30:46 +02:00
Christoph Kluge
a8980c7a5e
Small touches on status view
2023-04-12 18:00:28 +02:00
Christoph Kluge
8c15cc0085
Merge branch 'master' of https://github.com/ClusterCockpit/cc-backend
2023-04-12 15:59:11 +02:00
Christoph Kluge
7fc6f6b0af
Add more reactivity to metricSelection
2023-04-12 15:59:08 +02:00
Christoph Kluge
483443afe6
Merge branch 'master' of https://github.com/ClusterCockpit/cc-backend
2023-04-12 10:57:59 +02:00
Christoph Kluge
4cb48dc3ed
Fix GQL query for rooflineheatmap
...
- was missing value subfield after definition rework
2023-04-12 10:57:32 +02:00
Christoph Kluge
33ed07a35a
Fix role notes on new user form, reset on submit
2023-04-11 17:27:33 +02:00
Christoph Kluge
753ced2787
Fix data transfer mismatch at roofline component
2023-04-11 16:57:35 +02:00
Christoph Kluge
184769ab9c
Merge branch 'import-data-sanitation' of https://github.com/ClusterCockpit/cc-backend into import-data-sanitation
2023-04-11 16:29:42 +02:00
Christoph Kluge
dd2b4609a3
Plot axis label sizing and padding
2023-04-11 16:29:39 +02:00
Christoph Kluge
323066cb30
Merge branch 'import-data-sanitation' of https://github.com/ClusterCockpit/cc-backend into import-data-sanitation
2023-04-06 11:38:12 +02:00
Christoph Kluge
f0cbb8c5dc
Fix PrintList implementation, add NodeCount method
2023-04-06 11:38:10 +02:00
Christoph Kluge
2401a2b940
Merge branch 'import-data-sanitation' of https://github.com/ClusterCockpit/cc-backend into import-data-sanitation
2023-03-31 17:18:49 +02:00
Christoph Kluge
adc1d94e3f
subcluster in metricSelect, add infobox to systems
...
- Default: Show Clusters next to Metrics
- New: If Cluster filter activem show subclusters instead (reactive)
- add note to analysis view
- systems view now with info boxes if metric is removed for subcluster
2023-03-31 17:18:16 +02:00
Christoph Kluge
68a839bf1c
Remove comments
2023-03-30 15:23:31 +02:00
Christoph Kluge
0c1b66aad9
Adapt svelte to new schema, add removed metric box
...
- Moved 'scope' field to parent jobMetric
- Implemented unit { prefix, base } where necessary
- SubCluster Metric Config 'remove' option implemented in Joblists
2023-03-30 15:21:35 +02:00
Christoph Kluge
1bb2827aeb
Merge branch 'import-data-sanitation' of https://github.com/ClusterCockpit/cc-backend into import-data-sanitation
2023-03-29 10:39:42 +02:00
Christoph Kluge
fc133f328a
Add check to ccms getSubCluster routine
...
- Fixes nil pointer panic if topology requested from undef'd subcluster
- rest.go: vscode LINT
2023-03-29 10:39:31 +02:00
Christoph Kluge
14665df439
Better test array
2023-03-06 16:35:14 +01:00
Christoph Kluge
cae7257673
Add tests for role checks, update test.db
2023-03-06 16:32:58 +01:00
Christoph Kluge
f37e7c26f6
Rework roles as enum, change AuthSource to enum
2023-03-06 11:44:38 +01:00
Christoph Kluge
4f1f034702
Move ShortRunningJobsDuration value to root config
2023-03-01 16:34:59 +01:00
Christoph Kluge
df44bd9621
Merge branch 'master' into 40_45_82_update_roles
2023-02-28 11:18:46 +01:00
Christoph Kluge
8bd72ce807
Small fixes after full file review
...
- Remove unnecessary field 'project' from GQl and regenerate
- Add newlines to file ends
- Fix command-line manager user addition
2023-02-23 12:33:14 +01:00
Christoph Kluge
a7d2d2666a
Merge branch 'master' into 40_45_82_update_roles
2023-02-23 11:47:12 +01:00
Christoph Kluge
a4911e3590
Tidy up dependencies
2023-02-23 10:49:58 +01:00
Christoph Kluge
05caa41b7c
Include containerd@1.6.18 manually
...
- Should resolve dependabot alerts 6, 7, 8, 9
2023-02-23 10:45:33 +01:00
Christoph Kluge
10fda229c6
Bump dependency versions
2023-02-23 10:36:51 +01:00
Christoph Kluge
816617ecb8
Update searchbar doc
2023-02-22 17:51:30 +01:00
Christoph Kluge
d30dba109d
Fix test
2023-02-22 16:57:15 +01:00
Christoph Kluge
365888c645
Fix tag panic and simplify code
2023-02-22 16:49:23 +01:00
Christoph Kluge
d6b8d711f6
Rework searchbar functions, add user jobtable
2023-02-22 16:30:01 +01:00
Christoph Kluge
d0d578a1e6
Fix user.projects up migration file
2023-02-22 10:17:40 +01:00
Christoph Kluge
48728e64c4
Merge branch 'master' into 40_45_82_update_roles
2023-02-22 09:28:41 +01:00
Christoph Kluge
822c8b570c
Remove exists checks from sql migrations to v3
2023-02-21 18:05:29 +01:00
Christoph Kluge
3b7ca17b3c
Merge branch 'master' into 40_45_82_update_roles
2023-02-21 17:36:58 +01:00
Christoph Kluge
acbef39045
Fix header, add migration for user.projects column
2023-02-21 17:33:27 +01:00
Christoph Kluge
e0e51813ad
Merge branch 'master' into 40_45_82_update_roles
2023-02-21 17:17:41 +01:00
Christoph Kluge
68efe871c7
Centralize project filter for manager role
...
- Remove all unnecessary frontend code for managerfilters
2023-02-20 11:24:18 +01:00
Christoph Kluge
09bcf9f355
Better implementation for querying multiple users
2023-02-20 10:20:08 +01:00
Christoph Kluge
397ab08b3b
Add support for multiple projects per manager
...
- Handled like roles in admin view
- !! NEW COLUMN CHANGED TO "projects"
2023-02-17 15:45:31 +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
bb9593964a
Reenable formatted log methods
2023-02-09 16:24:29 +01:00
Christoph Kluge
b8528b42d2
Fix flaginfo for --logdate
2023-02-09 15:46:07 +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
94523150f5
Fix small typo
2023-02-01 15:46:50 +01:00
Christoph Kluge
a2ebebd7f6
Remove role label array from frontend
...
- made centralized role array uncentralized again
2023-02-01 14:49:10 +01:00
Christoph Kluge
ef1b2d7a81
Fix typo
2023-02-01 12:29:58 +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
b77bd078e5
Add log messages to error events w/o log message, primaryly error level
...
- "log spam" to be controlled via loglevel flag on startup
2023-01-31 18:28:44 +01:00
Christoph Kluge
7fb94c33cf
Add API call for frontend to fetch list of valid roles from backend
...
- only relevant for admin config (addUser, editRole)
- admin only (double-checked)
2023-01-30 17:01:11 +01:00
Christoph Kluge
7d4f4ab2c8
Merge branch 'master' into 40_45_82_update_roles
2023-01-30 14:33:44 +01:00
Christoph Kluge
186c8f7311
Fix user display configrations not persisting in SQLite table
...
- Was missing user.username key
2023-01-30 14:33:12 +01:00
Christoph Kluge
dd5e0682a1
Fix test file, add suer table project column to test.db
2023-01-30 14:03:44 +01:00
Christoph Kluge
c4d91039e2
Add support role to tag count
...
- works equal to admin
2023-01-30 13:48:27 +01:00
Christoph Kluge
2590ce7e44
Adapt count tags for managers
2023-01-30 13:43:12 +01:00
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
834f9d9085
Add role helper functions, add project role barebone, add valid role arr
...
- HasAnyRoles([]string): Checks if user has *one* of the roles
- HasAllRoles([]string): Cheks if user has *all* of the roles
- HasNotRoles([]string): Checks if user has *none* of the roles
- IsValidRole(string): Checks if given string is known valid role
2023-01-25 16:59:16 +01:00
Christoph Kluge
52d424b332
Add conditional startDemo.sh, only initializes if var not found
2023-01-24 15:03:09 +01:00
Christoph Kluge
25eb3bb481
Add missing dependency
2023-01-24 12:03:36 +01:00
Christoph Kluge
bd770d0e32
Fix return error, fix wrong log path, add notice log where applicable
...
- Adresses issue #26
2023-01-24 12:02:29 +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
25286ff068
Small addition to page-config infolog
...
- Adresses issue #26
2023-01-20 09:58:16 +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
5abd3641b2
Move bootstrap and bootstrap-icon to local instances
2023-01-19 09:37:18 +01:00
Christoph Kluge
81e17771fd
Fix roofline component not rendering in jobview if missing data
...
- Addresses issue #70
2023-01-18 14:06:32 +01:00
Christoph Kluge
996e68ff30
Truncate long jobNames
...
- Solves issue #79
2023-01-12 12:33:21 +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
7998577076
Remove metadata from scanJob
...
- Leftover from initial jobName query implementation tryouts: unnecessary
2023-01-12 11:57:44 +01:00
Christoph Kluge
84a1c4bdaf
fix wrong vartype for log
2023-01-12 11:34:21 +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
a5298a3630
updated gofiles
2023-01-11 16:26:08 +01:00
Christoph Kluge
a642e9cc7c
Add working, but manually entered jobName url query
2023-01-11 16:25:02 +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
Christoph Kluge
a39fc73345
Rerun swagger and fix typo
2022-11-30 12:40:07 +01:00
Christoph Kluge
390bc4c223
Resize gauge card, hide scale on roofline, set colorDots to true
...
- Scale display switchable by new option 'showTime'
2022-10-07 15:01:14 +02:00
Christoph Kluge
64ea4d63c8
Forgit to add file to last commit
2022-10-07 13:39:31 +02:00
Christoph Kluge
87c80af5af
Format status gauge values via existing svelte function
...
- Temporary solution to catch Kilo, Mega, Giga prefixes
- Backend conversion requires more extensive graphql changes than expected
2022-10-07 13:35:44 +02:00
Christoph Kluge
3867ea137b
Update and regenerate graphQL for new unit type
2022-10-06 18:04:47 +02:00
Christoph Kluge
ec772f5aff
Fix the fix
...
Note: Changes should be removed before merge - Fix to allow compilation only
2022-10-05 14:09:11 +02:00
Christoph Kluge
bb0f8a2905
Fix compilation
...
- Unit.Prefix prop used in assignement instead if Unit type
2022-10-05 11:16:43 +02:00
Christoph Kluge
74c50bd424
Merge branch 'import-data-sanitation' into 48_improve_status_view: Unit pkg update required for dev
2022-10-05 11:01:43 +02:00
Christoph Kluge
526f8be01f
Change histogram bar color to light bluish grey
...
- Hex #85abce
2022-09-30 17:19:01 +02:00
Christoph Kluge
d1c47f4359
Improve Histogram.svelte
...
- Add bold axis labels
- Labels defined as element props xlabel and ylabel
- Label offset dynamic to plot height (10 percent)
- Add adjustable gaps between bars
2022-09-30 17:00:15 +02:00
Christoph Kluge
46baa6e534
First optical layout Iteration
2022-09-28 16:13:46 +02: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
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