Open mackelito opened 5 years ago
Ping @getsentry/team-webplatform for triage
This is actually a django issue. The problem is that name, email, and comments are all baked into the modal rather than being context variables one can set. See https://github.com/getsentry/sentry/blob/86fed44b9edffcd4a6f2398368ba4e4a0112e05e/src/sentry/web/frontend/error_page_embed.py#L49-L58.
It's also the backend that actually puts it all together and passes it off to the front end, see
and https://github.com/getsentry/sentry/blob/86fed44b9edffcd4a6f2398368ba4e4a0112e05e/src/sentry/web/frontend/error_page_embed.py#L193-L227. So I don't think there's much we can do on the SDK side.
(In case this is useful to whoever ends up handling this, there's actually already a JIRA ticket (FEEDBACK-284) about it, which I made a while back while doing prod support.)
Try to pass them namespaced with user
user: {
email: " ",
name: " "
},
This worked for me, just add an onLoad handle and replace the placeholder value
Sentry.showReportDialog({
[...]
onLoad: () => {
const elem = document.querySelector(".sentry-error-embed");
elem.querySelector("input[name='name']").attributes["placeholder"].value = 'ciao';
elem.querySelector("input[name='email']").attributes["placeholder"].value = 'ciao';
elem.querySelector("textarea[name='comments']").attributes["placeholder"].value = 'ciao';
}
});
Package + Version
@sentry/browser
@sentry/node
raven-js
raven-node
(raven for node)Version:
Description
Not possible to set all values
`