Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GEN-1471] feat: edit source #41

Merged
merged 13 commits into from
Oct 9, 2024
6 changes: 3 additions & 3 deletions frontend/graph/conversions.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,10 @@ func instrumentedApplicationToActualSource(instrumentedApp v1alpha1.Instrumented
Namespace: instrumentedApp.Namespace,
Kind: k8sKindToGql(instrumentedApp.OwnerReferences[0].Kind),
Name: instrumentedApp.OwnerReferences[0].Name,
ServiceName: &instrumentedApp.Name, // Assuming serviceName is derived from the app name
NumberOfInstances: nil, // Assuming this is handled separately; can be updated if needed
ServiceName: &instrumentedApp.Name,
NumberOfInstances: nil,
AutoInstrumented: instrumentedApp.Spec.Options != nil,
AutoInstrumentedDecision: "", // Assuming this comes from another source, add if applicable
AutoInstrumentedDecision: "",
InstrumentedApplicationDetails: &gqlmodel.InstrumentedApplicationDetails{
Containers: containers,
Conditions: conditions,
Expand Down
195 changes: 195 additions & 0 deletions frontend/graph/generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions frontend/graph/model/models_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions frontend/graph/schema.graphqls
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ type K8sActualSource {
name: String!
serviceName: String
numberOfInstances: Int
reportedName: String
autoInstrumented: Boolean!
autoInstrumentedDecision: String!
instrumentedApplicationDetails: InstrumentedApplicationDetails
Expand Down Expand Up @@ -233,6 +234,10 @@ type IcaInstanceResponse {
spec: String!
}

input PatchSourceRequestInput {
reportedName: String
}

type Query {
computePlatform: ComputePlatform
config: GetConfigResponse
Expand All @@ -251,4 +256,8 @@ type Mutation {
testConnectionForDestination(
destination: DestinationInput!
): TestConnectionResponse!
updateK8sActualSource(
sourceId: K8sSourceId!
patchSourceRequest: PatchSourceRequestInput!
): Boolean!
}
Loading
Loading