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

REALMC-12640: Leverage app meta file when present to query admin api #292

Merged
merged 3 commits into from
Apr 23, 2022

Conversation

makesitgo
Copy link
Contributor

No description provided.

}

if i.App == "" {
var appOption string

if app.RootDir != "" {
i.AppMeta = app.Meta
Copy link
Contributor Author

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",
Copy link
Contributor Author

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

internal/commands/pull/inputs_test.go Outdated Show resolved Hide resolved
internal/commands/push/command.go Outdated Show resolved Hide resolved
Copy link

@christineschen christineschen left a 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++

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?

Copy link
Contributor Author

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" :)

@makesitgo makesitgo merged commit 3795c07 into 10gen:master Apr 23, 2022
@makesitgo makesitgo deleted the REALMC-12640 branch April 23, 2022 00:40
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.

None yet

3 participants