Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: pluralsh/console-client-go
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.0.86
Choose a base ref
...
head repository: pluralsh/console-client-go
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.0.87
Choose a head ref
  • 3 commits
  • 3 files changed
  • 2 contributors

Commits on Feb 4, 2024

  1. Copy the full SHA
    dfd2b04 View commit details

Commits on Feb 6, 2024

  1. Merge pull request #16 from pluralsh/add-service-contexts

    Add contexts sideload to service deployment
    maciaszczykm authored Feb 6, 2024
    Copy the full SHA
    42ba3f2 View commit details
  2. Copy the full SHA
    d9a7d4b View commit details
Showing with 131 additions and 11 deletions.
  1. +113 −11 client.go
  2. +12 −0 graph/deployment.graphql
  3. +6 −0 graph/models.graphql
124 changes: 113 additions & 11 deletions client.go

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

12 changes: 12 additions & 0 deletions graph/deployment.graphql
Original file line number Diff line number Diff line change
@@ -122,6 +122,18 @@ query ListServiceDeploymentByHandle($after: String, $before: String, $last: Int,
}
}

mutation SaveServiceContext($name: String!, $attributes: ServiceContextAttributes!) {
saveServiceContext(name: $name, attributes: $attributes) {
...ServiceContextFragment
}
}

mutation DeleteServiceContext($id: ID!) {
deleteServiceContext(id: $id) {
...ServiceContextFragment
}
}

mutation CreateGlobalService($attributes: GlobalServiceAttributes!) {
createGlobalService(attributes: $attributes) {
...GlobalServiceFragment
6 changes: 6 additions & 0 deletions graph/models.graphql
Original file line number Diff line number Diff line change
@@ -13,6 +13,11 @@ fragment ServiceDeploymentBaseFragment on ServiceDeployment {
repository { ... GitRepositoryFragment }
}

fragment ServiceContextFragment on ServiceContext {
id
configuration
}

fragment ComponentContentFragment on ComponentContent{
id
live
@@ -44,6 +49,7 @@ fragment ServiceDeploymentExtended on ServiceDeployment {
cluster { ...BaseClusterFragment }
errors { ...ErrorFragment }
revision { ...RevisionFragment }
contexts { ...ServiceContextFragment }
...ServiceDeploymentFragment
}