Skip to content

Commit

Permalink
Merge pull request #1150 from cardstack/cs-6654-paginate-search-results
Browse files Browse the repository at this point in the history
Paging support for search
  • Loading branch information
habdelra authored Apr 9, 2024
2 parents c15988d + 6573dc6 commit fe40346
Show file tree
Hide file tree
Showing 5 changed files with 272 additions and 43 deletions.
2 changes: 1 addition & 1 deletion packages/host/tests/helpers/indexer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export async function serializeCard(card: CardDef): Promise<CardResource> {
return api.serializeCard(card).data as CardResource;
}

type TestIndexRow =
export type TestIndexRow =
| (Pick<IndexedCardsTable, 'card_url'> &
Partial<Omit<IndexedCardsTable, 'card_url'>>)
| CardDef
Expand Down
8 changes: 4 additions & 4 deletions packages/host/tests/unit/indexer-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -461,11 +461,11 @@ module('Unit | indexer', function (hooks) {
);
assert.strictEqual(
versions.length,
1,
2,
'correct number of versions exist for the entry after finishing the batch',
);

let [finalVersion] = versions;
let [_, finalVersion] = versions;
assert.deepEqual(
finalVersion,
{
Expand Down Expand Up @@ -558,11 +558,11 @@ module('Unit | indexer', function (hooks) {
);
assert.strictEqual(
versions.length,
1,
2,
'correct number of versions exist for the entry after finishing the batch',
);

let [finalVersion] = versions;
let [_, finalVersion] = versions;
assert.deepEqual(
finalVersion,
{ realm_version: 2, is_deleted: true },
Expand Down
Loading

0 comments on commit fe40346

Please sign in to comment.