Skip to content

chore: standardise ODB terminology #1641

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

Merged
merged 7 commits into from
Sep 28, 2022
Merged

chore: standardise ODB terminology #1641

merged 7 commits into from
Sep 28, 2022

Conversation

orinokai
Copy link
Contributor

Summary

As discussed internally, we are currently mixing terminology by referring to non-prerendered dynamic routes as 'ODB' and pre-rendered routes with revalidate as 'ISR'.

This PR standardises our header values and log output to use Netlify terminology: 'ODB' or 'ODB ttl=60'

Test plan

See updated Cypress tests

Relevant links (GitHub issues, Notion docs, etc.) or a picture of cute animal

cat with cocktail

@orinokai orinokai self-assigned this Sep 26, 2022
@orinokai orinokai requested a review from a team September 26, 2022 10:50
@netlify
Copy link

netlify bot commented Sep 26, 2022

Deploy Preview for next-hp-edge-demo ready!

Name Link
🔨 Latest commit 4b3ce7f
🔍 Latest deploy log https://app.netlify.com/sites/next-hp-edge-demo/deploys/633413b2a07d600008870812
😎 Deploy Preview https://deploy-preview-1641--next-hp-edge-demo.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 settings.

@netlify
Copy link

netlify bot commented Sep 26, 2022

Deploy Preview for netlify-plugin-nextjs-demo ready!

Name Link
🔨 Latest commit 4b3ce7f
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-demo/deploys/633413b2e8570e0008723b5f
😎 Deploy Preview https://deploy-preview-1641--netlify-plugin-nextjs-demo.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 settings.

@netlify
Copy link

netlify bot commented Sep 26, 2022

Deploy Preview for netlify-plugin-nextjs-nx-monorepo-demo ready!

Name Link
🔨 Latest commit 4b3ce7f
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-nx-monorepo-demo/deploys/633413b2482c3e00084ed27b
😎 Deploy Preview https://deploy-preview-1641--netlify-plugin-nextjs-nx-monorepo-demo.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 settings.

@github-actions github-actions bot added the type: chore work needed to keep the product and development running smoothly label Sep 26, 2022
@netlify
Copy link

netlify bot commented Sep 26, 2022

Deploy Preview for netlify-plugin-nextjs-static-root-demo ready!

Name Link
🔨 Latest commit 4b3ce7f
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-static-root-demo/deploys/633413b283f2930008fb67a6
😎 Deploy Preview https://deploy-preview-1641--netlify-plugin-nextjs-static-root-demo.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 settings.

@netlify
Copy link

netlify bot commented Sep 26, 2022

Deploy Preview for next-plugin-edge-middleware ready!

Name Link
🔨 Latest commit 4b3ce7f
🔍 Latest deploy log https://app.netlify.com/sites/next-plugin-edge-middleware/deploys/633413b2be71ad0009cd0124
😎 Deploy Preview https://deploy-preview-1641--next-plugin-edge-middleware.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 settings.

@netlify
Copy link

netlify bot commented Sep 26, 2022

Deploy Preview for netlify-plugin-nextjs-next-auth-demo ready!

Name Link
🔨 Latest commit 4b3ce7f
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-next-auth-demo/deploys/633413b2a8209200088e4928
😎 Deploy Preview https://deploy-preview-1641--netlify-plugin-nextjs-next-auth-demo.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 settings.

@netlify
Copy link

netlify bot commented Sep 26, 2022

Deploy Preview for next-plugin-app-dir failed.

Name Link
🔨 Latest commit 4b3ce7f
🔍 Latest deploy log https://app.netlify.com/sites/next-plugin-app-dir/deploys/633413b27bdb480008461a53

@netlify
Copy link

netlify bot commented Sep 26, 2022

Deploy Preview for next-plugin-rsc-demo ready!

Name Link
🔨 Latest commit 4b3ce7f
🔍 Latest deploy log https://app.netlify.com/sites/next-plugin-rsc-demo/deploys/633413b2e8570e0008723b64
😎 Deploy Preview https://deploy-preview-1641--next-plugin-rsc-demo.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 settings.

@netlify
Copy link

netlify bot commented Sep 26, 2022

Deploy Preview for next-i18next-demo ready!

Name Link
🔨 Latest commit 4b3ce7f
🔍 Latest deploy log https://app.netlify.com/sites/next-i18next-demo/deploys/633413b2d930b50008cced3e
😎 Deploy Preview https://deploy-preview-1641--next-i18next-demo.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 settings.

@netlify
Copy link

netlify bot commented Sep 26, 2022

Deploy Preview for netlify-plugin-nextjs-export-demo ready!

Name Link
🔨 Latest commit 4b3ce7f
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-export-demo/deploys/633413b283f2930008fb67aa
😎 Deploy Preview https://deploy-preview-1641--netlify-plugin-nextjs-export-demo.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 settings.

@netlify
Copy link

netlify bot commented Sep 26, 2022

Deploy Preview for nextjs-plugin-custom-routes-demo ready!

Name Link
🔨 Latest commit 4b3ce7f
🔍 Latest deploy log https://app.netlify.com/sites/nextjs-plugin-custom-routes-demo/deploys/633413b2e971bb0009b41633
😎 Deploy Preview https://deploy-preview-1641--nextjs-plugin-custom-routes-demo.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 settings.

@netlify
Copy link

netlify bot commented Sep 26, 2022

Deploy Preview for next-plugin-canary ready!

Name Link
🔨 Latest commit 4b3ce7f
🔍 Latest deploy log https://app.netlify.com/sites/next-plugin-canary/deploys/633413b2f5f55f0009383549
😎 Deploy Preview https://deploy-preview-1641--next-plugin-canary.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 settings.

@@ -25,7 +25,7 @@ export async function getStaticProps(context) {
props: {
show: data,
},
revalidate: 1,
revalidate: 60,

Choose a reason for hiding this comment

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

A comment linking to documentation about the 60 second minimum would be helpful for folks navigating through the codebase.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I popped a note in the readme because there are various different demo pages with revalidate: 60 and thought it best not to duplicate the comment everywhere

Copy link
Contributor

Choose a reason for hiding this comment

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

I think this may have been deliberately set to 1 to check that it's correctly being changed to 60.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ascorbic ah, i see - i'll change it back and add a comment

)
multiValueHeaders['x-nf-render-mode'] = [requestMode]

console.log(`[${event.httpMethod}] ${event.path} (${requestMode?.toUpperCase()})`)

Choose a reason for hiding this comment

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

Was this console.log added for debugging purposes and accidentally added?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks but nope - this is by design so that the ODB request is logged in the function logs

nickytonline
nickytonline previously approved these changes Sep 26, 2022
Copy link

@nickytonline nickytonline left a comment

Choose a reason for hiding this comment

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

Thanks for adding the comment about 60 second TTL! 🚀

ascorbic
ascorbic previously approved these changes Sep 27, 2022
@kodiakhq kodiakhq bot merged commit 4aa57ed into main Sep 28, 2022
@kodiakhq kodiakhq bot deleted the rs/odb-terminology branch September 28, 2022 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge type: chore work needed to keep the product and development running smoothly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants