{"action":"created","issue":{"url":"https://api.github.com/repos/Connexions/cnx-authoring/issues/238","labels_url":"https://api.github.com/repos/Connexions/cnx-authoring/issues/238/labels{/name}","comments_url":"https://api.github.com/repos/Connexions/cnx-authoring/issues/238/comments","events_url":"https://api.github.com/repos/Connexions/cnx-authoring/issues/238/events","html_url":"https://github.com/Connexions/cnx-authoring/pull/238","id":110557683,"number":238,"title":"store the original license to track changes [Manual DB update needed]","user":{"login":"reedstrm","id":253212,"avatar_url":"https://avatars.githubusercontent.com/u/253212?v=3","gravatar_id":"","url":"https://api.github.com/users/reedstrm","html_url":"https://github.com/reedstrm","followers_url":"https://api.github.com/users/reedstrm/followers","following_url":"https://api.github.com/users/reedstrm/following{/other_user}","gists_url":"https://api.github.com/users/reedstrm/gists{/gist_id}","starred_url":"https://api.github.com/users/reedstrm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reedstrm/subscriptions","organizations_url":"https://api.github.com/users/reedstrm/orgs","repos_url":"https://api.github.com/users/reedstrm/repos","events_url":"https://api.github.com/users/reedstrm/events{/privacy}","received_events_url":"https://api.github.com/users/reedstrm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-08T22:57:16Z","updated_at":"2015-10-13T16:32:06Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Connexions/cnx-authoring/pulls/238","html_url":"https://github.com/Connexions/cnx-authoring/pull/238","diff_url":"https://github.com/Connexions/cnx-authoring/pull/238.diff","patch_url":"https://github.com/Connexions/cnx-authoring/pull/238.patch"},"body":"… detectable The upgrade license code tried to do this, but it's not possible to modify the License json without a lot of work."},"comment":{"url":"https://api.github.com/repos/Connexions/cnx-authoring/issues/comments/147769383","html_url":"https://github.com/Connexions/cnx-authoring/pull/238#issuecomment-147769383","issue_url":"https://api.github.com/repos/Connexions/cnx-authoring/issues/238","id":147769383,"user":{"login":"karenc","id":153353,"avatar_url":"https://avatars.githubusercontent.com/u/153353?v=3","gravatar_id":"","url":"https://api.github.com/users/karenc","html_url":"https://github.com/karenc","followers_url":"https://api.github.com/users/karenc/followers","following_url":"https://api.github.com/users/karenc/following{/other_user}","gists_url":"https://api.github.com/users/karenc/gists{/gist_id}","starred_url":"https://api.github.com/users/karenc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karenc/subscriptions","organizations_url":"https://api.github.com/users/karenc/orgs","repos_url":"https://api.github.com/users/karenc/repos","events_url":"https://api.github.com/users/karenc/events{/privacy}","received_events_url":"https://api.github.com/users/karenc/received_events","type":"User","site_admin":false},"created_at":"2015-10-13T16:32:06Z","updated_at":"2015-10-13T16:32:06Z","body":"```\r\n11:12 < karen> is it so we don't have to make a separate request to archive?\r\n11:12 < karen> you said it's just for the publication popup\r\n11:14 < reedstrm> Right - authoring would have to ask every time it saves - seems excessive. webivew needs to know it for any given document, for both  the metadata page, \r\n                  and the publishing popup.\r\n11:14 < karen> oh i see\r\n11:16 < karen> oh and the other thing is that we actually display the old license, not just say that it's going to be updated?\r\n11:16 < karen> (because i saw upgraded was already there)\r\n11:23 < reedstrm> @karen, not sure what you mean. WE need to display the license that will be published under, i.e. the new license.\r\n11:23 < karen> we had this: self.assertEqual(document_as_dict['license']['upgraded'], True)\r\n11:24 < karen> that's why i'm wondering if you decided we need to show the details of the old license and so we have to save it\r\n11:26 < reedstrm> Right, that doesn't actually work: at the next level up, the json gets turned back into a model, and the License doesn't have an 'upgraded' field. So it \r\n                  never makes it to the browser/webview.  Discussed that w/ Rich and MichaelH, decided upgraded license is a property of the document, not the license. And \r\n                  yes, legacy  gives the author info about both old and new licensees when upgrading, and I like that :-)\r\n```"}}