Project: usergrid
Issue USERGRID-396: Create UniqueIndexCleanup tool that works with 2.0
Current instance of tools don't work correctly with 2.0. This should have a RESTful endpoint that is trigged with a PUT. We should have something like this endpoint. Check all unique values across the entire system => PUT /system/database/unqiuecheck Check all unique values across a single applications => PUT /system/database/uniquecheck/[appid] Check all unique values in a single collection => PUT /system/database/uniquecheck/[appid]/[collectionname] Check a specific unique value for a collection. PUT=> system/database/uniquecheck/[appid]/[collectionname]/[unique value] The unique check will need to audit the unique index, and ensure that the unique value exists for the entity specified. If the entity does not exist, they should be removed. I think we should implement specific property cleanup first, then implement the other operations as an input of Observables
Story points: 3