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

teableio / teable / 8478890164

29 Mar 2024 08:22AM UTC coverage: 82.65% (+61.0%) from 21.636%
8478890164

Pull #507

github

web-flow
Merge 51d925243 into 3c84d303b
Pull Request #507: feat: search api

3964 of 4157 branches covered (95.36%)

454 of 493 new or added lines in 29 files covered. (92.09%)

26538 of 32109 relevant lines covered (82.65%)

1222.68 hits per line

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

72.73
/apps/nestjs-backend/src/features/field/model/field-dto/rating-field.dto.ts
1
import { RatingFieldCore } from '@teable/core';
4✔
2
import type { FieldBase } from '../field-base';
4✔
3

4✔
4
export class RatingFieldDto extends RatingFieldCore implements FieldBase {
4✔
5
  get isStructuredCellValue() {
4✔
NEW
6
    return false;
×
NEW
7
  }
×
8

4✔
9
  convertCellValue2DBValue(value: unknown): unknown {
4✔
10
    if (this.isMultipleCellValue) {
14!
11
      return value == null ? value : JSON.stringify(value);
×
12
    }
×
13
    return value;
14✔
14
  }
14✔
15

4✔
16
  convertDBValue2CellValue(value: unknown): unknown {
4✔
17
    if (this.isMultipleCellValue) {
26!
18
      return value == null || typeof value === 'object' ? value : JSON.parse(value as string);
×
19
    }
×
20
    return value;
26✔
21
  }
26✔
22
}
4✔
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