{"action":"created","issue":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/issues/289","labels_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/issues/289/labels{/name}","comments_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/issues/289/comments","events_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/issues/289/events","html_url":"https://github.com/spring-cloud/spring-cloud-config/pull/289","id":119240793,"number":289,"title":"MongoDB based EnvironmentRepository implementation.","user":{"login":"venilnoronha","id":1722758,"avatar_url":"https://avatars.githubusercontent.com/u/1722758?v=3","gravatar_id":"","url":"https://api.github.com/users/venilnoronha","html_url":"https://github.com/venilnoronha","followers_url":"https://api.github.com/users/venilnoronha/followers","following_url":"https://api.github.com/users/venilnoronha/following{/other_user}","gists_url":"https://api.github.com/users/venilnoronha/gists{/gist_id}","starred_url":"https://api.github.com/users/venilnoronha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/venilnoronha/subscriptions","organizations_url":"https://api.github.com/users/venilnoronha/orgs","repos_url":"https://api.github.com/users/venilnoronha/repos","events_url":"https://api.github.com/users/venilnoronha/events{/privacy}","received_events_url":"https://api.github.com/users/venilnoronha/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-11-27T19:53:31Z","updated_at":"2015-11-30T13:16:43Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/pulls/289","html_url":"https://github.com/spring-cloud/spring-cloud-config/pull/289","diff_url":"https://github.com/spring-cloud/spring-cloud-config/pull/289.diff","patch_url":"https://github.com/spring-cloud/spring-cloud-config/pull/289.patch"},"body":"Hi,\r\n\r\nI've implemented a basic MongoDB based EnvironmentRepository (Issue #203). I've also added a simple test. \r\n\r\n### Configuration Properties\r\nspring.cloud.config.server.mongodb.host - _The mongodb host (optional) (default 127.0.0.1)_\r\nspring.cloud.config.server.mongodb.port - _The mongodb port (optional) (default 27017)_\r\nspring.cloud.config.server.mongodb.database - _The mongodb database_\r\nspring.cloud.config.server.mongodb.username - _The mongodb username (optional)_\r\nspring.cloud.config.server.mongodb.password - _The mongodb password (optional)_\r\n\r\n### Enabling MongoEnvironmentRepository\r\nThe _spring.profiles.active_ must be set to _'mongodb'_ and at least the _spring.cloud.config.server.mongodb.database_ property must be configured to enable this repository.\r\n\r\n\r\nDue to some issues I had to close my previous pull requests. Apologies.\r\n\r\nPlease review and pull.\r\n\r\nThanks,\r\nVenil"},"comment":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/issues/comments/160624364","html_url":"https://github.com/spring-cloud/spring-cloud-config/pull/289#issuecomment-160624364","issue_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/issues/289","id":160624364,"user":{"login":"dsyer","id":124075,"avatar_url":"https://avatars.githubusercontent.com/u/124075?v=3","gravatar_id":"","url":"https://api.github.com/users/dsyer","html_url":"https://github.com/dsyer","followers_url":"https://api.github.com/users/dsyer/followers","following_url":"https://api.github.com/users/dsyer/following{/other_user}","gists_url":"https://api.github.com/users/dsyer/gists{/gist_id}","starred_url":"https://api.github.com/users/dsyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsyer/subscriptions","organizations_url":"https://api.github.com/users/dsyer/orgs","repos_url":"https://api.github.com/users/dsyer/repos","events_url":"https://api.github.com/users/dsyer/events{/privacy}","received_events_url":"https://api.github.com/users/dsyer/received_events","type":"User","site_admin":false},"created_at":"2015-11-30T13:16:43Z","updated_at":"2015-11-30T13:16:43Z","body":"I don't think it's a common enough use case that we'd want to support it out of the box with configuration properties. If you can just use the default autowired Mongo client that would help I think. Also, did you fill in the contributor's agreement (link in README)?"}}