-
Notifications
You must be signed in to change notification settings - Fork 33
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: set_id method for the node #109
base: staging
Are you sure you want to change the base?
Conversation
@AliRKat you gotta lint this |
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.
Cool work but this would also require adding tests, would you like me to add few at least for sanity checks? @arifBurakDemiray
@AliRKat You are best. I have also added DeviceIdType enums. Well, if you would like to add tests, I really appreciate it. 😅. However, let me try to add some, if I cannot make it, I will let you know. |
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.
Did some cosmetic updates because I am trying to make tests look in a similar structure throughout the SDK. Cool work my brother! Not seeing anything missing anymore
* @param {string} newId - new user/device ID to use. Must be a non-empty string value. Invalid values (like null, empty string or undefined) will be rejected | ||
* */ | ||
Countly.set_id = function(newId) { | ||
cc.log(cc.logLevelEnums.INFO, `set_id, Changing the device ID to: [${newId}]`); |
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.
lets add type check here also
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.
which type check? should we move it to the upper
No description provided.