-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[WIP] Don't expose the value of a model's attribute in assertions #7370
Conversation
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.
This looks great! A test fix and this should be g2g. Thanks for this PR.
👍 |
… because we want to explicitly test DEBUG vs NOT DEBUG, and assertions are stripped in prod
Thanks to @igorT for helping on discord |
set(record, 'isArchived', true); | ||
}, | ||
/Attempted to set 'isArchived' on the deleted record <person:1>/, | ||
"Assertion does not leak the 'value'" |
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.
Not sure how strict we are with dbl vs single quotes.
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.
Thank you!!
* don't expose the value of a model's attribute in production builds
* don't expose the value of a model's attribute in production builds
First attempt at fixing: #7270
Unresolved questions
Is
DEBUG
the correct flag to use?(I noticed other users have a similar question: What determines the value of DEBUG? glimmerjs/glimmer-env#3)
What commit [TAG] prefix should I use? It doesn't seem to fit into anything as per CONTRIBUTING.md instructions