[X] I have checked that this issue has not already been reported.
[X] I have confirmed this bug exists on the latest version of feo-client.
[X] I have confirmed this bug exists on the main branch of feo-client.
Reproducible Example
def test_search_pagination(self):
PAGE_LIMIT = 5
items1 = Asset.search(alias="Rooppur nuclear power plant", limit=PAGE_LIMIT, page=0)
assert len(items1) == PAGE_LIMIT
items2 = Asset.search(alias="Rooppur nuclear power plant", limit=PAGE_LIMIT, page=1)
assert len(items2) == PAGE_LIMIT
ids1 = {item.id for item in items1}
ids2 = {item.id for item in items2}
# assert that items on different pages are all different
assert ids1.intersection(ids2) == set()
Issue Description
Pages 0 and 1 of a search for Assets via the aliases endpoint are not disjoint. In the example above, we see the ID PWRURNRUSA10U3z in both sets.
This may lead to surprising behaviour e.g. when generating dataframes from results.
Expected Behavior
items in page 0 and page 1 should be disjoint (I assume).
Checklist
[X] I have checked that this issue has not already been reported.
[X] I have confirmed this bug exists on the latest version of feo-client.
[X] I have confirmed this bug exists on the main branch of feo-client.
Reproducible Example
Issue Description
Pages 0 and 1 of a search for Assets via the
aliases
endpoint are not disjoint. In the example above, we see the IDPWRURNRUSA10U3z
in both sets.This may lead to surprising behaviour e.g. when generating dataframes from results.
Expected Behavior
items in page 0 and page 1 should be disjoint (I assume).