-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
fix(project options): Store feedback:branding options correctly #42022
Conversation
It looks like this change was made recently in #39575 so cc @cathyteng17 and @markstory |
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.
thanks for catching this!
@@ -184,7 +184,7 @@ def format_options(attrs: defaultdict(dict)): | |||
f"filters:{FilterTypes.ERROR_MESSAGES}": "\n".join( | |||
attrs["options"].get(f"sentry:{FilterTypes.ERROR_MESSAGES}", []) | |||
), | |||
"feedback:branding": attrs.get("feedback:branding", "1") == "1", | |||
"feedback:branding": attrs["options"].get("feedback:branding", "1") == "1", |
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.
I can't comment on it, but is "sentry:reprocessing_active": bool(attrs.get("sentry:reprocessing_active", False)),
also broken?
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.
Maybe we should do
options = attrs["options"]
....
options.get(...)
Might be less error prone
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.
i think you're right (on both counts)
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Toggling off the user feedback branding option wasn't actually doing anything - when the user refreshed the screen it was back to "on". This PR fixes that by grabbing the option correctly - before it was always falling back to the default value and setting it to True.