-
Notifications
You must be signed in to change notification settings - Fork 17
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
Conversation
if (searchKey.endsWith('.tif') || searchKey.endsWith('.tiff')) files.push(key); | ||
let totalSize = 0; | ||
for await (const key of fsa.details(path)) { | ||
console.log(key); |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 () => { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
No description provided.