From 9f8482d25d01f8c4c71d1a1faf8e0a5ea67bfb1d Mon Sep 17 00:00:00 2001 From: Giorgi Kikolashvili Date: Mon, 4 Nov 2024 17:17:36 +0100 Subject: [PATCH] Remove prePageToken that does not exist in proto anymore --- service/jobs/ext_api.go | 2 -- service/jobs/ext_api_test.go | 5 ----- 2 files changed, 7 deletions(-) diff --git a/service/jobs/ext_api.go b/service/jobs/ext_api.go index 6887b8b40..42417150e 100644 --- a/service/jobs/ext_api.go +++ b/service/jobs/ext_api.go @@ -30,7 +30,5 @@ func (a *JobsAPI) GetRun(ctx context.Context, request GetRunRequest) (*Run, erro pageToken = nextRun.NextPageToken } - run.NextPageToken = "" - run.PrevPageToken = "" return run, nil } diff --git a/service/jobs/ext_api_test.go b/service/jobs/ext_api_test.go index f370b0673..e13a437f8 100644 --- a/service/jobs/ext_api_test.go +++ b/service/jobs/ext_api_test.go @@ -118,7 +118,6 @@ func TestGetRun(t *testing.T) { JobClusterKey: "cluster2", }, }, - PrevPageToken: "token1-reverse", }, }, { @@ -167,7 +166,6 @@ func TestGetRun(t *testing.T) { assert.Equal(t, 4, len(run.Tasks)) assert.Empty(t, run.Iterations) assert.Empty(t, run.NextPageToken) - assert.Empty(t, run.PrevPageToken) expected := []RunTask{ {RunId: 123, ForceSendFields: []string{"RunId", "TaskKey"}}, {RunId: 1234, ForceSendFields: []string{"RunId", "TaskKey"}}, @@ -226,7 +224,6 @@ func TestGetRun(t *testing.T) { JobClusterKey: "cluster2", }, }, - PrevPageToken: "token1-reverse", }, }, { @@ -318,7 +315,6 @@ func TestGetRun(t *testing.T) { RunId: 999, }, }, - PrevPageToken: "token1-reverse", }, }, { @@ -363,7 +359,6 @@ func TestGetRun(t *testing.T) { assert.Equal(t, 4, len(run.Iterations)) assert.Equal(t, 1, len(run.Tasks)) assert.Empty(t, run.NextPageToken) - assert.Empty(t, run.PrevPageToken) expected := []RunTask{ {RunId: 123, ForceSendFields: []string{"RunId", "TaskKey"}}, {RunId: 1234, ForceSendFields: []string{"RunId", "TaskKey"}},