[05:51:33] addshore: hope you get more time today :) [09:06:28] tonythomas: around now? [09:06:41] addshore: I am! [09:06:43] :) [09:06:53] right, lets do a big review push for newsletter then :0 [09:06:58] reviewing https://gerrit.wikimedia.org/r/#/c/303984/ first [09:07:01] addshore: amazing. [09:07:05] I'm all set [09:08:19] so there are some things here - we do not have written code for making the manage page call the contenthanlder etc. its just for the new page creations - like - action=edit in a Newsletter namespace [09:08:33] the manage still just takes in the data, and stores it into the db, and nothing much [09:08:46] that should go to the next patchset, as per Glaisher's plan [09:11:42] okay [09:11:56] tonythomas: want to remove the WIP from that first patch? [09:12:05] addshore: removing now [09:12:44] also tonythomas there is an evil tab on line 13 of https://gerrit.wikimedia.org/r/#/c/303984/6/includes/NewsletterEditPage.php [09:12:59] also in the edit method of that class, what are with all of the comments? are they todos? [09:13:03] alright. I will dowload and change it. sec [09:13:11] addshore: yeah! [09:13:22] can you add a //TODO line? :) [09:13:31] alright. on it [09:13:35] (also it looks like some of them are already done) [09:15:07] addshore: in the follow up one, right [09:15:23] I fear a merge conflict :o [09:15:24] well some are done in that one, like readme and the permissions check [09:15:28] ahhh, okay [09:16:38] so what is the planned workflow? Go to something like Newsletter:Foo, create a newsletter and have the wikipage in some other namespace (project namespace probably?> [09:17:13] Then navigating to Newsletter:Foo will show you the details of the newsletter? [09:18:12] addshore: done. [09:18:33] mwahaaa, there is indeed apparently a merge conflict ;) [09:18:42] addshore: argh :/ [09:18:44] let me correct [09:19:31] addshore: you sure about that one - https://gerrit.wikimedia.org/r/#/c/304692/5 shows nothing strange ? [09:19:39] I cant click rebase [09:20:09] for https://gerrit.wikimedia.org/r/#/c/304692/5 right -- let me check [09:20:22] argh. https://gerrit.wikimedia.org/r/#/c/304692/5 [09:20:27] yeah. I see that. let me check [09:27:50] argh. it seems to be messy : [09:30:08] :D [09:31:17] addshore: do you see this - https://gerrit.wikimedia.org/r/#/c/304692/5/includes/NewsletterEditPage.php and https://gerrit.wikimedia.org/r/#/c/303984/7/includes/NewsletterEditPage.php ? [09:31:29] I dont even think they were built over one another [09:36:19] oooh, tonythomas maybe they were not.... [09:36:28] addshore: oh. really ? [09:36:29] but geerr ti says they were? O_o [09:36:33] yeah ? [09:36:55] yeh, they are based on each other! [09:38:22] addshore: yeah. I just cant get which one was the base one here :\ [09:39:10] tonythomas: the easies was to solve is would likely be copy out the chunk that was added to https://gerrit.wikimedia.org/r/#/c/304692/5/includes/NewsletterEditPage.php then just use the whole of https://gerrit.wikimedia.org/r/#/c/303984/7/includes/NewsletterEditPage.php and paste that chunk back in [09:40:17] if that sounds easy, let me try [09:48:25] I'm doing something. hope it might work out. let me check [09:48:45] yay. rebased now. [09:48:48] now pasting our new contents. [09:51:58] argh. no no [09:54:46] addshore: yay. https://gerrit.wikimedia.org/r/#/c/304692/ loosk good ?": [09:55:06] git is just a mystery :/ [09:55:11] = ) [11:20:57] tonythomas: I went out to lunch ;) [13:24:35] but im back now [13:24:52] so tonythomas did the workflow I described fit what we are aiming for? [13:25:06] Go to something like Newsletter:Foo, create a newsletter and have the wikipage in some other namespace (project namespace probably?> [13:25:06] 11:17 AM Then navigating to Newsletter:Foo will show you the details of the newsletter? [13:47:19] addshore: hey. I got here [13:47:29] youre here ? [14:17:55] tonythomas: yes! [14:18:47] addshore: alright. so after creating Newsletter:Foo, yeah - it should show its details. true [14:22:41] so, all of the special page logic should be put in the edit pgae thing [14:23:11] addshore: exactly. That should be next step. [14:23:15] let me fix those comments. [14:23:22] :) [14:30:26] addshore: done. [14:30:32] phpstorm took its time to load up. [14:31:04] I think instead of merging anything now though we should keep building the patches up until it is all ready :) [14:31:33] addshore: exactly. I can go for the next one, then ? [14:31:39] like pasting things into the editpage ? [14:31:39] yeh! :D [14:32:00] alright. so this one would be to make the manage thing use the EditPage, right [14:40:26] addshore: just to confirm - we would need to move the editing logic too to the EditPage ? [14:40:39] i believe so! [14:40:49] addshore: alright - so every editing is gonna happen there. nice [14:41:00] so that would mean more params passed to Editpage() [15:40:21] addshore: hey. Looks like I am getting a validator error [15:40:27] =o [15:40:35] on editing, as it expects a newsletter 'Name' too in edit page [15:40:42] but in Edit page, we are not allowing that one afaik [15:43:36] alright. looks like Glaisher or me added that extra filed in one of our commits. removing it [15:44:50] hmm. but I dont feel like throwing off that one either. Let me make two different required fields, then [15:48:07] aha. now we have Catchable fatal error: Argument 1 passed to NewsletterContent::doLinkCacheQuery() must implement interface Iterator, instance of Status given, called in /var/www/core/core/extensions/Newsletter/includes/content/NewsletterContent.php on line 161 and defined in /var/www/core/core/extensions/Newsletter/includes/content/NewsletterContent.php on [15:48:07] line 301 [15:57:26] addshore: yay. fixed it. will be pushing in soon [15:57:32] have some qqq and i18n [15:58:03] =] [16:01:18] addshore: pushing in now. [16:04:34] addshore: https://gerrit.wikimedia.org/r/#/c/309849/