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

include name and email in contributor index #1322

Merged
merged 1 commit into from
Nov 19, 2024

Conversation

haarg
Copy link
Member

@haarg haarg commented Nov 19, 2024

All contributors, including those that can't be mapped to a PAUSE author, should be included in the contributor index. This will allow the web end points to look up all contributor information via the index, rather than needing to re-calculate for each call.

Adds the name and email fields to the contributor index, and populates them when calculating contributor data. The PAUSE id is no longer required, so it can't be used for the id of the ES doc. Instead, we delete all of the ids for a release before updating the data. Previously, the contributors script would ignore existing data. Now, it will delete and recreate the data.

For now, the release/contributors end point will still recalculate the data for each call. After this change is deployed and all of the data is updated, it can be updated to use the contributor index and be much simpler. This will also reduce the code shared between indexing and the API.

All contributors, including those that can't be mapped to a PAUSE
author, should be included in the contributor index. This will allow the
web end points to look up all contributor information via the index,
rather than needing to re-calculate for each call.

Adds the name and email fields to the contributor index, and populates
them when calculating contributor data. The PAUSE id is no longer
required, so it can't be used for the id of the ES doc. Instead, we
delete all of the ids for a release before updating the data.
Previously, the contributors script would ignore existing data. Now, it
will delete and recreate the data.

For now, the release/contributors end point will still recalculate the
data for each call. After this change is deployed and all of the data is
updated, it can be updated to use the contributor index and be much
simpler. This will also reduce the code shared between indexing and the
API.
@haarg haarg merged commit 232b751 into master Nov 19, 2024
2 checks passed
@haarg haarg deleted the haarg/index-contrib-name-email branch November 19, 2024 20:55
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