StanfordLegion / prof-viewer

Legion Prof Viewer
Apache License 2.0
0 stars 5 forks source link

StripDataSource #62

Open elliottslaughter opened 1 month ago

elliottslaughter commented 1 month ago

This PR demonstrates one possible way to strip proprietary information out of profiles. It provides an adapter for the DataSource interface that takes another DataSource and then filters all the resulting ItemMetas to redact all the string contents of those profiles. At the moment it's a pretty heavy hammer so it just strips out everything.

elliottslaughter commented 1 month ago

If you want something that is not quite a drastic hammer (e.g., being more specific about what gets stripped instead of taking out essentially every human-readable string), then it will probably need to be implemented at the StateDataSource level instead of as an adapter on the DataSource. But what's in this PR is definitely the fastest way to get this done.