<div dir="ltr">Hey all,<div><br></div><div>William gave me a good review and it came up that I wasn't cleansing some of the data being placed in Mongo. I wasn't aware this had to be done, and after talking to a few other folks it became apparent that maybe not many people know we should be doing this.</div><div><br></div><div>At any rate, William also pointed me to some existing code which did this. I've pulled it out into the mongo/utils package for general consumption. The comments do a pretty good job of elucidating why this is necessary.</div><div><br></div><div><a href="https://github.com/juju/juju/blob/master/mongo/utils/data_cleansing.go">https://github.com/juju/juju/blob/master/mongo/utils/data_cleansing.go</a><br></div><div><br></div><div>-</div><div>Katherine</div></div>