Skip to content

Conversation

@taeold
Copy link
Contributor

@taeold taeold commented Aug 30, 2024

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.

taeold added 2 commits August 30, 2024 11:38
…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.
@taeold taeold requested review from egilmorez and joehan August 30, 2024 18:41
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.",
Copy link
Contributor

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. ` +
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link

@milyes milyes left a comment

Choose a reason for hiding this comment

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

@taeold taeold requested a review from egilmorez September 3, 2024 23:37
@joehan joehan enabled auto-merge (squash) September 11, 2024 21:55
@joehan joehan merged commit c6defcb into master Sep 11, 2024
tammam-g pushed a commit that referenced this pull request Sep 13, 2024
…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>
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.

4 participants