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

build(deps): bump github.com/planetscale/planetscale-go from 0.115.0 to 0.116.0 #927

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ require (
github.com/mitchellh/go-homedir v1.1.0
github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c
github.com/pkg/errors v0.9.1
github.com/planetscale/planetscale-go v0.115.0
github.com/planetscale/planetscale-go v0.116.0
github.com/planetscale/psdb v0.0.0-20240109164348-6848e728f6e7
github.com/planetscale/psdbproxy v0.0.0-20241106211041-dc5c7c72df26
github.com/spf13/cobra v1.8.1
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/planetscale/noglog v0.2.1-0.20210421230640-bea75fcd2e8e h1:MZ8D+Z3m2vvqGZLvoQfpaGg/j1fNDr4j03s3PRz4rVY=
github.com/planetscale/noglog v0.2.1-0.20210421230640-bea75fcd2e8e/go.mod h1:hwAsSPQdvPa3WcfKfzTXxtEq/HlqwLjQasfO6QbGo4Q=
github.com/planetscale/planetscale-go v0.115.0 h1:9PePFNsY2gwLL842skZTTf0RzEnAqyQ4rW0/mytDJ9c=
github.com/planetscale/planetscale-go v0.115.0/go.mod h1:ldGffCLckkR8fjGDjDFs4WcjlDr8uqg2qRUZhRYBEMI=
github.com/planetscale/planetscale-go v0.116.0 h1:jXR32sTfQOWzoVBuwHLjqh0XktH6ATXyGbvt0u95ALc=
github.com/planetscale/planetscale-go v0.116.0/go.mod h1:ldGffCLckkR8fjGDjDFs4WcjlDr8uqg2qRUZhRYBEMI=
github.com/planetscale/psdb v0.0.0-20240109164348-6848e728f6e7 h1:dxdoFKWVDlV1gq8UQC8NWCofLjCEjEHw47gfeojgs28=
github.com/planetscale/psdb v0.0.0-20240109164348-6848e728f6e7/go.mod h1:WZmi4gw3rOK+ryd1inGxgfKwoFV04O7xBCqzWzv0/0U=
github.com/planetscale/psdbproxy v0.0.0-20241106211041-dc5c7c72df26 h1:u4Q86W+Id75X8RzhSXBwmqZ1HeE1Wbi07JfdFP7DEOc=
Expand Down
8 changes: 8 additions & 0 deletions internal/mock/dr.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ type DeployRequestsService struct {

AutoApplyDeployFn func(context.Context, *ps.AutoApplyDeployRequestRequest) (*ps.DeployRequest, error)
AutoApplyDeployFnInvoked bool

GetDeployOperationsFn func(context.Context, *ps.GetDeployOperationsRequest) ([]*ps.DeployOperation, error)
GetDeployOperationsFnInvoked bool
}

func (d *DeployRequestsService) ApplyDeploy(ctx context.Context, req *ps.ApplyDeployRequestRequest) (*ps.DeployRequest, error) {
Expand Down Expand Up @@ -106,3 +109,8 @@ func (d *DeployRequestsService) SkipRevertDeploy(ctx context.Context, req *ps.Sk
d.SkipRevertDeployFnInvoked = true
return d.SkipRevertDeployFn(ctx, req)
}

func (d *DeployRequestsService) GetDeployOperations(ctx context.Context, req *ps.GetDeployOperationsRequest) ([]*ps.DeployOperation, error) {
d.GetDeployOperationsFnInvoked = true
return d.GetDeployOperationsFn(ctx, req)
}