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

teableio / teable / 10952476725

20 Sep 2024 03:07AM UTC coverage: 84.933%. First build
10952476725

push

github

web-flow
feat: support record comment (#910)

* feat: comment backend initialize

* feat: comment openapi initialize

* feat: support comment reaction and notify

* chore: expose `HoverPortal` component

* chore: update `@teable/icons`

* feat: create comment prisma tempalte

* feat: generate comment open-api

* feat: support comment advance feature

* feat: comment notify user list add quote creator and mention user

* feat: grid support display comment count

* chore: add comment e2e test suit

* fix: fix type definition clash

* chore: add comment migration

* fix: separate partial comment type definition for zod2openapi unknown error

* fix: import `@teable/icons` error when `moduleResolution` set to `Bundler`

* fix: sdk i18n error code

* feat: rename comment subscribe table name and generate migration

* feat: add comment reaction thumbsdown

* fix: add presence unsubscribe judgment relative to comment

* chore: css adjustment

fix: zod2openapi error by separate type define

* fix: comment e2e error

* feat: add composite index for comment list table

* feat: add record comment count query api

* fix: reply to someone should be receive the notification

* fix: comment count inaccurate when add view group condition

* fix: abundant field expand card display

* feat: @ mention user filter self

* fix: not found subscribe throw null

5596 of 5898 branches covered (94.88%)

618 of 812 new or added lines in 6 files covered. (76.11%)

36770 of 43293 relevant lines covered (84.93%)

1166.23 hits per line

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

0.0
/apps/nestjs-backend/src/worker/parse.ts
1
import { parentPort, workerData } from 'worker_threads';
×
2
import { getRandomString } from '@teable/core';
×
3
import type { IImportConstructorParams } from '../features/import/open-api/import.class';
×
4
import { importerFactory } from '../features/import/open-api/import.class';
×
5

×
6
const parse = () => {
×
7
  const { config, options, id } = { ...workerData } as {
×
8
    config: IImportConstructorParams;
×
9
    options: {
×
10
      skipFirstNLines: number;
×
11
      key: string;
×
12
    };
×
13
    id: string;
×
14
  };
×
15
  const importer = importerFactory(config.type, config);
×
16
  importer.parse(
×
17
    { ...options },
×
18
    async (chunk) => {
×
19
      return await new Promise((resolve) => {
×
20
        const chunkId = `chunk_${getRandomString(8)}`;
×
21
        parentPort?.postMessage({ type: 'chunk', data: chunk, chunkId, id });
×
22
        parentPort?.on('message', (result) => {
×
23
          const { type, chunkId: tunnelChunkId } = result;
×
24
          if (type === 'done' && tunnelChunkId === chunkId) {
×
25
            resolve();
×
26
          }
×
27
        });
×
28
      });
×
29
    },
×
30
    () => {
×
31
      parentPort?.postMessage({ type: 'finished', id });
×
32
      parentPort?.close();
×
33
    },
×
34
    (error) => {
×
35
      parentPort?.postMessage({ type: 'error', data: error, id });
×
36
      parentPort?.close();
×
37
    }
×
38
  );
×
39
};
×
40

×
41
parse();
×
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