Skip to content

fix(deploy): fix edge function logs url scope key #6881

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 1 commit into from
Oct 17, 2024

Conversation

serhalp
Copy link
Collaborator

@serhalp serhalp commented Oct 17, 2024

Follow-up to #6851.

You can see here it says "Show logs for deploy...": https://app.netlify.com/sites/hydrogen-advanced-caching/logs/edge-functions?scope=deployid:6705473738103f2856071dbd.

This doesn't work with ?scope=deploy:.

This is a bit of a footgun since the Functions log URL takes deploy: but the Edge Functions log URL takes deployid:. 😓

Follow-up to #6851.

You can see here it says "Show logs for deploy...":
https://app.netlify.com/sites/hydrogen-advanced-caching/logs/
edge-functions?scope=deployid:6705473738103f2856071dbd.

This doesn't work with `?scope=deploy:`

This is a bit of a footgun since the Functions log URL takes `deploy:` but the Edge Functions log
URL takes `deployid:`.
@serhalp serhalp requested a review from a team as a code owner October 17, 2024 14:34
@@ -536,7 +536,7 @@ const runDeploy = async ({

if (!deployToProduction) {
functionLogsUrl += `?scope=deploy:${deployId}`
edgeFunctionLogsUrl += `?scope=deploy:${deployId}`
edgeFunctionLogsUrl += `?scope=deployid:${deployId}`
Copy link
Contributor

@mrstork mrstork Oct 17, 2024

Choose a reason for hiding this comment

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

Maybe we do a follow-up PR to make these two match? Personally I like the deploy naming a bit more.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The downside is we'd effectively have to support both keys forever. Well, maybe not forever, but we'd have to do a two-phase change with several months in between.

@serhalp serhalp merged commit f833f2d into main Oct 17, 2024
47 checks passed
@serhalp serhalp deleted the fix/edge-functions-log-url-scope branch October 17, 2024 18:11
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