{"action":"created","comment":{"url":"https://api.github.com/repos/hydroshare/hydroshare/pulls/comments/42399184","id":42399184,"diff_hunk":"@@ -0,0 +1,580 @@\n+__author__ = 'drew'\n+\n+from unittest import TestCase\n+from django.contrib.contenttypes.models import ContentType\n+from hs_core.hydroshare import utils, users, resource\n+from hs_core.models import GenericResource, Creator, Contributor, CoreMetaData, \\\n+    Coverage, Rights, Title, Language, Publisher, Identifier, \\\n+    Type, Subject, Description, Date, Format, Relation, Source\n+\n+from hs_geographic_feature_resource.models import *\n+from hs_geographic_feature_resource.receivers import *\n+from django.contrib.auth.models import Group, User\n+from hs_core import hydroshare\n+from django.core.files.uploadedfile import UploadedFile\n+from django.http import HttpRequest, QueryDict\n+\n+class TestGeoFeatureMetadata(TestCase):\n+    def setUp(self):\n+        try:\n+            #self.user = User.objects.create_user('user1', email='user1@nowhere.com')\n+            self.group, _ = Group.objects.get_or_create(name='Hydroshare Author')\n+            self.user = hydroshare.create_account(\n+                'zhiyu.li@byu.edu',\n+                username='drew',\n+                first_name='Zhiyu',\n+                last_name='Li',\n+                superuser=False,\n+                groups=[self.group]\n+            )\n+            self.allowance=0.00001\n+        except:\n+            self.tearDown()\n+            self.user = User.objects.create_user('user1', email='user1@nowhere.com')\n+\n+\n+        self.resGeoFeature = hydroshare.create_resource(\n+            resource_type='GeographicFeatureResource',\n+            owner=self.user,\n+            title='Test Geographic Feature (shapefiles)',\n+            keywords=['kw1', 'kw2']\n+        )\n+    def tearDown(self):\n+        User.objects.all().delete()\n+        Group.objects.all().delete()\n+        GenericResource.objects.all().delete()\n+        Creator.objects.all().delete()\n+        Contributor.objects.all().delete()\n+        CoreMetaData.objects.all().delete()\n+        Coverage.objects.all().delete()\n+        Rights.objects.all().delete()\n+        Title.objects.all().delete()\n+        Publisher.objects.all().delete()\n+        Description.objects.all().delete()\n+        Relation.objects.all().delete()\n+        Subject.objects.all().delete()\n+        Source.objects.all().delete()\n+        Identifier.objects.all().delete()\n+        Type.objects.all().delete()\n+        Format.objects.all().delete()\n+        Date.objects.all().delete()\n+        Language.objects.all().delete()\n+        #remove res specific model objs here\n+        #Variable.objects.all().delete()\n+        OriginalCoverage.objects.all().delete()\n+        GeometryInformation.objects.all().delete()\n+        FieldInformation.objects.all().delete()\n+        OriginalFileInfo.objects.all().delete()\n+\n+\n+    def test_geo_feature_basic_metadata(self):\n+\n+        # add another creator with all sub_elements\n+        cr_name = 'Creator A'\n+        cr_des = 'http://hydroshare.org/user/001'\n+        cr_org = \"BYU\"\n+        cr_email = 'creator.a@byu.edu'\n+        cr_address = \"Provo, UT, USA\"\n+        cr_phone = '123-456-7890'\n+        cr_homepage = 'http://home.byu.edu/'\n+        cr_res_id = 'http://research.org/001'\n+        cr_res_gate_id = 'http://research-gate.org/001'\n+        resource.create_metadata_element(self.resGeoFeature.short_id,'creator',\n+                                         name=cr_name,\n+                                         description=cr_des,\n+                                         organization=cr_org,\n+                                         email=cr_email,\n+                                         address=cr_address,\n+                                         phone=cr_phone,\n+                                         homepage=cr_homepage,\n+                                         researcherID=cr_res_id,\n+                                         researchGateID=cr_res_gate_id)\n+\n+        # # add another creator with only the name\n+        resource.create_metadata_element(self.resGeoFeature.short_id,'creator', name='Creator B')\n+\n+        #test adding a contributor with all sub_elements\n+        con_name = 'Contributor A'\n+        con_des = 'http://hydroshare.org/user/002'\n+        con_org = \"BYU\"\n+        con_email = 'contributor.a@byu.edu'\n+        con_address = \"Provo, UT, USA\"\n+        con_phone = '123-456-7890'\n+        con_homepage = 'http://usu.edu/homepage/009'\n+        con_res_id = 'http://research.org/009'\n+        con_res_gate_id = 'http://research-gate.org/009'\n+        resource.create_metadata_element(self.resGeoFeature.short_id,'contributor',\n+                                         name=con_name,\n+                                         description=con_des,\n+                                         organization=con_org,\n+                                         email=con_email,\n+                                         address=con_address,\n+                                         phone=con_phone,\n+                                         homepage=con_homepage,\n+                                         researcherID=con_res_id,\n+                                         researchGateID=con_res_gate_id)\n+\n+        # add another creator with only the name\n+        resource.create_metadata_element(self.resGeoFeature.short_id,'contributor', name='Contributor B')\n+\n+        # add a period type coverage\n+        # add a period type coverage\n+        value_dict = {'name':'Name for period coverage' , 'start':'1/1/2015', 'end':'12/31/2015'}\n+        resource.create_metadata_element(self.resGeoFeature.short_id,'coverage', type='period', value=value_dict)\n+\n+        # add a point type coverage\n+        value_dict = {'name':'Name for box coverage', 'northlimit':'1', 'eastlimit':'2', 'southlimit':'3', 'westlimit':'4'}\n+\n+        value_dict[\"projection\"]=\"WGS 84 EPSG:4326\"\n+        value_dict[\"units\"]=\"Decimal degrees\"\n+        resource.create_metadata_element(self.resGeoFeature.short_id,'coverage', type='box', value=value_dict)\n+\n+        # add date of type 'valid'\n+        resource.create_metadata_element(self.resGeoFeature.short_id,'date', type='valid', start_date='1/1/2012', end_date='12/31/2012')\n+\n+        # add a format element\n+        format = 'shp'\n+        resource.create_metadata_element(self.resGeoFeature.short_id,'format', value=format)\n+\n+\n+        # add a language element\n+        #resource.create_metadata_element(self.resGeoFeature.short_id,'language', code='eng')\n+\n+        # # add 'Publisher' element\n+        # original_file_name = 'original.txt'\n+        # original_file = open(original_file_name, 'w')\n+        # original_file.write(\"original text\")\n+        # original_file.close()\n+        #\n+        # original_file = open(original_file_name, 'r')\n+        # # add the file to the resource\n+        # hydroshare.add_resource_files(self.resGeoFeature.short_id, original_file)\n+\n+        # resource.create_metadata_element(self.resGeoFeature.short_id,'publisher', name=\"HydroShare\", url=\"http://hydroshare.org\")\n+\n+        # add a relation element of uri type\n+        resource.create_metadata_element(self.resGeoFeature.short_id,'relation', type='isPartOf',\n+                                         value='http://hydroshare.org/resource/001')\n+\n+        # add another relation element of non-uri type\n+        resource.create_metadata_element(self.resGeoFeature.short_id,'relation', type='isDataFor',\n+                                         value='This resource is for another resource')\n+\n+\n+        # add a source element of uri type\n+        resource.create_metadata_element(self.resGeoFeature.short_id,'source', derived_from='http://hydroshare.org/resource/0002')\n+\n+        # # add a rights element\n+        # resource.create_metadata_element(self.resGeoFeature.short_id,'rights', statement='This is the rights statement for this resource',\n+        #                                  url='http://rights.ord/001')\n+\n+        # add a subject element\n+        resource.create_metadata_element(self.resGeoFeature.short_id,'subject', value='sub-1')\n+\n+        # add another subject element\n+        resource.create_metadata_element(self.resGeoFeature.short_id,'subject', value='sub-2')\n+        pass\n+\n+##########################################################################################################3\n+\n+    def test_geo_feature_res_specific_metadata(self):\n+        # originalfileinfo\n+        #no originalfileinfo obj\n+        self.assertEqual (len(OriginalFileInfo.objects.all()), 0)","path":"hs_geographic_feature_resource/tests/test_geo_feature.py","position":183,"original_position":183,"commit_id":"0e0d5cddfaf572b54906c46e0c596a3ec74aed45","original_commit_id":"0e0d5cddfaf572b54906c46e0c596a3ec74aed45","user":{"login":"ironfroggy","id":34982,"avatar_url":"https://avatars.githubusercontent.com/u/34982?v=3","gravatar_id":"","url":"https://api.github.com/users/ironfroggy","html_url":"https://github.com/ironfroggy","followers_url":"https://api.github.com/users/ironfroggy/followers","following_url":"https://api.github.com/users/ironfroggy/following{/other_user}","gists_url":"https://api.github.com/users/ironfroggy/gists{/gist_id}","starred_url":"https://api.github.com/users/ironfroggy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ironfroggy/subscriptions","organizations_url":"https://api.github.com/users/ironfroggy/orgs","repos_url":"https://api.github.com/users/ironfroggy/repos","events_url":"https://api.github.com/users/ironfroggy/events{/privacy}","received_events_url":"https://api.github.com/users/ironfroggy/received_events","type":"User","site_admin":false},"body":"Use `.count()` to count the number of results","created_at":"2015-10-19T17:20:47Z","updated_at":"2015-10-19T17:20:47Z","html_url":"https://github.com/hydroshare/hydroshare/pull/678#discussion_r42399184","pull_request_url":"https://api.github.com/repos/hydroshare/hydroshare/pulls/678","_links":{"self":{"href":"https://api.github.com/repos/hydroshare/hydroshare/pulls/comments/42399184"},"html":{"href":"https://github.com/hydroshare/hydroshare/pull/678#discussion_r42399184"},"pull_request":{"href":"https://api.github.com/repos/hydroshare/hydroshare/pulls/678"}}},"pull_request":{"url":"https://api.github.com/repos/hydroshare/hydroshare/pulls/678","id":48087366,"html_url":"https://github.com/hydroshare/hydroshare/pull/678","diff_url":"https://github.com/hydroshare/hydroshare/pull/678.diff","patch_url":"https://github.com/hydroshare/hydroshare/pull/678.patch","issue_url":"https://api.github.com/repos/hydroshare/hydroshare/issues/678","number":678,"state":"open","locked":false,"title":"1.6.1 -- big-merge-503-geographic-feature-res-type-phase-1","user":{"login":"zhiyuli","id":10070599,"avatar_url":"https://avatars.githubusercontent.com/u/10070599?v=3","gravatar_id":"","url":"https://api.github.com/users/zhiyuli","html_url":"https://github.com/zhiyuli","followers_url":"https://api.github.com/users/zhiyuli/followers","following_url":"https://api.github.com/users/zhiyuli/following{/other_user}","gists_url":"https://api.github.com/users/zhiyuli/gists{/gist_id}","starred_url":"https://api.github.com/users/zhiyuli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhiyuli/subscriptions","organizations_url":"https://api.github.com/users/zhiyuli/orgs","repos_url":"https://api.github.com/users/zhiyuli/repos","events_url":"https://api.github.com/users/zhiyuli/events{/privacy}","received_events_url":"https://api.github.com/users/zhiyuli/received_events","type":"User","site_admin":false},"body":"Testing coverage report\r\n\r\n```\r\nName                                       Stmts   Miss  Cover\r\n\r\n__init__                                       0      0   100%\r\nhs_access_control/__init__                     1      0   100%\r\nhs_access_control/models                     658    188    71%\r\nhs_app_netCDF/__init__                         0      0   100%\r\nhs_app_netCDF/admin                            4      0   100%\r\nhs_app_netCDF/forms                          121     70    42%\r\nhs_app_netCDF/models                         188    135    28%\r\nhs_app_netCDF/nc_functions/__init__            0      0   100%\r\nhs_app_netCDF/receivers                      195    184     6%\r\nhs_app_netCDF/serialization                  330    166    50%\r\nhs_app_netCDF/tasks                            0      0   100%\r\nhs_app_timeseries/__init__                     0      0   100%\r\nhs_app_timeseries/admin                        4      0   100%\r\nhs_app_timeseries/forms                      109     27    75%\r\nhs_app_timeseries/models                     269    169    37%\r\nhs_app_timeseries/receivers                  310    291     6%\r\nhs_app_timeseries/tasks                        0      0   100%\r\nhs_core/__init__                               0      0   100%\r\nhs_core/admin                                  8      0   100%\r\nhs_core/autocomplete_light_registry           21     14    33%\r\nhs_core/forms                                715    484    32%\r\nhs_core/hydroshare/__init__                    5      0   100%\r\nhs_core/hydroshare/date_util                  53     34    36%\r\nhs_core/hydroshare/discovery                   8      4    50%\r\nhs_core/hydroshare/hs_bagit                  132     44    67%\r\nhs_core/hydroshare/resource                  228     88    61%\r\nhs_core/hydroshare/social                     77     61    21%\r\nhs_core/hydroshare/users                     215    159    26%\r\nhs_core/hydroshare/utils                     237     76    68%\r\nhs_core/languages_iso                          1      0   100%\r\nhs_core/management/__init__                    1      0   100%\r\nhs_core/management/commands/__init__           1      0   100%\r\nhs_core/models                              1286    308    76%\r\nhs_core/receivers                             78     71     9%\r\nhs_core/serialization                        912    680    25%\r\nhs_core/signals                                9      0   100%\r\nhs_core/tasks                                  0      0   100%\r\nhs_core/templatetags/__init__                  1      0   100%\r\nhs_core/testing                               11      0   100%\r\nhs_core/views/__init__                       442    370    16%\r\nhs_core/views/pagination                       3      0   100%\r\nhs_core/views/resource_rest_api              169    113    33%\r\nhs_core/views/serializers                     75     15    80%\r\nhs_core/views/user_rest_api                    8      0   100%\r\nhs_core/views/utils                          105     78    26%\r\nhs_geo_raster_resource/__init__                0      0   100%\r\nhs_geo_raster_resource/admin                   4      0   100%\r\nhs_geo_raster_resource/forms                 154     93    40%\r\nhs_geo_raster_resource/models                177    113    36%\r\nhs_geo_raster_resource/receivers              98     88    10%\r\nhs_geo_raster_resource/serialization         341    210    38%\r\nhs_geo_raster_resource/tasks                   0      0   100%\r\nhs_geographic_feature_resource/__init__        0      0   100%\r\nhs_geographic_feature_resource/admin           4      0   100%\r\nhs_geographic_feature_resource/forms         157    104    34%\r\nhs_geographic_feature_resource/models        252     47    81%\r\nhs_geographic_feature_resource/parse_lib      84     10    88%\r\nhs_geographic_feature_resource/receivers     370     72    81%\r\nhs_metrics/__init__                            0      0   100%\r\nhs_metrics/models                              0      0   100%\r\nhs_model_program/__init__                      0      0   100%\r\nhs_model_program/admin                         4      0   100%\r\nhs_model_program/forms                        39     12    69%\r\nhs_model_program/models                       78     35    55%\r\nhs_model_program/receivers                    27     19    30%\r\nhs_modelinstance/__init__                      0      0   100%\r\nhs_modelinstance/admin                         4      0   100%\r\nhs_modelinstance/forms                        51     19    63%\r\nhs_modelinstance/models                      115     70    39%\r\nhs_modelinstance/receivers                    22     14    36%\r\nhs_modelinstance/tasks                         0      0   100%\r\nhs_swat_modelinstance/__init__                 0      0   100%\r\nhs_swat_modelinstance/admin                    5      0   100%\r\nhs_swat_modelinstance/forms                  164     61    63%\r\nhs_swat_modelinstance/models                 402    279    31%\r\nhs_swat_modelinstance/receivers               33     24    27%\r\nhs_swat_modelinstance/tasks                    0      0   100%\r\nhs_tools_resource/__init__                     0      0   100%\r\nhs_tools_resource/admin                        4      0   100%\r\nhs_tools_resource/forms                       85     30    65%\r\nhs_tools_resource/models                     169    118    30%\r\nhs_tools_resource/receivers                   39     29    26%\r\nhydroshare/__init__                            2      0   100%\r\nhydroshare/celery                             11      1    91%\r\nhydroshare/local_settings                     62      0   100%\r\nhydroshare/settings                           55      2    96%\r\nirods_browser_app/__init__                     0      0   100%\r\nirods_browser_app/models                       0      0   100%\r\nmanage                                         6      0   100%\r\nref_ts/__init__                                0      0   100%\r\nref_ts/admin                                   3      0   100%\r\nref_ts/models                                260    191    27%\r\nref_ts/receivers                              10      5    50%\r\ntheme/__init__                                 0      0   100%\r\ntheme/admin                                   12      0   100%\r\ntheme/blog_mods/__init__                       0      0   100%\r\ntheme/blog_mods/admin                          7      3    57%\r\ntheme/blog_mods/models                         0      0   100%\r\ntheme/models                                  85     12    86%\r\ntheme/templatetags/__init__                    0      0   100%\r\n\r\nTOTAL                                      10385   5490    47%\r\n```","created_at":"2015-10-19T15:33:02Z","updated_at":"2015-10-19T17:20:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3f03606021d47a805a47031f49242077c6d6f20b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hydroshare/hydroshare/pulls/678/commits","review_comments_url":"https://api.github.com/repos/hydroshare/hydroshare/pulls/678/comments","review_comment_url":"https://api.github.com/repos/hydroshare/hydroshare/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hydroshare/hydroshare/issues/678/comments","statuses_url":"https://api.github.com/repos/hydroshare/hydroshare/statuses/0e0d5cddfaf572b54906c46e0c596a3ec74aed45","head":{"label":"hydroshare:big-merge-503-geographic-feature-res-type-phase-1","ref":"big-merge-503-geographic-feature-res-type-phase-1","sha":"0e0d5cddfaf572b54906c46e0c596a3ec74aed45","user":{"login":"hydroshare","id":3444493,"avatar_url":"https://avatars.githubusercontent.com/u/3444493?v=3","gravatar_id":"","url":"https://api.github.com/users/hydroshare","html_url":"https://github.com/hydroshare","followers_url":"https://api.github.com/users/hydroshare/followers","following_url":"https://api.github.com/users/hydroshare/following{/other_user}","gists_url":"https://api.github.com/users/hydroshare/gists{/gist_id}","starred_url":"https://api.github.com/users/hydroshare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hydroshare/subscriptions","organizations_url":"https://api.github.com/users/hydroshare/orgs","repos_url":"https://api.github.com/users/hydroshare/repos","events_url":"https://api.github.com/users/hydroshare/events{/privacy}","received_events_url":"https://api.github.com/users/hydroshare/received_events","type":"Organization","site_admin":false},"repo":{"id":24703136,"name":"hydroshare","full_name":"hydroshare/hydroshare","owner":{"login":"hydroshare","id":3444493,"avatar_url":"https://avatars.githubusercontent.com/u/3444493?v=3","gravatar_id":"","url":"https://api.github.com/users/hydroshare","html_url":"https://github.com/hydroshare","followers_url":"https://api.github.com/users/hydroshare/followers","following_url":"https://api.github.com/users/hydroshare/following{/other_user}","gists_url":"https://api.github.com/users/hydroshare/gists{/gist_id}","starred_url":"https://api.github.com/users/hydroshare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hydroshare/subscriptions","organizations_url":"https://api.github.com/users/hydroshare/orgs","repos_url":"https://api.github.com/users/hydroshare/repos","events_url":"https://api.github.com/users/hydroshare/events{/privacy}","received_events_url":"https://api.github.com/users/hydroshare/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hydroshare/hydroshare","description":"HydroShare is a collaborative website being developed for better access to data and models in the hydrologic sciences. ","fork":false,"url":"https://api.github.com/repos/hydroshare/hydroshare","forks_url":"https://api.github.com/repos/hydroshare/hydroshare/forks","keys_url":"https://api.github.com/repos/hydroshare/hydroshare/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hydroshare/hydroshare/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hydroshare/hydroshare/teams","hooks_url":"https://api.github.com/repos/hydroshare/hydroshare/hooks","issue_events_url":"https://api.github.com/repos/hydroshare/hydroshare/issues/events{/number}","events_url":"https://api.github.com/repos/hydroshare/hydroshare/events","assignees_url":"https://api.github.com/repos/hydroshare/hydroshare/assignees{/user}","branches_url":"https://api.github.com/repos/hydroshare/hydroshare/branches{/branch}","tags_url":"https://api.github.com/repos/hydroshare/hydroshare/tags","blobs_url":"https://api.github.com/repos/hydroshare/hydroshare/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hydroshare/hydroshare/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hydroshare/hydroshare/git/refs{/sha}","trees_url":"https://api.github.com/repos/hydroshare/hydroshare/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hydroshare/hydroshare/statuses/{sha}","languages_url":"https://api.github.com/repos/hydroshare/hydroshare/languages","stargazers_url":"https://api.github.com/repos/hydroshare/hydroshare/stargazers","contributors_url":"https://api.github.com/repos/hydroshare/hydroshare/contributors","subscribers_url":"https://api.github.com/repos/hydroshare/hydroshare/subscribers","subscription_url":"https://api.github.com/repos/hydroshare/hydroshare/subscription","commits_url":"https://api.github.com/repos/hydroshare/hydroshare/commits{/sha}","git_commits_url":"https://api.github.com/repos/hydroshare/hydroshare/git/commits{/sha}","comments_url":"https://api.github.com/repos/hydroshare/hydroshare/comments{/number}","issue_comment_url":"https://api.github.com/repos/hydroshare/hydroshare/issues/comments{/number}","contents_url":"https://api.github.com/repos/hydroshare/hydroshare/contents/{+path}","compare_url":"https://api.github.com/repos/hydroshare/hydroshare/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hydroshare/hydroshare/merges","archive_url":"https://api.github.com/repos/hydroshare/hydroshare/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hydroshare/hydroshare/downloads","issues_url":"https://api.github.com/repos/hydroshare/hydroshare/issues{/number}","pulls_url":"https://api.github.com/repos/hydroshare/hydroshare/pulls{/number}","milestones_url":"https://api.github.com/repos/hydroshare/hydroshare/milestones{/number}","notifications_url":"https://api.github.com/repos/hydroshare/hydroshare/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hydroshare/hydroshare/labels{/name}","releases_url":"https://api.github.com/repos/hydroshare/hydroshare/releases{/id}","created_at":"2014-10-02T02:19:41Z","updated_at":"2015-10-16T12:02:24Z","pushed_at":"2015-10-19T15:39:50Z","git_url":"git://github.com/hydroshare/hydroshare.git","ssh_url":"git@github.com:hydroshare/hydroshare.git","clone_url":"https://github.com/hydroshare/hydroshare.git","svn_url":"https://github.com/hydroshare/hydroshare","homepage":"https://www.hydroshare.org","size":69289,"stargazers_count":12,"watchers_count":12,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":166,"forks":2,"open_issues":166,"watchers":12,"default_branch":"develop"}},"base":{"label":"hydroshare:develop","ref":"develop","sha":"80a170fa93060242e50d4f239b644ac59140a14b","user":{"login":"hydroshare","id":3444493,"avatar_url":"https://avatars.githubusercontent.com/u/3444493?v=3","gravatar_id":"","url":"https://api.github.com/users/hydroshare","html_url":"https://github.com/hydroshare","followers_url":"https://api.github.com/users/hydroshare/followers","following_url":"https://api.github.com/users/hydroshare/following{/other_user}","gists_url":"https://api.github.com/users/hydroshare/gists{/gist_id}","starred_url":"https://api.github.com/users/hydroshare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hydroshare/subscriptions","organizations_url":"https://api.github.com/users/hydroshare/orgs","repos_url":"https://api.github.com/users/hydroshare/repos","events_url":"https://api.github.com/users/hydroshare/events{/privacy}","received_events_url":"https://api.github.com/users/hydroshare/received_events","type":"Organization","site_admin":false},"repo":{"id":24703136,"name":"hydroshare","full_name":"hydroshare/hydroshare","owner":{"login":"hydroshare","id":3444493,"avatar_url":"https://avatars.githubusercontent.com/u/3444493?v=3","gravatar_id":"","url":"https://api.github.com/users/hydroshare","html_url":"https://github.com/hydroshare","followers_url":"https://api.github.com/users/hydroshare/followers","following_url":"https://api.github.com/users/hydroshare/following{/other_user}","gists_url":"https://api.github.com/users/hydroshare/gists{/gist_id}","starred_url":"https://api.github.com/users/hydroshare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hydroshare/subscriptions","organizations_url":"https://api.github.com/users/hydroshare/orgs","repos_url":"https://api.github.com/users/hydroshare/repos","events_url":"https://api.github.com/users/hydroshare/events{/privacy}","received_events_url":"https://api.github.com/users/hydroshare/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hydroshare/hydroshare","description":"HydroShare is a collaborative website being developed for better access to data and models in the hydrologic sciences. ","fork":false,"url":"https://api.github.com/repos/hydroshare/hydroshare","forks_url":"https://api.github.com/repos/hydroshare/hydroshare/forks","keys_url":"https://api.github.com/repos/hydroshare/hydroshare/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hydroshare/hydroshare/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hydroshare/hydroshare/teams","hooks_url":"https://api.github.com/repos/hydroshare/hydroshare/hooks","issue_events_url":"https://api.github.com/repos/hydroshare/hydroshare/issues/events{/number}","events_url":"https://api.github.com/repos/hydroshare/hydroshare/events","assignees_url":"https://api.github.com/repos/hydroshare/hydroshare/assignees{/user}","branches_url":"https://api.github.com/repos/hydroshare/hydroshare/branches{/branch}","tags_url":"https://api.github.com/repos/hydroshare/hydroshare/tags","blobs_url":"https://api.github.com/repos/hydroshare/hydroshare/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hydroshare/hydroshare/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hydroshare/hydroshare/git/refs{/sha}","trees_url":"https://api.github.com/repos/hydroshare/hydroshare/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hydroshare/hydroshare/statuses/{sha}","languages_url":"https://api.github.com/repos/hydroshare/hydroshare/languages","stargazers_url":"https://api.github.com/repos/hydroshare/hydroshare/stargazers","contributors_url":"https://api.github.com/repos/hydroshare/hydroshare/contributors","subscribers_url":"https://api.github.com/repos/hydroshare/hydroshare/subscribers","subscription_url":"https://api.github.com/repos/hydroshare/hydroshare/subscription","commits_url":"https://api.github.com/repos/hydroshare/hydroshare/commits{/sha}","git_commits_url":"https://api.github.com/repos/hydroshare/hydroshare/git/commits{/sha}","comments_url":"https://api.github.com/repos/hydroshare/hydroshare/comments{/number}","issue_comment_url":"https://api.github.com/repos/hydroshare/hydroshare/issues/comments{/number}","contents_url":"https://api.github.com/repos/hydroshare/hydroshare/contents/{+path}","compare_url":"https://api.github.com/repos/hydroshare/hydroshare/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hydroshare/hydroshare/merges","archive_url":"https://api.github.com/repos/hydroshare/hydroshare/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hydroshare/hydroshare/downloads","issues_url":"https://api.github.com/repos/hydroshare/hydroshare/issues{/number}","pulls_url":"https://api.github.com/repos/hydroshare/hydroshare/pulls{/number}","milestones_url":"https://api.github.com/repos/hydroshare/hydroshare/milestones{/number}","notifications_url":"https://api.github.com/repos/hydroshare/hydroshare/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hydroshare/hydroshare/labels{/name}","releases_url":"https://api.github.com/repos/hydroshare/hydroshare/releases{/id}","created_at":"2014-10-02T02:19:41Z","updated_at":"2015-10-16T12:02:24Z","pushed_at":"2015-10-19T15:39:50Z","git_url":"git://github.com/hydroshare/hydroshare.git","ssh_url":"git@github.com:hydroshare/hydroshare.git","clone_url":"https://github.com/hydroshare/hydroshare.git","svn_url":"https://github.com/hydroshare/hydroshare","homepage":"https://www.hydroshare.org","size":69289,"stargazers_count":12,"watchers_count":12,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":166,"forks":2,"open_issues":166,"watchers":12,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/hydroshare/hydroshare/pulls/678"},"html":{"href":"https://github.com/hydroshare/hydroshare/pull/678"},"issue":{"href":"https://api.github.com/repos/hydroshare/hydroshare/issues/678"},"comments":{"href":"https://api.github.com/repos/hydroshare/hydroshare/issues/678/comments"},"review_comments":{"href":"https://api.github.com/repos/hydroshare/hydroshare/pulls/678/comments"},"review_comment":{"href":"https://api.github.com/repos/hydroshare/hydroshare/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hydroshare/hydroshare/pulls/678/commits"},"statuses":{"href":"https://api.github.com/repos/hydroshare/hydroshare/statuses/0e0d5cddfaf572b54906c46e0c596a3ec74aed45"}}}}