-
Notifications
You must be signed in to change notification settings - Fork 64
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
Feature: Add support for default account override #1349
base: main
Are you sure you want to change the base?
Conversation
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.
Looks like there's a merge conflict, but this lgtm 👌
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.
LGTM! I have some questions about the doctor changes being made, but that doesn't need to hold up this PR and we can always fast follow changes if we decide to make them.
if (this.diagnosticInfo?.defaultAccountOverrideFile) { | ||
this.diagnosis?.addDefaultAccountOverrideFileSection({ | ||
type: 'warning', | ||
message: i18n(`${localI18nKey}.overrideActive`, { | ||
defaultAccountOverrideFile: | ||
this.diagnosticInfo.defaultAccountOverrideFile, | ||
}), | ||
}); | ||
this.diagnosis?.addDefaultAccountOverrideFileSection({ | ||
type: 'warning', | ||
message: i18n(`${localI18nKey}.overrideAccountId`, { | ||
overrideAccountId: getCWDAccountOverride(), | ||
}), | ||
}); | ||
} | ||
} |
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.
Do we want to do any checks on the validity of the account? Should these be warnings by default?
Description and Context
Relies on HubSpot/hubspot-local-dev-lib#228
In this PR, I'm implementing support for default account overrides with the new centralized configuration file.
Now, customers can place a
.hs-account
file in any directory where they would like the default account overridden. The.hs-account
file will contain a single numerical entry:1234567
, or the account ID. Any changes made in the directory and its subdirectories will apply in the account stipulated in the.hs-account
file. This will work very similarly to our nest configs currently do.The advantages are:
.hs-account
file, so that customers need never have to manually interact with the config.TODO
hs accounts create-override
commandWho to Notify
@brandenrodgers @camden11 @joe-yeager