mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-10-24 06:15:06 +02:00
2.3 KiB
2.3 KiB
Docs for ClusterCockpit Searchbar
Usage
-
Searchtags are implemented as
type:<query>search-string- Types
jobId, jobName, projectId, username, namefor rolesadminandsupportjobNameis jobName as persisted injob.meta_datatable-columnusernameis actual account identifier as persisted injob.usertable-columnnameis account owners name as persisted inuser.nametable-column
- Types
jobId, jobNamefor roleuser - Examples:
jobName:myJob12jobId:123456username:abcd100name:Paul
- Types
-
If no searchTag used: Best guess search with the following hierarchy
jobId -> username -> name -> projectId -> jobName
-
Destinations:
- JobId: Always Job-Table (Allows multiple identical matches, e.g. JobIds from different clusters)
- JobName: Always Job-Table (Allows multiple identical matches, e.g. JobNames from different clusters)
- ProjectId: Always Job-Table
- Username
- If one match found: Opens detailed user-view (
/monitoring/user/$USER) - If multiple matches found: Opens user-table with matches listed (
/monitoring/users/)- Please Note: Only users with jobs will be shown in table! I.e., "multiple matches" can still be only one entry in table.
- If one match found: Opens detailed user-view (
- Name
- If one matching username found: Opens detailed user-view (
/monitoring/user/$USER) - If multiple usernames found: Opens user-table with matches listed (
/monitoring/users/)- Please Note: Only users with jobs will be shown in table! I.e., "multiple matches" can still be only one entry in table.
- If one matching username found: Opens detailed user-view (
- Best guess search always redirects to Job-Table or
/monitoring/user/$USER(first username match)
-
Simple HTML Error if ...
- Best guess search fails -> 'Not Found'
- Query
typeis unknown - More than two colons in string -> 'malformed'
-
Spaces trimmed (both for searchTag and queryString)
job12==job12projectID : abcd==projectId:abcd
-
jobName- andname-queries work with a part of the target-stringjobName:myjobfor jobName "myjob_cluster1"name:Paulfor name "Paul Atreides"
-
JobName GQL Query is resolved as matching the query as a part of the whole metaData-JSON in the SQL DB.