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: New setter for scope #1934

Merged
merged 2 commits into from
Feb 28, 2019
Merged

feat: New setter for scope #1934

merged 2 commits into from
Feb 28, 2019

Conversation

HazAT
Copy link
Member

@HazAT HazAT commented Feb 28, 2019

No description provided.

@HazAT HazAT self-assigned this Feb 28, 2019
@getsentry-bot
Copy link
Contributor

getsentry-bot commented Feb 28, 2019

Messages
📖 ✅ TSLint passed
📖 @sentry/browser gzip'ed minified size: 19.5752 kB

Generated by 🚫 dangerJS against 4e62818

* @param tags Tags context object to merge into current context.
*/
setTag(key: string, value: string): Scope;
setTags(tags?: { [key: string]: string }): this;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's partially true. If you pass setTags({}) it will send old tags, as nothing will get merged. There should also be mention about unsetting.


/**
* Updates user context information for future events.
* @param user User context object to be set in the current context.
* @param user User context object to be set in the current context. If null or undefined user will be unset.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you pass '' or 0 it will unset as well, so we should either explicitly check for no arguments at all or say If passed any falsy value, user will be unset.

@kamilogorek kamilogorek merged commit 3c10d9c into major/5 Feb 28, 2019
@kamilogorek kamilogorek deleted the feat/extend-scope branch February 28, 2019 11:51
kamilogorek pushed a commit that referenced this pull request Mar 1, 2019
* feat: New setter for scope
* fix: Comments
kamilogorek pushed a commit that referenced this pull request Mar 1, 2019
* feat: New setter for scope
* fix: Comments
kamilogorek pushed a commit that referenced this pull request Mar 1, 2019
* feat: New setter for scope
* fix: Comments
HazAT added a commit that referenced this pull request Mar 19, 2019
* feat: New setter for scope
* fix: Comments
HazAT added a commit that referenced this pull request Mar 19, 2019
* feat: New setter for scope
* fix: Comments
HazAT added a commit that referenced this pull request Mar 20, 2019
* feat: New setter for scope
* fix: Comments
HazAT added a commit that referenced this pull request Mar 20, 2019
* feat: New setter for scope
* fix: Comments
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