Feat: Scrolling knowledge base list and set the number of entries per page to 30 #3695 (#3712)

### What problem does this PR solve?

Feat: Scrolling knowledge base list and set the number of entries per
page to 30 #3695

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2024-11-28 15:25:38 +08:00
committed by GitHub
parent 7ae8828e61
commit ec560cc99d
12 changed files with 158 additions and 38 deletions

View File

@ -13,7 +13,7 @@ def test_dataset(get_auth):
while True:
res = list_dataset(get_auth, page_number)
data = res.get("data")
for item in data:
for item in data.get("kbs"):
dataset_id = item.get("id")
dataset_list.append(dataset_id)
if len(dataset_list) < page_number * 150:
@ -42,7 +42,7 @@ def test_dataset_1k_dataset(get_auth):
while True:
res = list_dataset(get_auth, page_number)
data = res.get("data")
for item in data:
for item in data.get("kbs"):
dataset_id = item.get("id")
dataset_list.append(dataset_id)
if len(dataset_list) < page_number * 150: