[10:26:07] tonythomas: Thank you so much for reviewing Devi's patch. :) [10:26:22] Niharika: heh. oojs-ui conversion is my fav! [10:26:36] tonythomas: :D I know nothing about it. :P [10:26:41] I have personally submitted couple of patchsets in that direction, (#showoff) [10:27:07] Niharika: well - its not that documented. had loads of trouble bringing in the first few patchsets [10:28:38] tonythomas: Nice! I should give it a try sometime. [13:07:26] Glaisher: hey [13:07:32] you around ? [13:07:50] here now but have to leave soon [13:08:08] oops. it was to review https://www.irccloud.com/#!/ircs://irc.freenode.net:6697/%23wikimedia-devrel [13:08:09] err [13:08:11] https://gerrit.wikimedia.org/r/#/c/289720/ [13:09:25] the thing is, I am storing the changed item as 'item' : { 'old' : "old version", "updated": "updated version" } [13:09:34] Glaisher: is there a better way of storing ? [13:09:50] changed item? [13:10:28] in the history table [13:10:45] nlh_contents in https://gerrit.wikimedia.org/r/#/c/289720/6/sql/nl_history.sql [13:11:04] Oh, you're storing both old and new descriptions? [13:11:17] had to :\ [13:11:36] Can't you just insert a row for each version? [13:12:11] You can query the previous row in addition to the current row to generate a diff [13:12:29] if we are only storing changes in history, then that would be alright [13:12:41] err. changes in description [13:13:12] Later if we want to store other updations too, this will create an issue ? [13:13:52] and how do I ' generate a diff ' ? [13:14:03] No, as I said previously, you can store like { "description": "blabla", "name": "name-stuff" } [13:14:16] You can use core's DiffEngine? [13:14:25] havent used that :\ [13:14:38] have got some example for me somewhere ? [13:14:57] You can look at the API documentation for it. :) [13:15:09] And you can also look at what core does too! [13:16:05] Alright. and one more thing - what is "name": "name-stuff" doing there ? [13:17:02] That's just an example. I meant you can store different stuff, not just description, that way [13:17:09] ok, I need to leave now [13:17:11] bye [13:17:20] Hope to review the patch soon [13:17:21] Glaisher: alright. Thank you! [13:17:23] yeah