-
Notifications
You must be signed in to change notification settings - Fork 23
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
REALMC-12640: Leverage app meta file when present to query admin api #292
Conversation
} | ||
|
||
if i.App == "" { | ||
var appOption string | ||
|
||
if app.RootDir != "" { | ||
i.AppMeta = app.Meta |
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.
// set AppMeta when --app flag is not provided and FindApp locates an app directory
}, | ||
}, | ||
{ | ||
description: "when inside a project directory should prompt for app when not flagged and provide client app id as a default", | ||
description: "when inside a project directory should not prompt for app when not flagged and use client app id as the option", |
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.
these two tests were falsely passing... tc.procedure
was never being invoked, "defaults" were set from app config files
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 good, we can probably also close Nathan's PR after this is merged
|
||
var findAppCalls int | ||
realmClient.FindAppFn = func(groupID, appID string) (realm.App, error) { | ||
findAppCalls++ |
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.
[q] why use an int here instead of a bool?
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.
it's actually testing that we only call it once rather than twice, so consider this like a "super bool" :)
No description provided.