{"action":"created","comment":{"url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/pulls/comments/31259398","id":31259398,"diff_hunk":"@@ -79,7 +79,7 @@ class Meta:\n     name = models.CharField(\n         max_length=255)\n     project = models.ForeignKey(Project, related_name='scenarios')\n-    current_condition = models.BooleanField(\n+    is_current_conditions = models.BooleanField(","path":"src/mmw/apps/modeling/models.py","position":5,"original_position":5,"commit_id":"c2c13d0b452208cd2a58e39f86c2181c7c1627f6","original_commit_id":"c2c13d0b452208cd2a58e39f86c2181c7c1627f6","user":{"login":"kdeloach","id":43062,"avatar_url":"https://avatars.githubusercontent.com/u/43062?v=3","gravatar_id":"","url":"https://api.github.com/users/kdeloach","html_url":"https://github.com/kdeloach","followers_url":"https://api.github.com/users/kdeloach/followers","following_url":"https://api.github.com/users/kdeloach/following{/other_user}","gists_url":"https://api.github.com/users/kdeloach/gists{/gist_id}","starred_url":"https://api.github.com/users/kdeloach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kdeloach/subscriptions","organizations_url":"https://api.github.com/users/kdeloach/orgs","repos_url":"https://api.github.com/users/kdeloach/repos","events_url":"https://api.github.com/users/kdeloach/events{/privacy}","received_events_url":"https://api.github.com/users/kdeloach/received_events","type":"User","site_admin":false},"body":"Can we replace this boolean with something more descriptive? For example, the name of the model simulation to run for this scenario? If it's null we can infer that the scenario is the \"current condition\".","created_at":"2015-05-28T17:51:08Z","updated_at":"2015-05-28T17:51:08Z","html_url":"https://github.com/WikiWatershed/model-my-watershed/pull/230#discussion_r31259398","pull_request_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/pulls/230","_links":{"self":{"href":"https://api.github.com/repos/WikiWatershed/model-my-watershed/pulls/comments/31259398"},"html":{"href":"https://github.com/WikiWatershed/model-my-watershed/pull/230#discussion_r31259398"},"pull_request":{"href":"https://api.github.com/repos/WikiWatershed/model-my-watershed/pulls/230"}}},"pull_request":{"url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/pulls/230","id":36344321,"html_url":"https://github.com/WikiWatershed/model-my-watershed/pull/230","diff_url":"https://github.com/WikiWatershed/model-my-watershed/pull/230.diff","patch_url":"https://github.com/WikiWatershed/model-my-watershed/pull/230.patch","issue_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/issues/230","number":230,"state":"open","locked":false,"title":"Save and update projects","user":{"login":"caseypt","id":1042475,"avatar_url":"https://avatars.githubusercontent.com/u/1042475?v=3","gravatar_id":"","url":"https://api.github.com/users/caseypt","html_url":"https://github.com/caseypt","followers_url":"https://api.github.com/users/caseypt/followers","following_url":"https://api.github.com/users/caseypt/following{/other_user}","gists_url":"https://api.github.com/users/caseypt/gists{/gist_id}","starred_url":"https://api.github.com/users/caseypt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caseypt/subscriptions","organizations_url":"https://api.github.com/users/caseypt/orgs","repos_url":"https://api.github.com/users/caseypt/repos","events_url":"https://api.github.com/users/caseypt/events{/privacy}","received_events_url":"https://api.github.com/users/caseypt/received_events","type":"User","site_admin":false},"body":"Connects to #196\r\n\r\nThis PR adds the ability to create new projects and update existing projects through the front-end. However, none of the controls are wired up, so testing will be done through the console.\r\n\r\nSee commit messages for details.\r\n\r\nTo test:\r\n\r\n- Run migrations.\r\n- You'll need the [Marionette Inspector](https://github.com/marionettejs/marionette.inspector) to fully test this.\r\n- Launch the app, draw an area or select one of the existing areas.\r\n- Navigate to the modeling page.\r\n- In the Marionette Inspector, load the project model in the console. This is done by clicking the download icon (![selection_028](https://cloud.githubusercontent.com/assets/1042475/7846311/ca250946-048a-11e5-8b2b-b7cdee106112.png)) which appears when you hover a model in the data tab. In my case, the project was always `c34`.\r\n\r\n![selection_027](https://cloud.githubusercontent.com/assets/1042475/7846315/d47041a4-048a-11e5-8eba-31839be72d39.png)\r\n\r\n- You should now be able to make modifications to the project in the console through the `mn1` variable.\r\n- Give the project a new name: `mn1.set('name', 'Test Project');`. The name of the project should be updated in the project drop down menu.\r\n- Add a scenario by clicking the `+` button.\r\n- Give the new scenario a new name: `mn1.get('scenarios').at(1).set('name', 'Green Roof');` The scenario name should be updated on the scenario tab.\r\n- Save the project `mn1.saveAll();`. You should see save messages in the console and the URL should be updated with the project ID.\r\n- Refresh the page. The project should be loaded with the modifications you made and the project AoI should be added to the map.\r\n- Make some more changes (change the project name again, add a few more scenarios, etc). \r\n- Save the project and refresh. Again, the project should be loaded with your changes.\r\n\r\nSome issues:\r\n\r\nhttps://github.com/WikiWatershed/model-my-watershed/issues/233 What does a read-only/public project look like?","created_at":"2015-05-27T20:20:35Z","updated_at":"2015-05-28T17:51:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f1325dad2555792291fd66d1843d28f4121e533f","assignee":{"login":"kdeloach","id":43062,"avatar_url":"https://avatars.githubusercontent.com/u/43062?v=3","gravatar_id":"","url":"https://api.github.com/users/kdeloach","html_url":"https://github.com/kdeloach","followers_url":"https://api.github.com/users/kdeloach/followers","following_url":"https://api.github.com/users/kdeloach/following{/other_user}","gists_url":"https://api.github.com/users/kdeloach/gists{/gist_id}","starred_url":"https://api.github.com/users/kdeloach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kdeloach/subscriptions","organizations_url":"https://api.github.com/users/kdeloach/orgs","repos_url":"https://api.github.com/users/kdeloach/repos","events_url":"https://api.github.com/users/kdeloach/events{/privacy}","received_events_url":"https://api.github.com/users/kdeloach/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/pulls/230/commits","review_comments_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/pulls/230/comments","review_comment_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/pulls/comments{/number}","comments_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/issues/230/comments","statuses_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/statuses/c2c13d0b452208cd2a58e39f86c2181c7c1627f6","head":{"label":"caseypt:feature/sync-model","ref":"feature/sync-model","sha":"c2c13d0b452208cd2a58e39f86c2181c7c1627f6","user":{"login":"caseypt","id":1042475,"avatar_url":"https://avatars.githubusercontent.com/u/1042475?v=3","gravatar_id":"","url":"https://api.github.com/users/caseypt","html_url":"https://github.com/caseypt","followers_url":"https://api.github.com/users/caseypt/followers","following_url":"https://api.github.com/users/caseypt/following{/other_user}","gists_url":"https://api.github.com/users/caseypt/gists{/gist_id}","starred_url":"https://api.github.com/users/caseypt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caseypt/subscriptions","organizations_url":"https://api.github.com/users/caseypt/orgs","repos_url":"https://api.github.com/users/caseypt/repos","events_url":"https://api.github.com/users/caseypt/events{/privacy}","received_events_url":"https://api.github.com/users/caseypt/received_events","type":"User","site_admin":false},"repo":{"id":36297962,"name":"model-my-watershed","full_name":"caseypt/model-my-watershed","owner":{"login":"caseypt","id":1042475,"avatar_url":"https://avatars.githubusercontent.com/u/1042475?v=3","gravatar_id":"","url":"https://api.github.com/users/caseypt","html_url":"https://github.com/caseypt","followers_url":"https://api.github.com/users/caseypt/followers","following_url":"https://api.github.com/users/caseypt/following{/other_user}","gists_url":"https://api.github.com/users/caseypt/gists{/gist_id}","starred_url":"https://api.github.com/users/caseypt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caseypt/subscriptions","organizations_url":"https://api.github.com/users/caseypt/orgs","repos_url":"https://api.github.com/users/caseypt/repos","events_url":"https://api.github.com/users/caseypt/events{/privacy}","received_events_url":"https://api.github.com/users/caseypt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/caseypt/model-my-watershed","description":"The web application front end for Model My Watershed.","fork":true,"url":"https://api.github.com/repos/caseypt/model-my-watershed","forks_url":"https://api.github.com/repos/caseypt/model-my-watershed/forks","keys_url":"https://api.github.com/repos/caseypt/model-my-watershed/keys{/key_id}","collaborators_url":"https://api.github.com/repos/caseypt/model-my-watershed/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/caseypt/model-my-watershed/teams","hooks_url":"https://api.github.com/repos/caseypt/model-my-watershed/hooks","issue_events_url":"https://api.github.com/repos/caseypt/model-my-watershed/issues/events{/number}","events_url":"https://api.github.com/repos/caseypt/model-my-watershed/events","assignees_url":"https://api.github.com/repos/caseypt/model-my-watershed/assignees{/user}","branches_url":"https://api.github.com/repos/caseypt/model-my-watershed/branches{/branch}","tags_url":"https://api.github.com/repos/caseypt/model-my-watershed/tags","blobs_url":"https://api.github.com/repos/caseypt/model-my-watershed/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/caseypt/model-my-watershed/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/caseypt/model-my-watershed/git/refs{/sha}","trees_url":"https://api.github.com/repos/caseypt/model-my-watershed/git/trees{/sha}","statuses_url":"https://api.github.com/repos/caseypt/model-my-watershed/statuses/{sha}","languages_url":"https://api.github.com/repos/caseypt/model-my-watershed/languages","stargazers_url":"https://api.github.com/repos/caseypt/model-my-watershed/stargazers","contributors_url":"https://api.github.com/repos/caseypt/model-my-watershed/contributors","subscribers_url":"https://api.github.com/repos/caseypt/model-my-watershed/subscribers","subscription_url":"https://api.github.com/repos/caseypt/model-my-watershed/subscription","commits_url":"https://api.github.com/repos/caseypt/model-my-watershed/commits{/sha}","git_commits_url":"https://api.github.com/repos/caseypt/model-my-watershed/git/commits{/sha}","comments_url":"https://api.github.com/repos/caseypt/model-my-watershed/comments{/number}","issue_comment_url":"https://api.github.com/repos/caseypt/model-my-watershed/issues/comments{/number}","contents_url":"https://api.github.com/repos/caseypt/model-my-watershed/contents/{+path}","compare_url":"https://api.github.com/repos/caseypt/model-my-watershed/compare/{base}...{head}","merges_url":"https://api.github.com/repos/caseypt/model-my-watershed/merges","archive_url":"https://api.github.com/repos/caseypt/model-my-watershed/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/caseypt/model-my-watershed/downloads","issues_url":"https://api.github.com/repos/caseypt/model-my-watershed/issues{/number}","pulls_url":"https://api.github.com/repos/caseypt/model-my-watershed/pulls{/number}","milestones_url":"https://api.github.com/repos/caseypt/model-my-watershed/milestones{/number}","notifications_url":"https://api.github.com/repos/caseypt/model-my-watershed/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/caseypt/model-my-watershed/labels{/name}","releases_url":"https://api.github.com/repos/caseypt/model-my-watershed/releases{/id}","created_at":"2015-05-26T13:33:25Z","updated_at":"2015-05-26T13:33:26Z","pushed_at":"2015-05-27T21:38:00Z","git_url":"git://github.com/caseypt/model-my-watershed.git","ssh_url":"git@github.com:caseypt/model-my-watershed.git","clone_url":"https://github.com/caseypt/model-my-watershed.git","svn_url":"https://github.com/caseypt/model-my-watershed","homepage":null,"size":13208,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"WikiWatershed:develop","ref":"develop","sha":"a659dec7b1b020b80e70bd4367e2dabc5386e8c8","user":{"login":"WikiWatershed","id":8520008,"avatar_url":"https://avatars.githubusercontent.com/u/8520008?v=3","gravatar_id":"","url":"https://api.github.com/users/WikiWatershed","html_url":"https://github.com/WikiWatershed","followers_url":"https://api.github.com/users/WikiWatershed/followers","following_url":"https://api.github.com/users/WikiWatershed/following{/other_user}","gists_url":"https://api.github.com/users/WikiWatershed/gists{/gist_id}","starred_url":"https://api.github.com/users/WikiWatershed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WikiWatershed/subscriptions","organizations_url":"https://api.github.com/users/WikiWatershed/orgs","repos_url":"https://api.github.com/users/WikiWatershed/repos","events_url":"https://api.github.com/users/WikiWatershed/events{/privacy}","received_events_url":"https://api.github.com/users/WikiWatershed/received_events","type":"Organization","site_admin":false},"repo":{"id":32742922,"name":"model-my-watershed","full_name":"WikiWatershed/model-my-watershed","owner":{"login":"WikiWatershed","id":8520008,"avatar_url":"https://avatars.githubusercontent.com/u/8520008?v=3","gravatar_id":"","url":"https://api.github.com/users/WikiWatershed","html_url":"https://github.com/WikiWatershed","followers_url":"https://api.github.com/users/WikiWatershed/followers","following_url":"https://api.github.com/users/WikiWatershed/following{/other_user}","gists_url":"https://api.github.com/users/WikiWatershed/gists{/gist_id}","starred_url":"https://api.github.com/users/WikiWatershed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WikiWatershed/subscriptions","organizations_url":"https://api.github.com/users/WikiWatershed/orgs","repos_url":"https://api.github.com/users/WikiWatershed/repos","events_url":"https://api.github.com/users/WikiWatershed/events{/privacy}","received_events_url":"https://api.github.com/users/WikiWatershed/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/WikiWatershed/model-my-watershed","description":"The web application front end for Model My Watershed.","fork":false,"url":"https://api.github.com/repos/WikiWatershed/model-my-watershed","forks_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/forks","keys_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/keys{/key_id}","collaborators_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/teams","hooks_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/hooks","issue_events_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/issues/events{/number}","events_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/events","assignees_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/assignees{/user}","branches_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/branches{/branch}","tags_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/tags","blobs_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/git/refs{/sha}","trees_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/git/trees{/sha}","statuses_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/statuses/{sha}","languages_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/languages","stargazers_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/stargazers","contributors_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/contributors","subscribers_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/subscribers","subscription_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/subscription","commits_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/commits{/sha}","git_commits_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/git/commits{/sha}","comments_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/comments{/number}","issue_comment_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/issues/comments{/number}","contents_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/contents/{+path}","compare_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/compare/{base}...{head}","merges_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/merges","archive_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/downloads","issues_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/issues{/number}","pulls_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/pulls{/number}","milestones_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/milestones{/number}","notifications_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/labels{/name}","releases_url":"https://api.github.com/repos/WikiWatershed/model-my-watershed/releases{/id}","created_at":"2015-03-23T16:02:55Z","updated_at":"2015-05-26T15:38:16Z","pushed_at":"2015-05-28T17:19:01Z","git_url":"git://github.com/WikiWatershed/model-my-watershed.git","ssh_url":"git@github.com:WikiWatershed/model-my-watershed.git","clone_url":"https://github.com/WikiWatershed/model-my-watershed.git","svn_url":"https://github.com/WikiWatershed/model-my-watershed","homepage":null,"size":22964,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":79,"forks":7,"open_issues":79,"watchers":2,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/WikiWatershed/model-my-watershed/pulls/230"},"html":{"href":"https://github.com/WikiWatershed/model-my-watershed/pull/230"},"issue":{"href":"https://api.github.com/repos/WikiWatershed/model-my-watershed/issues/230"},"comments":{"href":"https://api.github.com/repos/WikiWatershed/model-my-watershed/issues/230/comments"},"review_comments":{"href":"https://api.github.com/repos/WikiWatershed/model-my-watershed/pulls/230/comments"},"review_comment":{"href":"https://api.github.com/repos/WikiWatershed/model-my-watershed/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/WikiWatershed/model-my-watershed/pulls/230/commits"},"statuses":{"href":"https://api.github.com/repos/WikiWatershed/model-my-watershed/statuses/c2c13d0b452208cd2a58e39f86c2181c7c1627f6"}}}}