-
Notifications
You must be signed in to change notification settings - Fork 94
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
generate function for asking id #581
Conversation
I will fix this, thanks |
The tests seem to be failing as it's waiting for a response on this new prompt:
|
I see, I will fix the test, too. Thanks |
Sorry, I hate to keep adding comments, but I'm trying all the different ways. |
Unfortunately I cannot see Mixpanel because of a bug on their end, but I've filed a ticket. I think as long as the most recent comment is addressed and it's showing the person's accountId in Mixpanel, good to go! |
|
||
const askForId = async (options) => { | ||
const shellSettings = settings.getShellSettings(); | ||
if(shouldTrackID(shellSettings)){ |
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.
this is when the answer is 'Y' or 'y'
mixpanel.alias(options.accountId, id), | ||
mixpanel.people.set_once({account_id: options.accountId}) | ||
]); | ||
}else if(shouldNOTTrackID(shellSettings)){ |
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.
this is when answer is 'N' or 'n'
}else if(shouldNOTTrackID(shellSettings)){ | ||
return; | ||
} | ||
else{ |
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.
This is first time to ask for that
Would you mind check where I point out again? Also, you can check the |
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.
awesome!
# Conflicts: # commands/generate-key.js
* generate function for asking id * asking with more commands * change message * fix issue for asking repeatly * update test * fix identity setting * change config * change back Co-authored-by: Mike Purvis <mikedotexe@gmail.com>
This reverts commit 6a71513.
generate asking question askForId to ask user whether okay to expose their account id when typing account id with command. This is for mixpanel project of identity management
change config 'default' with 'testnet'