{"action":"closed","issue":{"url":"https://api.github.com/repos/NREL/OpenStudio/issues/2487","repository_url":"https://api.github.com/repos/NREL/OpenStudio","labels_url":"https://api.github.com/repos/NREL/OpenStudio/issues/2487/labels{/name}","comments_url":"https://api.github.com/repos/NREL/OpenStudio/issues/2487/comments","events_url":"https://api.github.com/repos/NREL/OpenStudio/issues/2487/events","html_url":"https://github.com/NREL/OpenStudio/issues/2487","id":210178229,"number":2487,"title":"Cross version OS app/PAT handling of measure.xml file","user":{"login":"DavidGoldwasser","id":4857055,"avatar_url":"https://avatars3.githubusercontent.com/u/4857055?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidGoldwasser","html_url":"https://github.com/DavidGoldwasser","followers_url":"https://api.github.com/users/DavidGoldwasser/followers","following_url":"https://api.github.com/users/DavidGoldwasser/following{/other_user}","gists_url":"https://api.github.com/users/DavidGoldwasser/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidGoldwasser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidGoldwasser/subscriptions","organizations_url":"https://api.github.com/users/DavidGoldwasser/orgs","repos_url":"https://api.github.com/users/DavidGoldwasser/repos","events_url":"https://api.github.com/users/DavidGoldwasser/events{/privacy}","received_events_url":"https://api.github.com/users/DavidGoldwasser/received_events","type":"User","site_admin":false},"labels":[{"id":180057210,"url":"https://api.github.com/repos/NREL/OpenStudio/labels/component%20-%20Cloud","name":"component - Cloud","color":"888888","default":false},{"id":47125200,"url":"https://api.github.com/repos/NREL/OpenStudio/labels/component%20-%20Measures","name":"component - Measures","color":"888888","default":false},{"id":47117166,"url":"https://api.github.com/repos/NREL/OpenStudio/labels/severity%20-%20Major%20Bug","name":"severity - Major Bug","color":"eb6420","default":false}],"state":"closed","locked":false,"assignee":{"login":"DavidGoldwasser","id":4857055,"avatar_url":"https://avatars3.githubusercontent.com/u/4857055?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidGoldwasser","html_url":"https://github.com/DavidGoldwasser","followers_url":"https://api.github.com/users/DavidGoldwasser/followers","following_url":"https://api.github.com/users/DavidGoldwasser/following{/other_user}","gists_url":"https://api.github.com/users/DavidGoldwasser/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidGoldwasser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidGoldwasser/subscriptions","organizations_url":"https://api.github.com/users/DavidGoldwasser/orgs","repos_url":"https://api.github.com/users/DavidGoldwasser/repos","events_url":"https://api.github.com/users/DavidGoldwasser/events{/privacy}","received_events_url":"https://api.github.com/users/DavidGoldwasser/received_events","type":"User","site_admin":false},"assignees":[{"login":"DavidGoldwasser","id":4857055,"avatar_url":"https://avatars3.githubusercontent.com/u/4857055?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidGoldwasser","html_url":"https://github.com/DavidGoldwasser","followers_url":"https://api.github.com/users/DavidGoldwasser/followers","following_url":"https://api.github.com/users/DavidGoldwasser/following{/other_user}","gists_url":"https://api.github.com/users/DavidGoldwasser/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidGoldwasser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidGoldwasser/subscriptions","organizations_url":"https://api.github.com/users/DavidGoldwasser/orgs","repos_url":"https://api.github.com/users/DavidGoldwasser/repos","events_url":"https://api.github.com/users/DavidGoldwasser/events{/privacy}","received_events_url":"https://api.github.com/users/DavidGoldwasser/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/NREL/OpenStudio/milestones/16","html_url":"https://github.com/NREL/OpenStudio/milestone/16","labels_url":"https://api.github.com/repos/NREL/OpenStudio/milestones/16/labels","id":2162446,"number":16,"title":"Version 2.1.0 (official, March)","description":"","creator":{"login":"macumber","id":1327850,"avatar_url":"https://avatars0.githubusercontent.com/u/1327850?v=3","gravatar_id":"","url":"https://api.github.com/users/macumber","html_url":"https://github.com/macumber","followers_url":"https://api.github.com/users/macumber/followers","following_url":"https://api.github.com/users/macumber/following{/other_user}","gists_url":"https://api.github.com/users/macumber/gists{/gist_id}","starred_url":"https://api.github.com/users/macumber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/macumber/subscriptions","organizations_url":"https://api.github.com/users/macumber/orgs","repos_url":"https://api.github.com/users/macumber/repos","events_url":"https://api.github.com/users/macumber/events{/privacy}","received_events_url":"https://api.github.com/users/macumber/received_events","type":"User","site_admin":false},"open_issues":27,"closed_issues":18,"state":"open","created_at":"2016-11-28T23:27:27Z","updated_at":"2017-03-11T01:59:21Z","due_on":"2017-03-31T07:00:00Z","closed_at":null},"comments":2,"created_at":"2017-02-24T22:44:32Z","updated_at":"2017-03-11T01:59:21Z","closed_at":"2017-03-11T01:59:21Z","body":"Steps to change all measure.xmls in a directory.\r\n\r\n1. Download this repo in develop branch\r\nhttps://github.com/NREL/OpenStudio-measures\r\n\r\n2. Set your \"My Measures\" directory \r\nhttps://github.com/NREL/OpenStudio-measures/tree/develop/NREL%20working%20measures\r\n\r\n3. Launch 2.0.3 OS app and go to measures tab. If you then look back at GitHub change log you shouldn't see anything.\r\n\r\n![screen shot 2017-02-24 at 3 30 54 pm](https://cloud.githubusercontent.com/assets/4857055/23323912/165e9bd2-faa8-11e6-8918-79a522b1cf50.png)\r\n\r\n4. Quit OpenStudio 2.0.3 and launch OpenStudio 1.14.0, and go to the measures tab (I think similar behavior exists with 2.0.0 and 2.0.3 but I don't have that installed now to test)\r\n\r\n5. You will now see 209 files changed in the GitHub change log. in this case the \"outputs\" section was removed which also triggered version_id and version_modified to change.\r\n\r\n![screen shot 2017-02-24 at 3 36 11 pm](https://cloud.githubusercontent.com/assets/4857055/23323901/08f773ec-faa8-11e6-8af9-b2912bb8c490.png)\r\n\r\n6. Now quit 1.14.0 and launch 2.0.3 again, and go to the measures tab\r\n\r\n7. If you look back at GitHub change log, now outputs is back, but a fresh version_id and version_modified has been added, which doesn't match the committed repo one.\r\n\r\n![screen shot 2017-02-24 at 3 38 31 pm](https://cloud.githubusercontent.com/assets/4857055/23323889/f9a643c8-faa7-11e6-9f23-6ae72843bdcb.png)\r\n\r\nThe issue here is confusion for people working on repo where they change one measure but hundreds of XML's are updated, it also creates tons of merge conflicts in branches making. The only way I can think of to avoid this is to avoid structural changes to the XML file whenever possible, so this happens less often. Unless there is a way the version_id and version_updated is some form of checksum based on content that would match what it originally did. We can also have users always make commits after updating XML's with the latest version (or maybe the latest major version). Another alternative that I think isn't an option is just not to have an measure.xml, add the few things needed like uid and taxonomy to measure.rb and let measure.xml be generated when needed."}}
{"actor":{"display_login":"macumber"}}