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

feat: set_id method for the node #109

Open
wants to merge 5 commits into
base: staging
Choose a base branch
from
Open

feat: set_id method for the node #109

wants to merge 5 commits into from

Conversation

arifBurakDemiray
Copy link
Member

No description provided.

@turtledreams
Copy link
Contributor

@AliRKat you gotta lint this

Copy link
Member

@AliRKat AliRKat left a 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

@arifBurakDemiray
Copy link
Member Author

@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.

Copy link
Member

@AliRKat AliRKat left a 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}]`);
Copy link
Contributor

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

Copy link
Member Author

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

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.

3 participants