Skip to content

Remove --location from apphosting:backends:get and return the first backend if multiple are found. - #8260

Merged
annajowang merged 1 commit into
nextfrom
builds-get
Mar 3, 2025
Merged

annajowang merged 1 commit into
nextfrom
builds-get

Conversation

@annajowang

Copy link
Copy Markdown
Contributor

Description

Remove --location from apphosting:backends:get and return the first backend in the list if multiple are found. We will also warn the user and tell them to delete the duplicate backends.

Scenarios Tested

firebase apphosting:backends:get friendlybugs-codelab where multiple backends named friendlybugs-codelab exist
firebase apphosting:backends:get friendlybugs-codelab-chicken where the backend does not exit
firebase apphosting:backends:get chickenbugs where only one backend with this name exists.
firebase apphosting:backends:get chickenbugs --location europ-west4 returns "unknown option '--location'"

@annajowang
annajowang requested a review from taeold February 26, 2025 15:43
@annajowang annajowang linked an issue Feb 26, 2025 that may be closed by this pull request
@annajowang
annajowang marked this pull request as ready for review February 26, 2025 15:43
@annajowang
annajowang changed the base branch from master to next February 26, 2025 15:45
@annajowang
annajowang enabled auto-merge (squash) February 26, 2025 15:45
@annajowang
annajowang merged commit a5c7a17 into next Mar 3, 2025
taeold added a commit that referenced this pull request Mar 24, 2025
* Update "location" => "primary region" in the backend display table. (#8205)

* Remove --location from apphosting:backend:list. (#8272)

* Remove --location from apphosting:rollouts:create and error when more than one backend is found. (#8271)

* Remove --location from apphosting:backends:get and return the first backend if multiple are found. (#8260)

* Remove `--location` from apphosting:backends:delete (#8262)

* Remove --location from apphosting:backends:create and prompt for primary region. (#8264)

* Enable FDC connector evolution and insecure operations linter. (#8281)

* Enable FDC connector evolution and insecure operations linter.

* Enable in VSCode.

* Actually get VSCode working.

* Replace pkg with yao-pkg/pkg (#8328)

Co-authored-by: aalej <[email protected]>

* List regions of duplicate backend in warning/error message (#8285)

* Update dataconnect.yaml template to v1. (#8346)

* Remove support for node 18 (#8334)

---------

Co-authored-by: annajowang <[email protected]>
Co-authored-by: Joe Hanley <[email protected]>
Co-authored-by: Rosalyn Tan <[email protected]>
Co-authored-by: aalej <[email protected]>
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.

Remove --location from apphosting commands

2 participants