mirror of
				https://github.com/ClusterCockpit/cc-backend
				synced 2025-10-31 07:55:06 +01:00 
			
		
		
		
	Merge branch 'dev' into metricstore
This commit is contained in:
		| @@ -113,6 +113,7 @@ func (api *RestApi) getJobs(rw http.ResponseWriter, r *http.Request) { | ||||
|  | ||||
| 	for key, vals := range r.URL.Query() { | ||||
| 		switch key { | ||||
| 		// TODO: add project filter | ||||
| 		case "state": | ||||
| 			for _, s := range vals { | ||||
| 				state := schema.JobState(s) | ||||
| @@ -125,7 +126,7 @@ func (api *RestApi) getJobs(rw http.ResponseWriter, r *http.Request) { | ||||
| 			} | ||||
| 		case "cluster": | ||||
| 			filter.Cluster = &model.StringInput{Eq: &vals[0]} | ||||
| 		case "start-time": | ||||
| 		case "start-time": // ?startTime=1753707480-1754053139 | ||||
| 			st := strings.Split(vals[0], "-") | ||||
| 			if len(st) != 2 { | ||||
| 				handleError(fmt.Errorf("invalid query parameter value: startTime"), | ||||
|   | ||||
		Reference in New Issue
	
	Block a user