-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Update message when users try to update from 1st to 2nd Gen function #7611
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
Conversation
…using the same function name. CLI has always block the transition 1st Gen to 2nd Gen in the CLI - change here simply update the product name and point users to our public doc that documents changes necessary to transition to 2nd gen function. Aside: Cloud Run functions doesn't allow for 1st and 2nd gen functions to share the same name.
| have, | ||
| )}] Upgrading from GCFv1 to GCFv2 is not yet supported. Please delete your old function or wait for this feature to be ready.`, | ||
| `[${getFunctionLabel(have)}] Upgrading from 1st Gen to 2nd Gen is not yet supported. ` + | ||
| "Please review https://firebase.google.com/docs/functions/2nd-gen-upgrade before migrating to 2nd Gen.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I always feel slightly rude making this comment, but our developer style guide advises against "please." I'd suggest the simple and direct "See ."
| `[${getFunctionLabel( | ||
| have, | ||
| )}] Upgrading from GCFv1 to GCFv2 is not yet supported. Please delete your old function or wait for this feature to be ready.`, | ||
| `[${getFunctionLabel(have)}] Upgrading from 1st Gen to 2nd Gen is not yet supported. ` + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When do we actually display this? On deployment of a scheduled function I guess?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On firebase deploy when we detect that there exists 1st Gen function whose name is same as a 2nd Gen function you have in your source.
milyes
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…7611) * Update message when users try to update from 1st to 2nd Gen function using the same function name. CLI has always block the transition 1st Gen to 2nd Gen in the CLI - change here simply update the product name and point users to our public doc that documents changes necessary to transition to 2nd gen function. Aside: Cloud Run functions doesn't allow for 1st and 2nd gen functions to share the same name. * messaging nit. * Say 'see' instead of 'please'. --------- Co-authored-by: joehan <joehanley@google.com>
CLI has always block the transition 1st Gen to 2nd Gen in the CLI - change here simply update the product name and point users to our public doc that documents changes necessary to transition to 2nd gen function.
Aside: Cloud Run functions doesn't allow for 1st and 2nd gen functions to share the same name.