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

teableio / teable / 10315240697

09 Aug 2024 07:14AM CUT coverage: 82.671% (-0.004%) from 82.675%
10315240697

Pull #807

github

web-flow
Merge 5c2c3e070 into 7701966d5
Pull Request #807: feat: new isUnrestricted parameter returned by base query interface

4399 of 4620 branches covered (95.22%)

2 of 7 new or added lines in 2 files covered. (28.57%)

1 existing line in 1 file now uncovered.

29292 of 35432 relevant lines covered (82.67%)

1242.81 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