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

Adding initial support for project deploys #454

Merged
merged 12 commits into from
Apr 27, 2021

Conversation

miketalley
Copy link
Contributor

@miketalley miketalley commented Mar 16, 2021

Description and Context

https://git.hubteam.com/HubSpot/hubspot-cli-issues/issues/285

This PR adds the command hs project deploy <projectFolderPath> and adds a --staging flag to the hs fetch command that will add the param environmentId=2 to the request (default is 1).

Note

  • Right now if you deploy and then fetch the --staging assets in the project folder, there will be an error output for every file that is live in the project folder. I spoke to @liamrharwood and he let me know there is a known BE issue dealing with fetching a folder as opposed to a file from the content/filemapper/v1/download/${folderPath} endpoint. Hopefully this will no longer occur when that bug is fixed, as it looks like we are passing the environmentId: 2 properly to that endpoint when fetching.

Who to Notify

@liamrharwood

@miketalley miketalley marked this pull request as ready for review March 31, 2021 17:21
@miketalley miketalley requested review from drewjenkins and brandenrodgers and removed request for drewjenkins and brandenrodgers April 20, 2021 17:46
@miketalley miketalley force-pushed the issues/285-initial-env-support branch from 32696af to 653ae48 Compare April 26, 2021 19:23
*/
function getFileMapperApiQueryFromMode(mode) {
function getFileMapperQueryValues({ mode, options = {} }) {
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

logger.error(`Deploy error: ${deployResp.error.message}`);
}

logger.success(
Copy link
Contributor

Choose a reason for hiding this comment

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

Will we show the success message here even if there is an error?

Copy link
Contributor

@brandenrodgers brandenrodgers left a comment

Choose a reason for hiding this comment

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

Just a few questions, but this lgtm 👍

@miketalley miketalley merged commit a3bcde8 into master Apr 27, 2021
@miketalley miketalley deleted the issues/285-initial-env-support branch April 27, 2021 21:48
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