mirror of
				https://github.com/ClusterCockpit/cc-backend
				synced 2025-10-30 23:45:06 +01:00 
			
		
		
		
	Fix exclusive to shared in svlete and graphql
This commit is contained in:
		| @@ -2741,7 +2741,7 @@ input JobFilter { | ||||
|   startTime: TimeRange | ||||
|   state: [JobState!] | ||||
|   metricStats: [MetricStatItem!] | ||||
|   shared: StringInput | ||||
|   shared: String | ||||
|   node: StringInput | ||||
| } | ||||
|  | ||||
| @@ -16490,7 +16490,7 @@ func (ec *executionContext) unmarshalInputJobFilter(ctx context.Context, obj any | ||||
| 			it.MetricStats = data | ||||
| 		case "shared": | ||||
| 			ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("shared")) | ||||
| 			data, err := ec.unmarshalOStringInput2ᚖgithubᚗcomᚋClusterCockpitᚋccᚑbackendᚋinternalᚋgraphᚋmodelᚐStringInput(ctx, v) | ||||
| 			data, err := ec.unmarshalOString2ᚖstring(ctx, v) | ||||
| 			if err != nil { | ||||
| 				return it, err | ||||
| 			} | ||||
|   | ||||
| @@ -69,7 +69,7 @@ type JobFilter struct { | ||||
| 	StartTime       *config.TimeRange `json:"startTime,omitempty"` | ||||
| 	State           []schema.JobState `json:"state,omitempty"` | ||||
| 	MetricStats     []*MetricStatItem `json:"metricStats,omitempty"` | ||||
| 	Shared          *StringInput      `json:"shared,omitempty"` | ||||
| 	Shared          *string           `json:"shared,omitempty"` | ||||
| 	Node            *StringInput      `json:"node,omitempty"` | ||||
| } | ||||
|  | ||||
|   | ||||
| @@ -831,3 +831,15 @@ type mutationResolver struct{ *Resolver } | ||||
| type nodeResolver struct{ *Resolver } | ||||
| type queryResolver struct{ *Resolver } | ||||
| type subClusterResolver struct{ *Resolver } | ||||
|  | ||||
| // !!! WARNING !!! | ||||
| // The code below was going to be deleted when updating resolvers. It has been copied here so you have | ||||
| // one last chance to move it out of harms way if you want. There are two reasons this happens: | ||||
| //  - When renaming or deleting a resolver the old code will be put in here. You can safely delete | ||||
| //    it when you're done. | ||||
| //  - You have helper methods in this file. Move them out to keep these resolver files clean. | ||||
| /* | ||||
| 	func (r *jobResolver) Exclusive(ctx context.Context, obj *schema.Job) (int, error) { | ||||
| 	panic(fmt.Errorf("not implemented: Exclusive - exclusive")) | ||||
| } | ||||
| */ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user