feedhenry / fh-db

Apache License 2.0
1 stars 16 forks source link

RHMAP-9849 documents w/ custom id #13

Closed aliok closed 8 years ago

aliok commented 8 years ago

Fixed the bug that was blocking the deletion and update of documents with ids that are not hex.

Before the PR, the delete and update calls were expecting hex values as the guid arguments.

Now, we try to convert the given argument to ObjectID and if it fails, we use the id as is.

fh-automatron commented 8 years ago

Pull Request Quality Guidelines

As we continue to focus on quality, here are a few things to keep in mind:

Please ping a component owner (see fh contrib) when your builds are complete, changes are deployed and you're ready for a review. Fhcap PR will be generated automatically. To deploy your changes to a cluster place comment in this PR with pattern [x][y] where x=deploy and y=clustername you wish to deploy. You can also deploy your change manually using fhcap-cli