diff --git a/event_reporter/application/client.go b/event_reporter/application/client.go index e87131cd9f9c62..86b0b53cb952ca 100644 --- a/event_reporter/application/client.go +++ b/event_reporter/application/client.go @@ -128,7 +128,7 @@ func (c *httpApplicationClient) GetManifests(ctx context.Context, in *appclient. } if in.SourcePositions != nil && len(in.SourcePositions) > 0 { for _, sourcePosition := range in.SourcePositions { - params = fmt.Sprintf("%s&sourcePositions=%s", params, sourcePosition) + params = fmt.Sprintf("%s&sourcePositions=%d", params, sourcePosition) } } if in.Revisions != nil && len(in.Revisions) > 0 { diff --git a/event_reporter/controller/controller.go b/event_reporter/controller/controller.go index 597f8220c429ba..262f55a7a7c340 100644 --- a/event_reporter/controller/controller.go +++ b/event_reporter/controller/controller.go @@ -2,11 +2,12 @@ package controller import ( "context" - "github.com/argoproj/argo-cd/v2/util/db" "math" "strings" "time" + "github.com/argoproj/argo-cd/v2/util/db" + appclient "github.com/argoproj/argo-cd/v2/event_reporter/application" log "github.com/sirupsen/logrus" diff --git a/event_reporter/reporter/application_event_reporter_test.go b/event_reporter/reporter/application_event_reporter_test.go index c9c0d710b46234..acda38922bc65f 100644 --- a/event_reporter/reporter/application_event_reporter_test.go +++ b/event_reporter/reporter/application_event_reporter_test.go @@ -4,13 +4,14 @@ import ( "context" "encoding/json" "fmt" - "github.com/argoproj/argo-cd/v2/util/db" - "github.com/argoproj/argo-cd/v2/util/settings" - "k8s.io/client-go/kubernetes/fake" "net/http" "testing" "time" + "github.com/argoproj/argo-cd/v2/util/db" + "github.com/argoproj/argo-cd/v2/util/settings" + "k8s.io/client-go/kubernetes/fake" + "github.com/aws/smithy-go/ptr" "github.com/sirupsen/logrus" "github.com/stretchr/testify/mock"