mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2026-03-16 17:54:07 +01:00
Initiate Pagination Implementation for API and Infinite Scroll in UI (#1651)
- Add pagination support to the API endpoints that return lists of items - Adjust UI to enable infinite scrolling via pagination
This commit is contained in:
@@ -27,9 +27,8 @@ import (
|
||||
"strconv"
|
||||
"time"
|
||||
|
||||
"github.com/rs/zerolog/log"
|
||||
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
"github.com/rs/zerolog/log"
|
||||
"google.golang.org/grpc/metadata"
|
||||
grpcMetadata "google.golang.org/grpc/metadata"
|
||||
|
||||
@@ -141,7 +140,8 @@ func (s *RPC) Update(c context.Context, id string, state rpc.State) error {
|
||||
log.Error().Err(err).Msg("rpc.update: cannot update step")
|
||||
}
|
||||
|
||||
if currentPipeline.Steps, err = s.store.StepList(currentPipeline); err != nil {
|
||||
currentPipeline.Steps, err = s.store.StepList(currentPipeline)
|
||||
if err != nil {
|
||||
log.Error().Err(err).Msg("can not get step list from store")
|
||||
}
|
||||
if currentPipeline.Steps, err = model.Tree(currentPipeline.Steps); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user