diff --git a/quickwit/quickwit-ui/cypress/e2e/homepage.spec.cy.js b/quickwit/quickwit-ui/cypress/e2e/homepage.spec.cy.js index 15779277436..5067b5583c4 100644 --- a/quickwit/quickwit-ui/cypress/e2e/homepage.spec.cy.js +++ b/quickwit/quickwit-ui/cypress/e2e/homepage.spec.cy.js @@ -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') + }); }) diff --git a/quickwit/quickwit-ui/src/services/client.ts b/quickwit/quickwit-ui/src/services/client.ts index 6acb2c056a5..9f55d41ba8f 100644 --- a/quickwit/quickwit-ui/src/services/client.ts +++ b/quickwit/quickwit-ui/src/services/client.ts @@ -75,9 +75,10 @@ export class Client { } async getAllSplits(indexId: string): Promise> { - const splits: Array = await this.fetch(`${this.apiRoot()}indexes/${indexId}/splits`, {}); + // TODO: restrieve all the splits. + const results: {splits: Array} = await this.fetch(`${this.apiRoot()}indexes/${indexId}/splits?limit=10000`, {}); - return splits; + return results['splits']; } async listIndexes(): Promise> {