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

Fixed issue where additional contributor info was missing in profile. #129

Merged

Conversation

nickytonline
Copy link
Contributor

In my previous work in #115, I created a regression. There was missing contributor profile information with my change. This fixes that. TLDR, the additional profile info was not being pulled properly.

Before

image

After

image

Chris Pratt in Parks and Recreation making faces that indicate oops

@netlify
Copy link

netlify bot commented Aug 21, 2020

Deploy request for affectionate-goldberg-7cf473 accepted.

Accepted with commit 9a59b5e

https://app.netlify.com/sites/affectionate-goldberg-7cf473/deploys/5f3fcd617cc2b800070dc41a

@@ -63,14 +63,23 @@ async function generateContributorsJson() {
'✅ Received the list of contributors for the repository https://github.com/drewclem/protege.'
)

const individualContributorResponses = await Promise.all(
rawContributors.map(({ url }) => fetch(url))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Before all I was doing was returning the same array, so when they got merged, there was no additional info added to profile info.

Now, I actually use fetch to retrieve the additional info. Not enough coffee I guess. 🙃

const individualContributorInfos = await Promise.all(
rawContributors.map((url) => url)
individualContributorResponses.map((response) => response.json())
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Getting the additional profile information properly now.

@nickytonline nickytonline changed the base branch from master to develop August 21, 2020 13:38
@drewclem
Copy link
Collaborator

Amazing. I hadn't even noticed they were missing 😆

@drewclem drewclem merged commit f3ae479 into ProjectProtege:develop Aug 21, 2020
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.

None yet

2 participants