Skip to content

Commit

Permalink
Fix ui index view. (#4041)
Browse files Browse the repository at this point in the history
  • Loading branch information
fmassot authored Oct 27, 2023
1 parent 8c1138f commit 572d6d5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions quickwit/quickwit-ui/cypress/e2e/homepage.spec.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,10 @@ describe('Home navigation', () => {
cy.get('p').should('contain.text', 'Cluster');
cy.get('span').should('contain.text', 'cluster_id');
});
it('Should display otel logs index page', () => {
cy.visit('http://127.0.0.1:7280/ui/indexes/otel-logs-v0_6');
cy.get('a')
.should('be.visible')
.should('contain.text', 'Indexes')
});
})
5 changes: 3 additions & 2 deletions quickwit/quickwit-ui/src/services/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,10 @@ export class Client {
}

async getAllSplits(indexId: string): Promise<Array<SplitMetadata>> {
const splits: Array<SplitMetadata> = await this.fetch(`${this.apiRoot()}indexes/${indexId}/splits`, {});
// TODO: restrieve all the splits.
const results: {splits: Array<SplitMetadata>} = await this.fetch(`${this.apiRoot()}indexes/${indexId}/splits?limit=10000`, {});

return splits;
return results['splits'];
}

async listIndexes(): Promise<Array<IndexMetadata>> {
Expand Down

0 comments on commit 572d6d5

Please sign in to comment.