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(contributors): create shape for allTimeData json type #12037

Conversation

TylerAPfledderer
Copy link
Contributor

Description

Currently in the Contributors page, there is a flatmap using the allTimeData json to create a simplified array of translator info translatorData.

A type error currently throws: Property 'data' does not exist on type '{}'

This is because a type is not being inferred for the json file and is only providing an empty object.

This PR creates the shape for this data structure so there is type safety in the flatmap.

The shape was generated using Transform Web Converter App and double-checked for any undefined fields with the data used.

According to the shape generated, there should be no fields in the JSON structure that would be undefined or null.

Related Issue

N/A

Copy link

netlify bot commented Jan 28, 2024

Deploy Preview for ethereumorg ready!

Name Link
🔨 Latest commit c9f9419
🔍 Latest deploy log https://app.netlify.com/sites/ethereumorg/deploys/65b5ae39ddb4ec00087ba68f
😎 Deploy Preview https://deploy-preview-12037--ethereumorg.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@github-actions github-actions bot added review needed 👀 tooling 🔧 Changes related to tooling of the project labels Jan 28, 2024
Copy link
Member

@pettinarip pettinarip left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @TylerAPfledderer

@pettinarip pettinarip merged commit 322ba54 into ethereum:dev Jan 29, 2024
10 checks passed
@TylerAPfledderer TylerAPfledderer deleted the fix/contributors-allTimeData-type-error branch January 29, 2024 18:44
This was referenced Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tooling 🔧 Changes related to tooling of the project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants