![]() | This is an archive of past discussions on Wikipedia talk:WikiProject Articles for creation/Helper script/Rewrite. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Archive 1 | Archive 2 |
{{resolved}} Hello again. I tried to postpone deletion of Wikipedia talk:Articles for creation/Douglas Richard Ferguson. The script gives me only the options to Comment or Submit. There is clearly a G13 notice on the page. —Anne Delong (talk) 09:55, 6 May 2014 (UTC)
{{resolved}}
@Theopolisme: Please read the last line of that section again! (t) Josve05a (c) 21:38, 28 April 2014 (UTC)
{{resolved}} When accepting/declining a submission, Teahouse invitation should automatically be sent unless the user already has one. I think this is pretty easy, and makes for directing users to the location that is set up to help them. Hasteur (talk) 02:29, 6 May 2014 (UTC)
{{resolved}} Please read this thread and comment about whether the script can be modified to fix the timestamp so that the new search engine will search the most recent version of redirects, and thus not include them in the search when they no longer have the requested text. —Anne Delong (talk) 11:01, 6 May 2014 (UTC)
{{resolved}} As much as I appreciate the tool and the clever activity the inline refresh, if you take the click path
You are not presented with the AFCHR tool, but instead presented with nothing. As much as I don't want to go back to the server to get the updated page, the AFCHR tool is in a "final" state at that point. Hasteur (talk) 13:13, 6 May 2014 (UTC)
I have now updated the script so that clicking the "Review (AFCH)" link when an instance is already open will refresh the instance and return to the main options panel. I'm going to go ahead and mark this as a resolved -- if I've jumped the gun, please feel free to comment here again and we can continue to discuss alternate solutions. Theopolisme (talk) 02:28, 8 May 2014 (UTC)
{{resolved}} When we accept a biography we are asked to populate LISTAS for the talk page. PLease could you consider also population DEFAULTSORT for the article page at the same time and from the same data? Fiddle Faddle 12:10, 8 May 2014 (UTC)
{{resolved}} It won't open on User:Mycroft Sanchez/sandbox/, is this due to the articles name? (t) Josve05a (c) 13:24, 8 May 2014 (UTC)
{{resolved}} In this edit it didn't put the template-message under a seperate section/headr. Why not? (t) Josve05a (c) 13:15, 11 May 2014 (UTC)
{{resolved}} I have just started using this script and ran into a snag on my first try. Declining due to either total absence of references or no reliable independent sources is one of the most common reasons to decline a submission - but that decline reason is not in this new script. Declining as not notable might be an alternative except that when there are no references at all it is actually impossible to form an opinion about notability - without any sources we simply cannot know whether the subject is notable or not. Roger (Dodger67) (talk) 14:01, 15 May 2014 (UTC)
@Anne Delong and Dodger67: I think you are mistaken; this decline option is included in the decline rationale list under "Submission content". Screenshot (second item) Are you saying that it is not appearing for you? My apologies if I've missed anything. Theopolisme (talk) 21:21, 15 May 2014 (UTC)
{{resolved}}
Hello again, Theopolisme. I haven't accepted any Draft: submissions that have talk pages, so I can't check this for myself. I presume that if a draft is accepted, the script checks for this and moves the talk page if it exists. Right? —Anne Delong (talk) 15:38, 16 May 2014 (UTC)
as I plan on starting to break the comments and AFC templates out of mainspace and put them in talk space like they are suppose to be next week." Do you have consensus for this change? (t) Josve05a (c) 16:46, 17 May 2014 (UTC)
I've implemented and released a fix for the original request -- talk pages associated with AFC submissions will now be moved as well (if they exist) when a submission is accepted. I'm marking this thread as resolved, because the original request has been resolved. If and when clear consensus is demonstrated for reshuffling/repositioning of AFC templates/comments, please create a new thread on this page. Thanks, Theopolisme (talk) 22:55, 18 May 2014 (UTC)
{{resolved}} A small thing I noticed: I spend a lot of time looking at this category page: Category:G13 eligible AfC submissions. I select a page to examine. Sometimes I postpone or request deletion. When this happens, the script displays the new version of the page, but keeps the large colourful script notification saying that it is automatically reloading. Now, since I can see that the script has behaved properly, it's time to go back and look at the next submission, so I select my browser's back button. Nothing happens. I press it again and I am taken back to the category list. This is a minor nuisance, but since the back button doesn't work right away in some cases (for example, slow response from the Wikipedia server or spotty mobile connection) , I find myself waiting for the reload that isn't coming.... —Anne Delong (talk) 16:59, 19 April 2014 (UTC)
Resolving as stale; please feel free to reopen. Theopolisme (talk) 10:58, 21 May 2014 (UTC)
{{resolved}} I have found 2 problems when acception articles.
{{WikiProject Disambiguation}}
as a WikiProject.
{{WikiProject Disambiguation}}
's here.(t) Josve05a (c) 12:17, 21 April 2014 (UTC)
{{resolved}}
I miss the option to invite users to the teahouse... . (t) Josve05a (c) 20:53, 21 April 2014 (UTC)
I have now added a checkbox (checked by default) shown when declining to add a Teahouse invite to the submitter's talk page if they have not already received one (and by received one, I mean "has a Teahouse invite on their talk page at this moment"...yes, there are fancier ways of determining this involving page history and who knows what, but I don't necessarily see the value in them at this point: worst case, they get a second notification, life will go on). Anne Delong/Josve05a/Hasteur, please give a whirl when you get a chance and let me know if I've missed anything. Thanks! Theopolisme (talk) 02:24, 8 May 2014 (UTC)
{{resolved}}
I would like to get a diff link for when logging the deletion at CSD log. There is non at this moment. (t) Josve05a (c) 10:44, 29 April 2014 (UTC)
{{resolved}} Please see Wikipedia_talk:WikiProject_Articles_for_creation#Draft:_namespace_and_the_review_tool for a discussion which seems to be relevant here. Fiddle Faddle 16:22, 7 May 2014 (UTC)
{{resolved}} How does the "Common / recently used" work. I know I use 'blank' around 60% of the times, 'cv' around 20% and 'bio' around 10%. Still 'blank is not even on my list. Here is the 'suggestions':
Either I'm missing something, or 'blank' is not there....why not, since I use it so much (just check my contrb.) (t) Josve05a (c) 20:40, 8 May 2014 (UTC)
{{resolved}} Dear Theopolisme: Can you explain why the script checks the whitelist every time someone loads up a reviewable page, rather than just checking once when the reviewer adds the script in their preferences? I am presuming there is a good reason, but the question is being asked at Wikipedia talk:WikiProject Articles for creation (okay, I started it...) —Anne Delong (talk) 19:18, 15 May 2014 (UTC)
window.sessionStorage
API for how this would be done). Theopolisme (talk) 22:17, 15 May 2014 (UTC){{resolved}} @Hasteur and Technical 13: Do either of y'all know if it was ever decided whether or not the script should add "small=yes" to old decline templates? It's trivial to implement, but I wasn't sure if there was some sort of Lua solution in the works... By the way, as a proof of concept, I am extension-izing AFC in a mini-sprint over the next few weeks mainly as a proof-of-concept for using databases and whatnot. So feel free to look forward to that ;) Theopolisme (talk) 23:53, 20 May 2014 (UTC)
Okey-dokey, this has been implemented and is now live on enwiki. Thanks, Theopolisme (talk) 22:35, 21 May 2014 (UTC)
{{resolved}} Is there not a "funny name" for 0.8? (t) Josve05a (c) 11:15, 21 May 2014 (UTC)
AFCH.consts.versionName = 'Less is More';
to Wandering Walrus
in afch-rewrite / src / afch.js. (t) Josve05a (c) 11:38, 21 May 2014 (UTC)Hi Josve05a. The version name was updated when the new version was released (your link leads to an old version of the code), however, as we move towards a production 1.0 release, (I feel that) the fun names aren't exactly appropriate for a major script. A little easter egg, though: if you hover over the version number, you can still see the "internal codename" (aka, me having a little fun now and then). :) Theopolisme (talk) 20:42, 21 May 2014 (UTC)
{{resolved}} I think the tool resets both the submission date (ts) and decline date (declinets) to be CURRENTTIMESTAMP when declining. No bugs or problems though and pretty fast. Rankersbo (talk) 06:14, 22 May 2014 (UTC)
{{resolved}} I "cleaned" Draft:Yigal Meir and the script reported "Working", and then the small text on the left reported that the file was saved, but the "Working" did not disappear. The submission was cleaned, though, and the file saved, so everything was okay.. —Anne Delong (talk) 13:14, 22 May 2014 (UTC)
{{resolved}} I do not want it to "automticly open" on the submissions history page or when wieving diffs. Thanks. (t) Josve05a (c) 18:27, 24 May 2014 (UTC){
{{resolved}} Dear script developers: Today I wanted to postpone a G13 eligible submission, but I accidentally clicked on the "Mark as reviewing" instead. I got one of those "bad token" errors. That was good, because I didn't really want to review the draft, but maybe a more informative error message such as "Draft hasn't been submitted" or some such would be better. Not a priority, since the script did the right thing by not marking the draft. —Anne Delong (talk) 08:43, 2 April 2014 (UTC)
{{resolved}}
@Theopolisme: An option to mark a submission for speedy after declining for vand (possible other reasons too). A dropdown-list with possible criteria like G3 and G10 instead of just {{db-reason}}
. (t) Josve05a (c) 12:43, 7 April 2014 (UTC)
Cleaning out the backlog... I've tracked this as something to contemplate in the future (it seems like a good idea), but for now I don't have the development resources to devote to further investigation. Probably will be a post-1.0 feature. Theopolisme (talk) 14:43, 26 May 2014 (UTC)
{{resolved}} When sending a message to user it adds two blank lines at the top of the page (see this). It should not add those. (t) Josve05a (c) 20:22, 3 May 2014 (UTC)
Tracked as something to contemplate in the future (post-1.0). Given the way we structure the text addition to minimize API requests (resulting in a faster save), I'm not sure it's worth making the extra request to determine whether or not the page exists... but we'll see. Theopolisme (talk) 14:45, 26 May 2014 (UTC)
The large, colourful interface works okay on a vertically oriented screen, but is too large and space consuming on a 16x9 screen, which has plenty of width to show all of the options instead of hiding some, but not much height for multiple rows of text. Perhaps in the future the script will give users a choice, allowing them to select the larger style when using a touch screen or mobile device or the small one if using a pointer. However, again, as long as the old script is not removed, this shouldn't deter you from rolling out the new script for general use. Just be prepared to field lots of opinions about this. —Anne Delong (talk) 17:48, 7 April 2014 (UTC)
I'm really not liking the placeholder text in the "input boxes" (terminology?) presented when declining a draft. I just declined one as "already exists" and the dialogue had "Chocolate chip cookies" in the space where the actual existing article title was to be entered. A "Comments" box was also pre-filled with a quite large paragraph of "blah blah" that I didn't bother to read. IMHO an "input box" should be empty when presented for filling - particularly when filling it is not mandatory. Reviewers are not newbies, I found the placeholder text to be quite patronizing. Roger (Dodger67) (talk) 11:04, 20 May 2014 (UTC)
<button class="clearField" title="Clear the default text"><img src="http://upload.wikimedia.org/wikipedia/commons/2/2c/WikEd_clear_summary.png" alt="Clear field" /></button>
that clears the default text work? — {{U|Technical 13}} (t • e • c) 21:12, 20 May 2014 (UTC)mw.user.options.get( 'userjs-afch-decline-counts' );
and press enter{"v":1}
returned this first time I queried it and {"music":1}
the second and subsequent times for this chunk of reviewing. — {{U|Technical 13}} (t • e • c) 21:35, 25 May 2014 (UTC){"music":1,"context":1,"nn":1}
on every query of mw.user.options.get( 'userjs-afch-decline-counts' );
. — {{U|Technical 13}} (t • e • c) 22:04, 25 May 2014 (UTC)null
(because I've been slacking in my reviewing duties). — {{U|Technical 13}} (t • e • c) 22:20, 25 May 2014 (UTC)AFCH.userData.get( 'decline-counts' )
just in case that's returning different results?AFCH.consts.mockItUp = true;
in your console before using the script, then simulate a single decline (just do it normally -- it won't actually decline the page, though, because you've enabled mocking), and compare the value of decline-counts (via userData) before and after and seeing if it changes based on what you did?mw.user.options.get( 'userjs-afch-decline-counts' ); "{"music":1,"context":1,"adv":1}" AFCH.userData.get( 'decline-counts' ); ReferenceError: AFCH is not defined AFCH.consts.mockItUp = true; ReferenceError: AFCH is not defined
AFCH.userData.get( 'decline-counts' );
but forgot about it when I reloaded the page. When I selected the decline reason from the static list below, it registered and remembered. — {{U|Technical 13}} (t • e • c) 00:47, 26 May 2014 (UTC) if ( declineCounts[declineReason] ) {
declineCounts[declineReason] += 1;//Why not just// declineCounts[declineReason]++;
} else {
declineCounts[declineReason] = 1;//This triggers an internal red flag for some reason
}
Theo:
I will do some more testing in the sandbox tomorrow when I'm awake as to not be disruptive and not using mock up mode. Good night good sir. — {{U|Technical 13}} (t • e • c) 01:52, 26 May 2014 (UTC)
mw.user.options.get( 'userjs-afch-decline-counts' );
return for you per the instructions above? If you are using Firefox instead of Chrome, it is ctrl+⇧ Shift+k to access the console where you type in the code. — {{U|Technical 13}} (t • e • c) 22:25, 25 May 2014 (UTC)mw.user.options.get( 'userjs-afch-decline-counts' ); "{"lang":1,"corp":2,"cv":2,"test":2,"not":1,"blank":1}" mw.user.options.get( 'userjs-afch-decline-counts' ); "{"lang":1,"corp":2,"cv":2,"test":2,"not":1,"blank":1}" mw.user.options.get( 'userjs-afch-decline-counts' ); "{"lang":1,"corp":2,"cv":2,"test":2,"not":1,"blank":1}"
I wonder if data is being erased at some point in time... since it looks like new data is added correctly, and then disappears... just thinking aloud. Theopolisme (talk) 00:34, 26 May 2014 (UTC)
@Technical 13: I'm not even going to pretend I can look at the console logs without my eyes glazing over. Could you summarize your findings, perhaps? Thanks so much for all your help. Theopolisme (talk) 14:49, 26 May 2014 (UTC)
Okay, cool! Thank you T13 :) I'm able to replicate the "not working in real mode" issue with a decline as "adv" and will look into it further tonight. Being able to replicate the bug is most of the battle -- I'll try to knock this out. :) Theopolisme (talk) 23:15, 26 May 2014 (UTC)
@Technical 13: Can you try this behavior out and see if you can replicate what I get:
Any luck with this? Rather convoluted, I know, but something I encountered pretty consistently... is MediaWiki caching the values of mw.user.options and not pushing out an updated version until the page is purged (or edited), perhaps? Theopolisme (talk) 23:55, 26 May 2014 (UTC)
mw.user.options
does work for the overwhelming number of cases, and with our net of fallbacks I find data loss quite unlikely. I'd rather avoid editing wikipages if possible, plus the value for multiple accounts just doesn't seem to be worth the development effort at this point in time. Theopolisme (talk) 18:17, 27 May 2014 (UTC)@Technical 13: Further simplified process for replicating the bug:
And... that's it. In short, ResourceLoader occasionally serves cached versions of mw.user.options. This is almost certainly a bug, but not with AFCH. Rather, it's with MediaWiki itself and its ResourceLoader caching infrastructure. This explains why the issue has been so difficult to replicate -- if the user reloads/browses to other pages enough times before their next decline, the old cache will expire and update itself, and the problem won't occur.
I hope this makes some sense -- T13, let me know if you think I've missed something, since I may just be very tired and desperate to latch onto a solution (any solution!), but I have tested this quite a bit and it's always been the case that enough reloads update the cache. Thoughts? Next steps? (Bugzilla?) Theopolisme (talk) 02:54, 27 May 2014 (UTC)
Resolution: this bug should now be resolved -- or rather, at least worked around. I've added *another* layer of AFCH caching (via localStorage). Here's the explanation I added to the source code, if you're interested:
The reason for this redundancy is because of an obnoxious little thing called caching. Ideally the script would simply use mw.user.options, but *apparently* MediaWiki doesn't always provide the most updated mw.user.options on page load -- in some instances, it will provide an stale, cached version instead. This is most certainly a MediaWiki bug, but in the meantime, we circumvent it by adding numerous layers of redundancy to the whole getup. In this manner, hopefully by the time we have to rely on mw.user.options, the cache will have been invalidated and the world won't explode. *sighs repeatedly*
And here's the commit in which the issue should be resolved. Basically it just relies on the user visiting pages that *aren't* already cached in order to force an update to mw.user.options. This should probably be a bug, though. :P Aaccttualllyy... Legoktm, could you possibly help redirect this to wherever it needs to go? I don't really know who deals with caches and varnishes and ResourceLoader and whatnot, but the tl;dr is that mw.user.options isn't always updated when the page is reloaded.
Thanks to T13, Anne, and FoCuSandLeArN for your help in hunting down this issue! Theopolisme (talk) 04:16, 27 May 2014 (UTC)
Sorry to spring this on everyone, but User_talk:Theopolisme#Heads_up:_no_internet_access_until_June_19th. Thanks! Theopolisme (talk) 14:57, 28 May 2014 (UTC)
And I'm back! I've got a few things waiting for me first, and then I'll be able to get back to work on the reports here. Thanks, everyone! Theopolisme (talk) 14:21, 20 June 2014 (UTC)
Dear Theo: I used the script many times today and ABSOLUTELY NOTHING WENT WRONG. What's up with that? —Anne Delong (talk) 22:21, 25 May 2014 (UTC)
<discussion about a technical problem merged into the applicable thread @ 14:54, 26 May 2014 (UTC)>
I really just started this thread to cheer Theo up because this page has so many postings about problems that he must get tired sometimes. —Anne Delong (talk) 01:56, 26 May 2014 (UTC)