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

fix: SJIP-882 make use of executeSearchAfterQuery for manifests #123

Merged
merged 3 commits into from
Jul 4, 2024

Conversation

aperron-ferlab
Copy link
Contributor

No description provided.

const fileIds = files?.map((f) => f.file_id);
console.log('OriginalFileIds: ', fileIds);
Copy link
Member

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

@@ -1,7 +1,8 @@
import { Client } from '@elastic/elasticsearch';
import { env } from 'process';
Copy link
Member

Choose a reason for hiding this comment

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

use env file instead

sources.push(...pageHits);
},
onFinish: (total) => {
console.log(`Finished fetching all pages in getFilesInfo. Total hits: ${total}`);
Copy link
Member

Choose a reason for hiding this comment

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

remove log

onFinish: (total) => {
console.log(`Finished fetching all pages in getFilesInfo. Total hits: ${total}`);
},
pageSize: Number(env.ES_PAGESIZE),
Copy link
Member

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

const filesIdsMatched = await getFilesIdsMatched(filesInfos, es);
const newFileIds = [...new Set([...fileIds, ...filesIdsMatched])];
console.log('filesIdsMatched: ', filesIdsMatched.length);
Copy link
Member

Choose a reason for hiding this comment

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

remove logs

@aperron-ferlab aperron-ferlab merged commit 2fe573e into master Jul 4, 2024
3 checks passed
@aperron-ferlab aperron-ferlab deleted the fix/sjip-882 branch July 4, 2024 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants