Skip to content

Commit 0792d43

Browse files
authored
🐛 [artefacts] fix artefact pagination (#86)
<!-- Copyright (C) 2020-2022 Arm Limited or its affiliates and Contributors. All rights reserved. SPDX-License-Identifier: Proprietary --> ### Description <!-- Please add any detail or context that would be useful to a reviewer. --> ### Test Coverage <!-- Please put an `x` in the correct box e.g. `[x]` to indicate the testing coverage of this change. --> - [ ] This change is covered by existing or additional automated tests. - [ ] Manual testing has been performed (and evidence provided) as automated testing was not feasible. - [x] Additional tests are not required for this change (e.g. documentation update).
1 parent 324cccf commit 0792d43

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changes/20241030182224.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
:bug: `[artefacts]` fix artefact pagination

utils/artefacts/artefacts.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ func (m *ArtefactManager) fetchJobArtefactsNextPage(ctx context.Context, current
232232
err = fmt.Errorf("%w: function to retrieve artefact managers was not properly defined", commonerrors.ErrUndefined)
233233
return
234234
}
235-
page, ok := paginationUtils.ToClientPage(currentPage).(*client.BuildJobCollection)
235+
page, ok := paginationUtils.ToClientPage(currentPage).(*client.ArtefactManagerCollection)
236236
if !ok {
237237
err = fmt.Errorf("%w: returned build job page [%T] is not of the expected type [%v]", commonerrors.ErrUnexpected, currentPage, "*BuildJobCollection")
238238
return

0 commit comments

Comments
 (0)