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

teableio / teable / 10315078073

09 Aug 2024 07:01AM CUT coverage: 82.673% (-0.002%) from 82.675%
10315078073

Pull #806

github

web-flow
Merge 85e7898ed into 7701966d5
Pull Request #806: fix: the attachments rendering in the record history

4426 of 4647 branches covered (95.24%)

76 of 83 new or added lines in 2 files covered. (91.57%)

1 existing line in 1 file now uncovered.

29324 of 35470 relevant lines covered (82.67%)

1241.57 hits per line

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

0.0
/apps/nestjs-backend/src/share-db/utils.ts
1
import { ActionPrefix, IdPrefix } from '@teable/core';
×
2
import type { CreateOp, DeleteOp, EditOp } from 'sharedb';
×
3

×
4
export const getPrefixAction = (docType: IdPrefix) => {
×
5
  switch (docType) {
×
6
    case IdPrefix.View:
×
7
      return ActionPrefix.View;
×
8
    case IdPrefix.Table:
×
9
      return ActionPrefix.Table;
×
10
    case IdPrefix.Record:
×
11
      return ActionPrefix.Record;
×
12
    case IdPrefix.Field:
×
13
      return ActionPrefix.Field;
×
14
    default:
×
15
      return null;
×
16
  }
×
17
};
×
18

×
19
export const getAction = (op: CreateOp | DeleteOp | EditOp) => {
×
20
  if (op.create) {
×
21
    return 'create';
×
22
  }
×
23
  if (op.del) {
×
24
    return 'delete';
×
25
  }
×
26
  if (op.op) {
×
27
    return 'update';
×
28
  }
×
29
  return null;
×
30
};
×
31

×
32
export const getAxiosBaseUrl = () => `http://localhost:${process.env.PORT}/api`;
×
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