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:
qwerty287
2023-04-30 03:40:13 +02:00
committed by GitHub
parent 26f3877913
commit 0f9188597e
76 changed files with 607 additions and 532 deletions

View File

@@ -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 {