{"action":"created","issue":{"url":"https://api.github.com/repos/quintel/etmoses/issues/274","labels_url":"https://api.github.com/repos/quintel/etmoses/issues/274/labels{/name}","comments_url":"https://api.github.com/repos/quintel/etmoses/issues/274/comments","events_url":"https://api.github.com/repos/quintel/etmoses/issues/274/events","html_url":"https://github.com/quintel/etmoses/issues/274","id":100778510,"number":274,"title":"It should be possible to edit a topology (and market model) 'interactively'","user":{"login":"ChaelKruip","id":1303760,"avatar_url":"https://avatars.githubusercontent.com/u/1303760?v=3","gravatar_id":"","url":"https://api.github.com/users/ChaelKruip","html_url":"https://github.com/ChaelKruip","followers_url":"https://api.github.com/users/ChaelKruip/followers","following_url":"https://api.github.com/users/ChaelKruip/following{/other_user}","gists_url":"https://api.github.com/users/ChaelKruip/gists{/gist_id}","starred_url":"https://api.github.com/users/ChaelKruip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChaelKruip/subscriptions","organizations_url":"https://api.github.com/users/ChaelKruip/orgs","repos_url":"https://api.github.com/users/ChaelKruip/repos","events_url":"https://api.github.com/users/ChaelKruip/events{/privacy}","received_events_url":"https://api.github.com/users/ChaelKruip/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/quintel/etmoses/labels/Enhancement","name":"Enhancement","color":"bfd4f2"}],"state":"open","locked":false,"assignee":{"login":"grdw","id":2676542,"avatar_url":"https://avatars.githubusercontent.com/u/2676542?v=3","gravatar_id":"","url":"https://api.github.com/users/grdw","html_url":"https://github.com/grdw","followers_url":"https://api.github.com/users/grdw/followers","following_url":"https://api.github.com/users/grdw/following{/other_user}","gists_url":"https://api.github.com/users/grdw/gists{/gist_id}","starred_url":"https://api.github.com/users/grdw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grdw/subscriptions","organizations_url":"https://api.github.com/users/grdw/orgs","repos_url":"https://api.github.com/users/grdw/repos","events_url":"https://api.github.com/users/grdw/events{/privacy}","received_events_url":"https://api.github.com/users/grdw/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/quintel/etmoses/milestones/8","html_url":"https://github.com/quintel/etmoses/milestones/Business%20cases","labels_url":"https://api.github.com/repos/quintel/etmoses/milestones/8/labels","id":1198801,"number":8,"title":"Business cases","description":null,"creator":{"login":"ChaelKruip","id":1303760,"avatar_url":"https://avatars.githubusercontent.com/u/1303760?v=3","gravatar_id":"","url":"https://api.github.com/users/ChaelKruip","html_url":"https://github.com/ChaelKruip","followers_url":"https://api.github.com/users/ChaelKruip/followers","following_url":"https://api.github.com/users/ChaelKruip/following{/other_user}","gists_url":"https://api.github.com/users/ChaelKruip/gists{/gist_id}","starred_url":"https://api.github.com/users/ChaelKruip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChaelKruip/subscriptions","organizations_url":"https://api.github.com/users/ChaelKruip/orgs","repos_url":"https://api.github.com/users/ChaelKruip/repos","events_url":"https://api.github.com/users/ChaelKruip/events{/privacy}","received_events_url":"https://api.github.com/users/ChaelKruip/received_events","type":"User","site_admin":false},"open_issues":15,"closed_issues":4,"state":"open","created_at":"2015-07-08T13:49:33Z","updated_at":"2015-08-13T14:10:28Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-08-13T14:10:28Z","updated_at":"2015-08-13T14:51:49Z","closed_at":null,"body":"When you are working, you should be able to go back-and-forth between editing technologies, topology and market model until you are satisfied with the LES as a whole. \r\n\r\nI don't know how to ensure the following though:\r\n* changing the topology/market model should not break other LESs\r\n* changing the topology/market should not require constant renaming ('saving as')\r\n* when satisfied the user should be able to 'save as' (I think)"},"comment":{"url":"https://api.github.com/repos/quintel/etmoses/issues/comments/130718488","html_url":"https://github.com/quintel/etmoses/issues/274#issuecomment-130718488","issue_url":"https://api.github.com/repos/quintel/etmoses/issues/274","id":130718488,"user":{"login":"antw","id":4383,"avatar_url":"https://avatars.githubusercontent.com/u/4383?v=3","gravatar_id":"","url":"https://api.github.com/users/antw","html_url":"https://github.com/antw","followers_url":"https://api.github.com/users/antw/followers","following_url":"https://api.github.com/users/antw/following{/other_user}","gists_url":"https://api.github.com/users/antw/gists{/gist_id}","starred_url":"https://api.github.com/users/antw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antw/subscriptions","organizations_url":"https://api.github.com/users/antw/orgs","repos_url":"https://api.github.com/users/antw/repos","events_url":"https://api.github.com/users/antw/events{/privacy}","received_events_url":"https://api.github.com/users/antw/received_events","type":"User","site_admin":false},"created_at":"2015-08-13T14:51:49Z","updated_at":"2015-08-13T14:51:49Z","body":"> I think we should - when in the edit screen of a LES - make two buttons for 'topology' and 'market model'. When clicking on those buttons it would duplicate the current topology/market_model and you can make changes.\r\n\r\nWould it not be better to clone the MM/Topology only if there are other LES' using them?\r\n\r\n```ruby\r\nmarket_model = testing_ground.market_model\r\n\r\nif market_model.testing_grounds.count.one?\r\n  # Edit-in-place\r\nelse\r\n  # Clone\r\nend\r\n```\r\n\r\nDoesn't completely avoid cluttering the DB, but at least it won't create duplicates for every change the user makes."}}