Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(lambda-tiler): Increase limit of total file size. #2205

Merged
merged 5 commits into from
May 19, 2022

Conversation

Wentao-Kuang
Copy link
Contributor

No description provided.

@Wentao-Kuang Wentao-Kuang requested a review from a team as a code owner May 18, 2022 22:41
if (searchKey.endsWith('.tif') || searchKey.endsWith('.tiff')) files.push(key);
let totalSize = 0;
for await (const key of fsa.details(path)) {
console.log(key);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

console.log

@@ -9,6 +9,9 @@ import { CogJobFactory } from '@basemaps/cli';
import * as ulid from 'ulid';
import { basename } from 'path';

const FILES_NUMBER_LIMIT = 10_000; // Limit to 10000 files
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you add these as Env vars

@@ -120,7 +120,7 @@ o.spec('Import', () => {
o('should return 200 with existing import', async () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would be good to have a test for the file count and file size limits

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All fixed. Can you please have a look? Thanks.

@Wentao-Kuang Wentao-Kuang requested a review from blacha May 19, 2022 02:08
@kodiakhq kodiakhq bot merged commit 5246ea0 into master May 19, 2022
@kodiakhq kodiakhq bot deleted the feat/increase-limit branch May 19, 2022 02:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants