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
feat: make organization ID generally available [HEAD-855] #4887
Conversation
da05274
to
1f7d67c
Compare
1f7d67c
to
9290bc3
Compare
24615a2
to
c510302
Compare
var p WrapperProxy | ||
p.DebugLogger = debugLogger | ||
p.cliVersion = cliVersion | ||
p.addHeaderFunc = func(request *http.Request) error { return nil } | ||
|
||
cacheDirectory := config.GetString(configuration.CACHE_PATH) |
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.
praise: nice to include this here
func NewCLIv2(cacheDirectory string, debugLogger *log.Logger) (*CLI, error) { | ||
func NewCLIv2(config configuration.Configuration, debugLogger *log.Logger) (*CLI, error) { | ||
|
||
cacheDirectory := config.GetString(configuration.CACHE_PATH) |
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.
question: should we ensure that the directory is writeable?
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.
Good idea, I think this should be done more centrally. In general the default cache path is checked for being writeable.
What does this PR do?
In the Legacy CLI, introduce an additional config value that will always hold the orgId provided by the Extensible CLI.
Where should the reviewer start?
How should this be manually tested?
Any background context you want to provide?
What are the relevant tickets?
Screenshots
Additional questions