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

teableio / teable / 11737718778

08 Nov 2024 07:11AM UTC coverage: 84.463% (-0.02%) from 84.481%
11737718778

Pull #1068

github

web-flow
Merge 0021d834c into 80e1ddb11
Pull Request #1068: Generate Formula with AI

5926 of 6216 branches covered (95.33%)

32 of 48 new or added lines in 4 files covered. (66.67%)

4 existing lines in 2 files now uncovered.

38907 of 46064 relevant lines covered (84.46%)

1714.8 hits per line

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

59.26
/apps/nestjs-backend/src/features/setting/setting.controller.ts
1
import { Body, Controller, Get, Patch } from '@nestjs/common';
2✔
2
import { IUpdateSettingRo, updateSettingRoSchema } from '@teable/openapi';
2✔
3
import type { ISettingVo } from '@teable/openapi';
2✔
4
import { ZodValidationPipe } from '../../zod.validation.pipe';
2✔
5
import { Permissions } from '../auth/decorators/permissions.decorator';
2✔
6
import { Public } from '../auth/decorators/public.decorator';
2✔
7
import { SettingService } from './setting.service';
2✔
8

2✔
9
@Controller('api/admin/setting')
2✔
10
export class SettingController {
2✔
11
  constructor(private readonly settingService: SettingService) {}
93✔
12

93✔
13
  @Public()
93✔
14
  @Get()
×
15
  async getSetting(): Promise<ISettingVo> {
×
16
    return await this.settingService.getSetting();
×
17
  }
×
18

93✔
19
  @Patch()
93✔
20
  @Permissions('instance|update')
×
UNCOV
21
  async updateSetting(
×
UNCOV
22
    @Body(new ZodValidationPipe(updateSettingRoSchema))
×
23
    updateSettingRo: IUpdateSettingRo
×
24
  ): Promise<ISettingVo> {
×
25
    return await this.settingService.updateSetting(updateSettingRo);
×
26
  }
×
27
}
93✔
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