-
Notifications
You must be signed in to change notification settings - Fork 1
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
fix: SJIP-882 make use of executeSearchAfterQuery for manifests #123
Conversation
src/reports/file-manifest/index.ts
Outdated
const fileIds = files?.map((f) => f.file_id); | ||
console.log('OriginalFileIds: ', fileIds); |
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.
Don't forget to remove logs
src/reports/utils/getFamilyIds.ts
Outdated
@@ -1,7 +1,8 @@ | |||
import { Client } from '@elastic/elasticsearch'; | |||
import { env } from 'process'; |
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.
use env file instead
src/reports/utils/getFamilyIds.ts
Outdated
sources.push(...pageHits); | ||
}, | ||
onFinish: (total) => { | ||
console.log(`Finished fetching all pages in getFilesInfo. Total hits: ${total}`); |
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.
remove log
src/reports/utils/getFamilyIds.ts
Outdated
onFinish: (total) => { | ||
console.log(`Finished fetching all pages in getFilesInfo. Total hits: ${total}`); | ||
}, | ||
pageSize: Number(env.ES_PAGESIZE), |
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.
use ES_PAGE_SIZE from env.ts
src/reports/utils/getFamilyIds.ts
Outdated
const filesIdsMatched = await getFilesIdsMatched(filesInfos, es); | ||
const newFileIds = [...new Set([...fileIds, ...filesIdsMatched])]; | ||
console.log('filesIdsMatched: ', filesIdsMatched.length); |
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.
remove logs
No description provided.