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

Data loader #14179

Merged
merged 12 commits into from
Oct 20, 2024
Merged

Data loader #14179

merged 12 commits into from
Oct 20, 2024

Conversation

pettinarip
Copy link
Member

@pettinarip pettinarip commented Oct 17, 2024

Description

Creates a data loader function to handle data caching, error handling and mock data.


Important: the last two commits are for testing purposes. They need to be removed once we get an approval.

Testing params: current build is only building en and the home page has a revalidate time of 60 seconds.

TODO

  • remove testing config before merging

@github-actions github-actions bot added config ⚙️ Changes to configuration files tooling 🔧 Changes related to tooling of the project labels Oct 17, 2024
Copy link

netlify bot commented Oct 17, 2024

Deploy Preview for ethereumorg ready!

Name Link
🔨 Latest commit 55432bf
🔍 Latest deploy log https://app.netlify.com/sites/ethereumorg/deploys/67121b189919ca0008067180
😎 Deploy Preview https://deploy-preview-14179--ethereumorg.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
7 paths audited
Performance: 51 (🔴 down 2 from production)
Accessibility: 93 (no change from production)
Best Practices: 89 (🔴 down 9 from production)
SEO: 92 (no change from production)
PWA: -
View the detailed breakdown and full score reports

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

@pettinarip pettinarip mentioned this pull request Oct 17, 2024
Copy link
Member Author

Choose a reason for hiding this comment

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

Changes for testing purposes. This will show the full date and time and will help us to check that the data has been updated.


type Props = BasePageProps & {
metricResults: AllMetricData
rssData: { rssItems: RSSItem[]; blogLinks: CommunityBlog[] }
}

// In seconds
const REVALIDATE_TIME = 60
Copy link
Member Author

Choose a reason for hiding this comment

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

Revert once we finish testing.

Copy link
Member

@wackerow wackerow left a comment

Choose a reason for hiding this comment

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

🎉🎉 Overall seems to be working, but sometimes seems to take one or two refreshes more than I would expect, but it eventually updates. I'd be down to pull this in (after reverting the testing commits) and give it a try in staging then prod

src/lib/utils/data/dataLoader.ts Outdated Show resolved Hide resolved
src/lib/utils/data/dataLoader.ts Show resolved Hide resolved
@wackerow wackerow added the Status: Blocked 🛑 This is blocked label Oct 18, 2024
@wackerow
Copy link
Member

Marked as "Blocked" until reviewed, approved, and test commits reverted.

@corwintines corwintines self-assigned this Oct 20, 2024
Copy link
Member

@corwintines corwintines left a comment

Choose a reason for hiding this comment

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

LGTM, seems to be working well in the preview deploy

This reverts commit 4a9e467.
This reverts commit 2a76c93.
Copy link
Member

@wackerow wackerow left a comment

Choose a reason for hiding this comment

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

Reverted the test commits; bringing in

@wackerow wackerow merged commit 6ff213c into dev Oct 20, 2024
3 checks passed
@wackerow wackerow deleted the data-loader branch October 20, 2024 19:46
@wackerow wackerow removed the Status: Blocked 🛑 This is blocked label Oct 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
config ⚙️ Changes to configuration files tooling 🔧 Changes related to tooling of the project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants