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

teableio / teable / 8478979078

29 Mar 2024 08:32AM UTC coverage: 82.643% (+61.0%) from 21.636%
8478979078

push

github

web-flow
feat: search api (#507)

* feat: search api

* test: add advanced test case

* feat: search responsive ui

* feat: realtime search

3942 of 4135 branches covered (95.33%)

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

26536 of 32109 relevant lines covered (82.64%)

1222.65 hits per line

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

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

4✔
4
export class DateFieldDto extends DateFieldCore 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) {
387✔
11
      return value == null ? value : JSON.stringify(value);
98✔
12
    }
98✔
13
    return value;
289✔
14
  }
289✔
15

4✔
16
  convertDBValue2CellValue(value: unknown): unknown {
4✔
17
    if (this.isMultipleCellValue) {
6,037✔
18
      return value == null || typeof value === 'object' ? value : JSON.parse(value as string);
918✔
19
    }
918✔
20
    if (value instanceof Date) {
6,037✔
21
      return value.toISOString();
3,957✔
22
    }
3,957✔
23
    return value;
1,162✔
24
  }
1,162✔
25
}
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