Cleansing Mongo data
Katherine Cox-Buday
katherine.cox-buday at canonical.com
Thu Jun 23 20:09:18 UTC 2016
Hey all,
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.
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.
https://github.com/juju/juju/blob/master/mongo/utils/data_cleansing.go
-
Katherine
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju-dev/attachments/20160623/56648918/attachment.html>
More information about the Juju-dev
mailing list