Skip to content

Commit

Permalink
Merge pull request #41 from alonkeyval/gen-1471-edit-source
Browse files Browse the repository at this point in the history
[GEN-1471] feat: edit source
  • Loading branch information
alonkeyval authored Oct 9, 2024
2 parents 56a1838 + 647455e commit b0b1f31
Show file tree
Hide file tree
Showing 39 changed files with 1,149 additions and 188 deletions.
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

0 comments on commit b0b1f31

Please sign in to comment.