cc-backend/docs/searchbar.md

37 lines
2.0 KiB
Markdown
Raw Permalink Normal View History

2023-02-22 17:51:30 +01:00
# Docs for ClusterCockpit Searchbar
2023-02-22 17:51:30 +01:00
## Usage
* Searchtags are implemented as `type:<query>` search-string
2023-07-20 08:43:46 +02:00
* Types `jobId, jobName, projectId, username, name, arrayJobId` for roles `admin` and `support`
2023-02-22 17:51:30 +01:00
* `jobName` is jobName as persisted in `job.meta_data` table-column
* `username` is actual account identifier as persisted in `job.user` table-column
* `name` is account owners name as persisted in `user.name` table-column
2023-07-20 08:43:46 +02:00
* Types `jobId, jobName, projectId, arrayJobId` for role `user`
2023-02-22 17:51:30 +01:00
* Examples:
* `jobName:myJob12`
* `jobId:123456`
* `username:abcd100`
* `name:Paul`
* If no searchTag used: Best guess search with the following hierarchy
2023-02-22 17:51:30 +01:00
* `jobId -> username -> name -> projectId -> jobName`
* Destinations:
2023-02-22 17:51:30 +01:00
* JobId: Job-Table (Allows multiple identical matches, e.g. JobIds from different clusters)
* JobName: Job-Table (Allows multiple identical matches, e.g. JobNames from different clusters)
* ProjectId: Job-Table
* Username: Users-Table
2023-06-23 10:21:03 +02:00
* **Please Note**: Only users with jobs will be shown in table! I.e., Users without jobs will be missing in table. Also, a `Last 30 Days` is active by default and might filter out expected users.
2023-02-22 17:51:30 +01:00
* Name: Users-Table
2023-06-23 10:21:03 +02:00
* **Please Note**: Only users with jobs will be shown in table! I.e., Users without jobs will be missing in table. Also, a `Last 30 Days` is active by default and might filter out expected users.
2023-07-20 08:43:46 +02:00
* ArrayJobId: Job-Table (Lists all Jobs of Queried ArrayJobId)
2023-02-22 17:51:30 +01:00
* Best guess search always redirects to Job-Table or `/monitoring/user/$USER` (first username match)
2023-06-23 10:21:03 +02:00
* Unprocessable queries will display messages detailing the cause (Info, Warning, Error)
* Spaces trimmed (both for searchTag and queryString)
2023-02-22 17:51:30 +01:00
* ` job12` == `job12`
* `projectID : abcd ` == `projectId:abcd`
* `jobName`- and `name-`queries work with a part of the target-string
2023-02-22 17:51:30 +01:00
* `jobName:myjob` for jobName "myjob_cluster1"
* `name:Paul` for name "Paul Atreides"
* JobName GQL Query is resolved as matching the query as a part of the whole metaData-JSON in the SQL DB.