Skip to content
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

Hosting deploy migration to apiv2, typescript, project-scoped #3989

Merged
merged 6 commits into from
Feb 17, 2022
Merged

Conversation

bkendall
Copy link
Contributor

@bkendall bkendall commented Jan 5, 2022

Description

I've updated the hosting deploy path to be:

  • in typescript
  • using apiv2
  • project scoped

This helpfully fixes the issue where a deploy can go to a site not on the same project, which is definitely not intended.

Fixes #2558

Scenarios Tested

  • firebase deploy --only hosting
  • firebase hosting:channel:deploy staging

@bkendall bkendall requested a review from mbleigh January 5, 2022 23:12
Copy link
Contributor

@mbleigh mbleigh left a comment

Choose a reason for hiding this comment

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

LGTM but question about ES Lint exceptions before approval.

src/deploy/hosting/prepare.ts Outdated Show resolved Hide resolved
@bkendall bkendall enabled auto-merge (squash) February 17, 2022 16:40
Copy link
Contributor

@joehan joehan left a comment

Choose a reason for hiding this comment

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

LGTM after typing options

/**
* Prepare creates versions for each Hosting site to be deployed.
*/
export async function prepare(context: any, options: any): Promise<void> {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we use the options type from options.ts so these warnings are silenced?

@bkendall bkendall merged commit 520ae1f into master Feb 17, 2022
@joehan
Copy link
Contributor

joehan commented Feb 17, 2022

Derp, I didn't realize automerge was on - feel free to make the options switch another time (or we can try to do it as a LSC)

@bkendall bkendall deleted the bk-2558 branch March 18, 2022 23:18
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.

.firebaserc and firebase cli completely ignored
3 participants