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

crawler - github - index the mergeCommit's sha #1073

Merged
merged 3 commits into from
Oct 30, 2023

Conversation

morucci
Copy link
Collaborator

@morucci morucci commented Oct 25, 2023

Fix #1072

]

mergedCommitField :: [Pair]
mergedCommitField = ["merged_commit_sha" .= NonIndexedMapping]
Copy link
Contributor

Choose a reason for hiding this comment

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

Perhaps this should be indexed, so that later we can do filter based on this field?
@leonid-deriv would that works for your use-case?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Well, I've updated the PR to use the standard keyword mapping for that field.

Choose a reason for hiding this comment

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

Honestly, I am not sure I fully understand the question. For us, the most important thing is that mergeCommit should be available in the elastic (in Change and ideally in ChangeMergedEvent)

The previous commit sets the field as non indexed meaning that
it was only stored an retreivable but not searchable.

This commit changes this field setting as a standard keywork
field to make it searcheable.
@morucci morucci added the merge me Trigger the merge process label Oct 30, 2023
@mergify mergify bot merged commit 7915520 into change-metrics:master Oct 30, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge me Trigger the merge process
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add merge_commit_sha to Change event
3 participants