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

teableio / teable / 14752919262

30 Apr 2025 10:55AM UTC coverage: 80.5% (-0.001%) from 80.501%
14752919262

push

github

web-flow
fix: s3 provider public bucket url (#1496)

7691 of 8159 branches covered (94.26%)

0 of 3 new or added lines in 1 file covered. (0.0%)

36794 of 45707 relevant lines covered (80.5%)

1759.94 hits per line

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

66.67
/apps/nestjs-backend/src/features/attachments/plugins/utils.ts
1
import { join } from 'path';
4✔
2
import { baseConfig } from '../../../configs/base.config';
3
import { storageConfig } from '../../../configs/storage';
4
import { LocalStorage } from './local';
5
import type { ThumbnailSize } from './types';
6

7
export const getFullStorageUrl = (bucket: string, path: string) => {
4✔
8
  const { storagePrefix } = baseConfig();
47,689✔
9
  const { provider } = storageConfig();
47,689✔
10
  if (provider === 'local') {
47,689✔
11
    return baseConfig().storagePrefix + join('/', LocalStorage.readPath, bucket, path);
47,689✔
12
  }
47,689!
NEW
13
  if (provider === 's3') {
×
NEW
14
    return storagePrefix + join('/', path);
×
NEW
15
  }
×
16
  return storagePrefix + join('/', bucket, path);
×
17
};
×
18

19
export const generateCropImagePath = (path: string, size: ThumbnailSize) => {
4✔
20
  return `${path}_${size}`;
16✔
21
};
16✔
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

© 2026 Coveralls, Inc