{"action":"created","comment":{"url":"https://api.github.com/repos/geoserver/geoserver/pulls/comments/110524284","pull_request_review_id":31707087,"id":110524284,"diff_hunk":"@@ -0,0 +1,436 @@\n+.. _app-schema.tutorial:\n+\n+Mongo Tutorial\n+==============\n+\n+This tutorial demonstrates how to use app-schema plugin with a MongoDB data store. This tutorial will focus on the MongoDB data store specificities is highly recommended to read the app-schema documentation before.\n+ \n+\n+Use Case\n+--------\n+\n+The use case for this tutorial will be to serve through app-schema the information about some meteorological stations stored in a MongoDB database. Note that this use case is completely fictional and only used to demonstrate the MongoDB and app-schema integration.\n+\n+First of all let's insert some test data in a MongoDB data store:\n+\n+.. code-block:: json \n+\n+    db.stations.insert({\n+        \"id\": \"1\",\n+        \"name\": \"station 1\"\n+        \"contact\": {\n+            \"mail\": \"station1@mail.com\"\n+        },\n+        \"geometry\": {\n+            \"coordinates\": [\n+                50,\n+                60\n+            ],\n+            \"type\": \"Point\"\n+        },\n+        \"measurements\": [\n+            {\n+                \"name\": \"temp\",\n+                \"unit\": \"c\",\n+                \"values\": [\n+                    {\n+                        \"time\": 1482146800,\n+                        \"value\": 20\n+                    }\n+                ]\n+            },\n+            {\n+                \"name\": \"wind\",\n+                \"unit\": \"km/h\",\n+                \"values\": [\n+                    {\n+                        \"time\": 1482146833,\n+                        \"value\": 155\n+                    }\n+                ]\n+            }\n+        ]\n+    })\n+\n+    db.stations.insert({\n+        \"id\": \"2\",\n+        \"name\": \"station 2\"","path":"doc/en/user/source/data/app-schema/mongo-tutorial.rst","position":57,"original_position":57,"commit_id":"f9f36e58b7054c78998d8f7ff7684fb7fcc8f529","original_commit_id":"f9f36e58b7054c78998d8f7ff7684fb7fcc8f529","user":{"login":"nmco","id":1590542,"avatar_url":"https://avatars2.githubusercontent.com/u/1590542?v=3","gravatar_id":"","url":"https://api.github.com/users/nmco","html_url":"https://github.com/nmco","followers_url":"https://api.github.com/users/nmco/followers","following_url":"https://api.github.com/users/nmco/following{/other_user}","gists_url":"https://api.github.com/users/nmco/gists{/gist_id}","starred_url":"https://api.github.com/users/nmco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nmco/subscriptions","organizations_url":"https://api.github.com/users/nmco/orgs","repos_url":"https://api.github.com/users/nmco/repos","events_url":"https://api.github.com/users/nmco/events{/privacy}","received_events_url":"https://api.github.com/users/nmco/received_events","type":"User","site_admin":false},"body":"Fixed.","created_at":"2017-04-08T18:24:42Z","updated_at":"2017-04-08T18:24:42Z","html_url":"https://github.com/geoserver/geoserver/pull/2205#discussion_r110524284","pull_request_url":"https://api.github.com/repos/geoserver/geoserver/pulls/2205","_links":{"self":{"href":"https://api.github.com/repos/geoserver/geoserver/pulls/comments/110524284"},"html":{"href":"https://github.com/geoserver/geoserver/pull/2205#discussion_r110524284"},"pull_request":{"href":"https://api.github.com/repos/geoserver/geoserver/pulls/2205"}}},"pull_request":{"url":"https://api.github.com/repos/geoserver/geoserver/pulls/2205","id":114475201,"html_url":"https://github.com/geoserver/geoserver/pull/2205","diff_url":"https://github.com/geoserver/geoserver/pull/2205.diff","patch_url":"https://github.com/geoserver/geoserver/pull/2205.patch","issue_url":"https://api.github.com/repos/geoserver/geoserver/issues/2205","number":2205,"state":"open","locked":false,"title":"[GEOS-8069] Add documentation and tests about using MongoDB as a data store for app-schema","user":{"login":"nmco","id":1590542,"avatar_url":"https://avatars2.githubusercontent.com/u/1590542?v=3","gravatar_id":"","url":"https://api.github.com/users/nmco","html_url":"https://github.com/nmco","followers_url":"https://api.github.com/users/nmco/followers","following_url":"https://api.github.com/users/nmco/following{/other_user}","gists_url":"https://api.github.com/users/nmco/gists{/gist_id}","starred_url":"https://api.github.com/users/nmco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nmco/subscriptions","organizations_url":"https://api.github.com/users/nmco/orgs","repos_url":"https://api.github.com/users/nmco/repos","events_url":"https://api.github.com/users/nmco/events{/privacy}","received_events_url":"https://api.github.com/users/nmco/received_events","type":"User","site_admin":false},"body":"This pull request adds documentation bout how to use MongoDB with App-Schema and adds online tests (integration test).\r\n\r\nDepends on pull request: https://github.com/geotools/geotools/pull/1546\r\n\r\nAssociated issue: https://osgeo-org.atlassian.net/browse/GEOS-8069","created_at":"2017-04-05T21:19:32Z","updated_at":"2017-04-08T18:24:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"47bfb4352a3776f6a7d761a304426b6dfbb6afc2","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/geoserver/geoserver/pulls/2205/commits","review_comments_url":"https://api.github.com/repos/geoserver/geoserver/pulls/2205/comments","review_comment_url":"https://api.github.com/repos/geoserver/geoserver/pulls/comments{/number}","comments_url":"https://api.github.com/repos/geoserver/geoserver/issues/2205/comments","statuses_url":"https://api.github.com/repos/geoserver/geoserver/statuses/f9f36e58b7054c78998d8f7ff7684fb7fcc8f529","head":{"label":"nmco:mongo-doc-and-tests","ref":"mongo-doc-and-tests","sha":"f9f36e58b7054c78998d8f7ff7684fb7fcc8f529","user":{"login":"nmco","id":1590542,"avatar_url":"https://avatars2.githubusercontent.com/u/1590542?v=3","gravatar_id":"","url":"https://api.github.com/users/nmco","html_url":"https://github.com/nmco","followers_url":"https://api.github.com/users/nmco/followers","following_url":"https://api.github.com/users/nmco/following{/other_user}","gists_url":"https://api.github.com/users/nmco/gists{/gist_id}","starred_url":"https://api.github.com/users/nmco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nmco/subscriptions","organizations_url":"https://api.github.com/users/nmco/orgs","repos_url":"https://api.github.com/users/nmco/repos","events_url":"https://api.github.com/users/nmco/events{/privacy}","received_events_url":"https://api.github.com/users/nmco/received_events","type":"User","site_admin":false},"repo":{"id":7538739,"name":"geoserver","full_name":"nmco/geoserver","owner":{"login":"nmco","id":1590542,"avatar_url":"https://avatars2.githubusercontent.com/u/1590542?v=3","gravatar_id":"","url":"https://api.github.com/users/nmco","html_url":"https://github.com/nmco","followers_url":"https://api.github.com/users/nmco/followers","following_url":"https://api.github.com/users/nmco/following{/other_user}","gists_url":"https://api.github.com/users/nmco/gists{/gist_id}","starred_url":"https://api.github.com/users/nmco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nmco/subscriptions","organizations_url":"https://api.github.com/users/nmco/orgs","repos_url":"https://api.github.com/users/nmco/repos","events_url":"https://api.github.com/users/nmco/events{/privacy}","received_events_url":"https://api.github.com/users/nmco/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nmco/geoserver","description":"Official GeoServer repository","fork":true,"url":"https://api.github.com/repos/nmco/geoserver","forks_url":"https://api.github.com/repos/nmco/geoserver/forks","keys_url":"https://api.github.com/repos/nmco/geoserver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nmco/geoserver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nmco/geoserver/teams","hooks_url":"https://api.github.com/repos/nmco/geoserver/hooks","issue_events_url":"https://api.github.com/repos/nmco/geoserver/issues/events{/number}","events_url":"https://api.github.com/repos/nmco/geoserver/events","assignees_url":"https://api.github.com/repos/nmco/geoserver/assignees{/user}","branches_url":"https://api.github.com/repos/nmco/geoserver/branches{/branch}","tags_url":"https://api.github.com/repos/nmco/geoserver/tags","blobs_url":"https://api.github.com/repos/nmco/geoserver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nmco/geoserver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nmco/geoserver/git/refs{/sha}","trees_url":"https://api.github.com/repos/nmco/geoserver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nmco/geoserver/statuses/{sha}","languages_url":"https://api.github.com/repos/nmco/geoserver/languages","stargazers_url":"https://api.github.com/repos/nmco/geoserver/stargazers","contributors_url":"https://api.github.com/repos/nmco/geoserver/contributors","subscribers_url":"https://api.github.com/repos/nmco/geoserver/subscribers","subscription_url":"https://api.github.com/repos/nmco/geoserver/subscription","commits_url":"https://api.github.com/repos/nmco/geoserver/commits{/sha}","git_commits_url":"https://api.github.com/repos/nmco/geoserver/git/commits{/sha}","comments_url":"https://api.github.com/repos/nmco/geoserver/comments{/number}","issue_comment_url":"https://api.github.com/repos/nmco/geoserver/issues/comments{/number}","contents_url":"https://api.github.com/repos/nmco/geoserver/contents/{+path}","compare_url":"https://api.github.com/repos/nmco/geoserver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nmco/geoserver/merges","archive_url":"https://api.github.com/repos/nmco/geoserver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nmco/geoserver/downloads","issues_url":"https://api.github.com/repos/nmco/geoserver/issues{/number}","pulls_url":"https://api.github.com/repos/nmco/geoserver/pulls{/number}","milestones_url":"https://api.github.com/repos/nmco/geoserver/milestones{/number}","notifications_url":"https://api.github.com/repos/nmco/geoserver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nmco/geoserver/labels{/name}","releases_url":"https://api.github.com/repos/nmco/geoserver/releases{/id}","deployments_url":"https://api.github.com/repos/nmco/geoserver/deployments","created_at":"2013-01-10T10:13:13Z","updated_at":"2015-10-02T17:05:52Z","pushed_at":"2017-04-08T16:53:29Z","git_url":"git://github.com/nmco/geoserver.git","ssh_url":"git@github.com:nmco/geoserver.git","clone_url":"https://github.com/nmco/geoserver.git","svn_url":"https://github.com/nmco/geoserver","homepage":"http://geoserver.org","size":161553,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":2,"default_branch":"master"}},"base":{"label":"geoserver:master","ref":"master","sha":"9052536aeb4adaa62c4af3cebece40b9ea47d154","user":{"login":"geoserver","id":186522,"avatar_url":"https://avatars1.githubusercontent.com/u/186522?v=3","gravatar_id":"","url":"https://api.github.com/users/geoserver","html_url":"https://github.com/geoserver","followers_url":"https://api.github.com/users/geoserver/followers","following_url":"https://api.github.com/users/geoserver/following{/other_user}","gists_url":"https://api.github.com/users/geoserver/gists{/gist_id}","starred_url":"https://api.github.com/users/geoserver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geoserver/subscriptions","organizations_url":"https://api.github.com/users/geoserver/orgs","repos_url":"https://api.github.com/users/geoserver/repos","events_url":"https://api.github.com/users/geoserver/events{/privacy}","received_events_url":"https://api.github.com/users/geoserver/received_events","type":"Organization","site_admin":false},"repo":{"id":2751199,"name":"geoserver","full_name":"geoserver/geoserver","owner":{"login":"geoserver","id":186522,"avatar_url":"https://avatars1.githubusercontent.com/u/186522?v=3","gravatar_id":"","url":"https://api.github.com/users/geoserver","html_url":"https://github.com/geoserver","followers_url":"https://api.github.com/users/geoserver/followers","following_url":"https://api.github.com/users/geoserver/following{/other_user}","gists_url":"https://api.github.com/users/geoserver/gists{/gist_id}","starred_url":"https://api.github.com/users/geoserver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geoserver/subscriptions","organizations_url":"https://api.github.com/users/geoserver/orgs","repos_url":"https://api.github.com/users/geoserver/repos","events_url":"https://api.github.com/users/geoserver/events{/privacy}","received_events_url":"https://api.github.com/users/geoserver/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/geoserver/geoserver","description":"Official GeoServer repository","fork":false,"url":"https://api.github.com/repos/geoserver/geoserver","forks_url":"https://api.github.com/repos/geoserver/geoserver/forks","keys_url":"https://api.github.com/repos/geoserver/geoserver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/geoserver/geoserver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/geoserver/geoserver/teams","hooks_url":"https://api.github.com/repos/geoserver/geoserver/hooks","issue_events_url":"https://api.github.com/repos/geoserver/geoserver/issues/events{/number}","events_url":"https://api.github.com/repos/geoserver/geoserver/events","assignees_url":"https://api.github.com/repos/geoserver/geoserver/assignees{/user}","branches_url":"https://api.github.com/repos/geoserver/geoserver/branches{/branch}","tags_url":"https://api.github.com/repos/geoserver/geoserver/tags","blobs_url":"https://api.github.com/repos/geoserver/geoserver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/geoserver/geoserver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/geoserver/geoserver/git/refs{/sha}","trees_url":"https://api.github.com/repos/geoserver/geoserver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/geoserver/geoserver/statuses/{sha}","languages_url":"https://api.github.com/repos/geoserver/geoserver/languages","stargazers_url":"https://api.github.com/repos/geoserver/geoserver/stargazers","contributors_url":"https://api.github.com/repos/geoserver/geoserver/contributors","subscribers_url":"https://api.github.com/repos/geoserver/geoserver/subscribers","subscription_url":"https://api.github.com/repos/geoserver/geoserver/subscription","commits_url":"https://api.github.com/repos/geoserver/geoserver/commits{/sha}","git_commits_url":"https://api.github.com/repos/geoserver/geoserver/git/commits{/sha}","comments_url":"https://api.github.com/repos/geoserver/geoserver/comments{/number}","issue_comment_url":"https://api.github.com/repos/geoserver/geoserver/issues/comments{/number}","contents_url":"https://api.github.com/repos/geoserver/geoserver/contents/{+path}","compare_url":"https://api.github.com/repos/geoserver/geoserver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/geoserver/geoserver/merges","archive_url":"https://api.github.com/repos/geoserver/geoserver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/geoserver/geoserver/downloads","issues_url":"https://api.github.com/repos/geoserver/geoserver/issues{/number}","pulls_url":"https://api.github.com/repos/geoserver/geoserver/pulls{/number}","milestones_url":"https://api.github.com/repos/geoserver/geoserver/milestones{/number}","notifications_url":"https://api.github.com/repos/geoserver/geoserver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/geoserver/geoserver/labels{/name}","releases_url":"https://api.github.com/repos/geoserver/geoserver/releases{/id}","deployments_url":"https://api.github.com/repos/geoserver/geoserver/deployments","created_at":"2011-11-10T19:56:06Z","updated_at":"2017-04-08T13:33:13Z","pushed_at":"2017-04-08T16:53:31Z","git_url":"git://github.com/geoserver/geoserver.git","ssh_url":"git@github.com:geoserver/geoserver.git","clone_url":"https://github.com/geoserver/geoserver.git","svn_url":"https://github.com/geoserver/geoserver","homepage":"http://geoserver.org/","size":168736,"stargazers_count":778,"watchers_count":778,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":861,"mirror_url":null,"open_issues_count":29,"forks":861,"open_issues":29,"watchers":778,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/geoserver/geoserver/pulls/2205"},"html":{"href":"https://github.com/geoserver/geoserver/pull/2205"},"issue":{"href":"https://api.github.com/repos/geoserver/geoserver/issues/2205"},"comments":{"href":"https://api.github.com/repos/geoserver/geoserver/issues/2205/comments"},"review_comments":{"href":"https://api.github.com/repos/geoserver/geoserver/pulls/2205/comments"},"review_comment":{"href":"https://api.github.com/repos/geoserver/geoserver/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/geoserver/geoserver/pulls/2205/commits"},"statuses":{"href":"https://api.github.com/repos/geoserver/geoserver/statuses/f9f36e58b7054c78998d8f7ff7684fb7fcc8f529"}}}}
{"actor":{"display_login":"nmco"}}