• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

teableio / teable / 8389034572

22 Mar 2024 10:38AM UTC coverage: 26.087% (-2.1%) from 28.208%
8389034572

Pull #487

github

web-flow
Merge 3045b1f94 into a06c6afb1
Pull Request #487: refactor: move zod schema to openapi

2100 of 3363 branches covered (62.44%)

282 of 757 new or added lines in 74 files covered. (37.25%)

224 existing lines in 8 files now uncovered.

25574 of 98035 relevant lines covered (26.09%)

5.17 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/apps/nextjs-app/src/features/app/blocks/table/hooks/use-aggregations-query.ts
NEW
1
import type { IAggregationVo } from '@teable/openapi';
×
2
import { Table } from '@teable/sdk/model';
×
3
import { useEffect, useState } from 'react';
×
4

×
5
export const useAggregationsQuery = (tableId: string, viewId: string) => {
×
6
  const [viewAggregation, setViewAggregation] = useState<IAggregationVo>();
×
7

×
8
  useEffect(() => {
×
9
    Table.getAggregations(tableId, { viewId }).then((res) => {
×
10
      const { aggregations } = res.data;
×
11
      setViewAggregation({
×
12
        [viewId]: {
×
13
          viewId: viewId,
×
14
          aggregations: aggregations ?? [],
×
15
          executionTime: new Date().getTime(),
×
16
        },
×
17
      });
×
18
    });
×
19
  }, [tableId, viewId]);
×
20

×
21
  return viewAggregation;
×
22
};
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc