Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add breadcrumbMessageFromAction option to handle a message of breadcrumb#98

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
captbaritone merged 2 commits intocaptbaritone:masterfromxnimorz:master
Nov 7, 2018

Conversation

@xnimorz
Copy link
Contributor

Hello@captbaritone !

Sometimes it's necessary to use the different message of action breadcrumb instead ofaction.type.
In my project I implemented it, usingRaven.dataCallback option. But I have to filter if the breadcrumb is action. It would be great if raven-for-redux have this feature. So I addedbreadcrumbMessageFromAction that allows defining a function to change a message of action. It could be very useful if we want to handle in Sentry custom actions.

@codecov-io
Copy link

codecov-io commentedNov 7, 2018
edited
Loading

Codecov Report

Merging#98 intomaster willnot change coverage.
The diff coverage is100%.

Impacted file tree graph

@@          Coverage Diff          @@##           master    #98   +/-   ##=====================================  Coverage     100%   100%           =====================================  Files           1      1             Lines          26     28    +2       Branches       10     11    +1     =====================================+ Hits           26     28    +2
Impacted FilesCoverage Δ
index.js100% <100%> (ø)⬆️

Continue to review full report at Codecov.

Legend -Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing data
Powered byCodecov. Last update0ab4e52...7ee6daf. Read thecomment docs.

@captbaritone
Copy link
Owner

Great idea! A few wording note, but otherwise looks good. If you can make those few changes, I can cut a release later today.

README.md Outdated

Default:`action => action.type`

`breadcrumbMessageFromAction` allows you to specify a transform function which is passed the`action` object and returns a`string` that describes a message of breadcrumb. Which will be logged to Sentry.

Choose a reason for hiding this comment

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

How about: “That will be used as themessage of the breadcrumb.”

xnimorz reacted with thumbs up emoji
README.md Outdated

`breadcrumbMessageFromAction` allows you to specify a transform function which is passed the`action` object and returns a`string` that describes a message of breadcrumb. Which will be logged to Sentry.

By default,`breadcrumbMessageFromAction` will log`action.type` as a`message` of breadcrumb, but you can specify another value.

Choose a reason for hiding this comment

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

How about just “By defaultbreadcrumbMessageFromAction returnsaction.type.

xnimorz reacted with thumbs up emoji
@xnimorz
Copy link
ContributorAuthor

@captbaritone thank you for the review!
I added fixes in the separated commit7ee6daf

@captbaritonecaptbaritone merged commita3f138b intocaptbaritone:masterNov 7, 2018
@captbaritone
Copy link
Owner

Thanks! I’ll reply here when I cut the release.

@captbaritone
Copy link
Owner

Just cut 1.4.0fbe0f54 which includes this feature. Thanks again for the pull request.

xnimorz reacted with thumbs up emoji

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@captbaritonecaptbaritonecaptbaritone approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@xnimorz@codecov-io@captbaritone

[8]ページ先頭

©2009-2025 Movatter.jp