Skip to content

[WIP] Don't expose the value of a model's attribute in assertions#7370

Merged
igorT merged 3 commits intowarp-drive-data:masterfrom
amk221:sanitise-error-msg
Nov 30, 2020
Merged

[WIP] Don't expose the value of a model's attribute in assertions#7370
igorT merged 3 commits intowarp-drive-data:masterfrom
amk221:sanitise-error-msg

Conversation

@amk221
Copy link
Copy Markdown
Contributor

@amk221 amk221 commented Nov 4, 2020

First attempt at fixing: #7270

Unresolved questions

Copy link
Copy Markdown
Contributor

@snewcomer snewcomer left a 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.

@snewcomer snewcomer marked this pull request as ready for review November 24, 2020 00:24
@igorT
Copy link
Copy Markdown
Contributor

igorT commented Nov 24, 2020

👍

… because we want to explicitly test DEBUG vs NOT DEBUG, and assertions are stripped in prod
@amk221
Copy link
Copy Markdown
Contributor Author

amk221 commented Nov 24, 2020

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'"
Copy link
Copy Markdown
Contributor

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.

Copy link
Copy Markdown
Contributor

@snewcomer snewcomer left a comment

Choose a reason for hiding this comment

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

Thank you!!

@igorT igorT merged commit 9b7936a into warp-drive-data:master Nov 30, 2020
@igorT igorT added the 🎯 beta PR should be backported to beta label Nov 30, 2020
igorT pushed a commit that referenced this pull request Dec 1, 2020
* don't expose the value of a model's attribute in production builds
@igorT igorT added the 🏷️ bug This PR primarily fixes a reported issue label Dec 1, 2020
igorT pushed a commit that referenced this pull request Dec 1, 2020
* don't expose the value of a model's attribute in production builds
@runspired runspired removed the 🎯 beta PR should be backported to beta label May 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🏷️ bug This PR primarily fixes a reported issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants