{"action":"created","issue":{"url":"https://api.github.com/repos/hydroshare/hydroshare/issues/607","labels_url":"https://api.github.com/repos/hydroshare/hydroshare/issues/607/labels{/name}","comments_url":"https://api.github.com/repos/hydroshare/hydroshare/issues/607/comments","events_url":"https://api.github.com/repos/hydroshare/hydroshare/issues/607/events","html_url":"https://github.com/hydroshare/hydroshare/pull/607","id":106410752,"number":607,"title":"[WIP] 548 link swmi with mp","user":{"login":"Castronova","id":4822372,"avatar_url":"https://avatars.githubusercontent.com/u/4822372?v=3","gravatar_id":"","url":"https://api.github.com/users/Castronova","html_url":"https://github.com/Castronova","followers_url":"https://api.github.com/users/Castronova/followers","following_url":"https://api.github.com/users/Castronova/following{/other_user}","gists_url":"https://api.github.com/users/Castronova/gists{/gist_id}","starred_url":"https://api.github.com/users/Castronova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Castronova/subscriptions","organizations_url":"https://api.github.com/users/Castronova/orgs","repos_url":"https://api.github.com/users/Castronova/repos","events_url":"https://api.github.com/users/Castronova/events{/privacy}","received_events_url":"https://api.github.com/users/Castronova/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/hydroshare/hydroshare/milestones/17","html_url":"https://github.com/hydroshare/hydroshare/milestones/Release%201.6.2%20-%20General%20Improvements","labels_url":"https://api.github.com/repos/hydroshare/hydroshare/milestones/17/labels","id":1329069,"number":17,"title":"Release 1.6.2 - General Improvements","description":"General improvements that were not incorporated into 1.6.1","creator":{"login":"dtarb","id":3456833,"avatar_url":"https://avatars.githubusercontent.com/u/3456833?v=3","gravatar_id":"","url":"https://api.github.com/users/dtarb","html_url":"https://github.com/dtarb","followers_url":"https://api.github.com/users/dtarb/followers","following_url":"https://api.github.com/users/dtarb/following{/other_user}","gists_url":"https://api.github.com/users/dtarb/gists{/gist_id}","starred_url":"https://api.github.com/users/dtarb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dtarb/subscriptions","organizations_url":"https://api.github.com/users/dtarb/orgs","repos_url":"https://api.github.com/users/dtarb/repos","events_url":"https://api.github.com/users/dtarb/events{/privacy}","received_events_url":"https://api.github.com/users/dtarb/received_events","type":"User","site_admin":false},"open_issues":35,"closed_issues":8,"state":"open","created_at":"2015-09-29T13:36:14Z","updated_at":"2015-11-10T18:32:43Z","due_on":"2015-11-10T05:00:00Z","closed_at":null},"comments":14,"created_at":"2015-09-14T19:23:27Z","updated_at":"2015-11-10T20:50:44Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/hydroshare/hydroshare/pulls/607","html_url":"https://github.com/hydroshare/hydroshare/pull/607","diff_url":"https://github.com/hydroshare/hydroshare/pull/607.diff","patch_url":"https://github.com/hydroshare/hydroshare/pull/607.patch"},"body":"This pull request adds the Model Program foreign key relationship to the SwatModelInstance resource.  The following modifications were necessary to accomplish this:\r\n\r\n* Default values were given to **model_name** and **model_program_fk** fields.\r\n* A *related_name* was given the the **model_program_fk** so that multiple resource can share the same foreign key relationship (i.e. model instance and swat model instance)\r\n* Extended the swat model instance *executebyformhelper* function to display model program info on the edit page.  This is necessary to provide users with model program metadata when they are establishing the *executedby* relationship.\r\n* Added a dropdown list to the swat model instance edit page to display available model programs.\r\n* Fixed a bug in the swat model instance `get_xml()` function that was causing bagit creation and resource saving to fail.\r\n* Updated the swat model instance landing page to display model program metadata if the *executedby* relationship has been established.\r\n* Added a reference to `model_instance.js` in the swat model instance html file to enable interactive model program selection.\r\n* Added migrations for the model instance and swat model instance resources."},"comment":{"url":"https://api.github.com/repos/hydroshare/hydroshare/issues/comments/155561679","html_url":"https://github.com/hydroshare/hydroshare/pull/607#issuecomment-155561679","issue_url":"https://api.github.com/repos/hydroshare/hydroshare/issues/607","id":155561679,"user":{"login":"mohamedmorsy","id":5543781,"avatar_url":"https://avatars.githubusercontent.com/u/5543781?v=3","gravatar_id":"","url":"https://api.github.com/users/mohamedmorsy","html_url":"https://github.com/mohamedmorsy","followers_url":"https://api.github.com/users/mohamedmorsy/followers","following_url":"https://api.github.com/users/mohamedmorsy/following{/other_user}","gists_url":"https://api.github.com/users/mohamedmorsy/gists{/gist_id}","starred_url":"https://api.github.com/users/mohamedmorsy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mohamedmorsy/subscriptions","organizations_url":"https://api.github.com/users/mohamedmorsy/orgs","repos_url":"https://api.github.com/users/mohamedmorsy/repos","events_url":"https://api.github.com/users/mohamedmorsy/events{/privacy}","received_events_url":"https://api.github.com/users/mohamedmorsy/received_events","type":"User","site_admin":false},"created_at":"2015-11-10T20:50:44Z","updated_at":"2015-11-10T20:50:44Z","body":"@pkdash @selimnairb @rayi113 I just did push the latest code modifications. Now, It should be ready to be reviewed "}}