User talk:Equazcion/OneClickArchiver

Would be great if....
I could archive in e.g. User talk:Josve05a/Archives/2014/February With this tool. I don't see how.... (t) Josve05a  (c) 17:01, 14 February 2014 (UTC)
 * ...One could archive all the sections at a page at once instead of one at a time.  Soham  08:16, 16 February 2014 (UTC)


 * Hello ! I've thought about this, and need to do some more research on this.  The way that I've done it is by number, so counter=1 for January, counter=2 for February, etc.  How does the page currently flip through the months?  Does a current bot update it every month?  What about when there is no archiving that happens by bot in a month, as the script does not handle creating new archives very well? — &#123;&#123;U&#124;Technical 13&#125;&#125; (e • t • c) 16:00, 10 December 2014 (UTC)

Problems in archiving
Here User:EEng used this tool to archive 7 threads one by one but the seven threads arriving [https://en.wikipedia.org/w/index.php?title=Wikipedia_talk%3ADid_you_know%2FArchive_112&diff=637016807&oldid=636826450#Queues_empty_again. here] have one thread duplicated twice and one another duplicated once. Resulting in loss of archiving for 3 threads. -- Vigyani talkਯੋਗਦਾਨ 07:15, 18 December 2014 (UTC)
 * I sure hope this gets fixed since one-click archiving is the best thing since sliced bread.
 * Since the email I got woke me up through my phone (darn thing, it's 2:40am), I'll look into it tomorrow but I'm guessing it's a server/caching glitch (see this page's history, it's apparently happened at least once before). I suppose I could add a sanity check when I have some free time. — &#123;&#123;U&#124;Technical 13&#125;&#125; (e • t • c) 07:46, 18 December 2014 (UTC)
 * — &#123;&#123;U&#124;Technical 13&#125;&#125; (e • t • c) 15:02, 18 December 2014 (UTC)
 * Okay, this looks a lot like User talk:Equazcion/OneClickArchiver/Archive 1 reported back in Nov 2013. Archiving and having it show up as ;  and having it show up as ;  and having it show up as ;  and having it show up as  all concern me enough to keep an eye out for it.  I've made some changes since December 7, 2014, and I'm debating adding a(n optional) logging function that will make such issues more evident more quickly so I can look into them better. I'm going to mark this as unresolved because it will take me quite a bit of work to find a way to add a sanity check and make sure that it is actually removing the section that it just added to the archive.  I'll also add it to the "todo" list, so I won't forget to do it later. Thank you for your report! — &#123;&#123;U&#124;Technical 13&#125;&#125; (e • t • c) 15:27, 18 December 2014 (UTC)


 * Okay, you can easily compare your edits using the archiver with 's toollabs:sigma/summary.py tool. You can copy:
 * To any page in your userspace. This will make a link like: . On top of that, if you find it difficult to distinguish one row from another, you can open your error console and add the following code which will color each row either light red or light green for removing and adding content:
 * There should be a difference in 10 bytes caused by prefixing  (  is a newline character and counts as one character) to each section archived on the destination page (prevents section bleed in archives, may subst: it in the future, not sure yet).  I'm going to modify the code a little tomorrow so that it should always save the archived copy before clearing the section from the page (this, in itself, should help with the issue). — &#123;&#123;U&#124;Technical 13&#125;&#125; (e • t • c) 06:05, 21 December 2014 (UTC)
 * Thanks for the effort,, but I have no idea what any of that said or means. I still have intermittent probs with Oneclickarchiving, though.  Sandy Georgia  (Talk) 16:02, 21 December 2014 (UTC)
 * I to the top of your "useful links" box.  All you have to do is click on that and you can easily look through your recent (500 entries should be 250 archived sections) and compare the byte size.  The difference between a green number and a red one should be the green number is 9 or 10 higher than the  red number.  Big differences means that what was put on the archive page isn't the same as what was taking off of the section you wanted to archive.  Thanks. :) — &#123;&#123;U&#124;Technical 13&#125;&#125; (e • t • c) 16:11, 21 December 2014 (UTC)
 * Thanks!  So, that's to help me find past errors?  But I check them each manually as I do them anyway.  I'm not sure how I need to use that info ?  Sandy Georgia  (Talk) 16:21, 21 December 2014 (UTC)
 * It's quicker and easier for when you archive 3 or 4 sections on a page to just check that and see if the diff sizes line up. If they do, you don't have to manually go through each revision. :) — &#123;&#123;U&#124;Technical 13&#125;&#125; (e • t • c) 16:41, 21 December 2014 (UTC)
 * I see, ok, thanks and unwatch! Sandy Georgia  (Talk) 16:43, 21 December 2014 (UTC)
 * It's quicker and easier for when you archive 3 or 4 sections on a page to just check that and see if the diff sizes line up. If they do, you don't have to manually go through each revision. :) — &#123;&#123;U&#124;Technical 13&#125;&#125; (e • t • c) 16:41, 21 December 2014 (UTC)
 * I see, ok, thanks and unwatch! Sandy Georgia  (Talk) 16:43, 21 December 2014 (UTC)

Error messages
I'm now getting visible error messages each time I load talk (and some other) pages that do not have archives:
 * OneClickArchiver errors!
 * The following errors detected:
 * • Unable to find |counter=
 * • Unable to find |archive=
 * • Causing the script to abort.
 * • Causing the script to abort.


 * Please, see the documentation for details.

– can this be suppressed please? It's very annoying to see this pop up and then dissappear on pages that don't even need archives, such as short pages, TFD logs, etc. - Evad37 &#91;talk] 03:37, 31 December 2014 (UTC) Your comment above from one hour ago seemed to indicate that you were not working on getting rid of the auto error popup, and weren't willing to, saying people should toggle it off if it really annoys them, and to otherwise wait til the error messages are no longer necessary. Of course I realize my revert removes your new features, however I'm more concerned when everyone who had installed something I made were suddenly getting an unnecessary and annoying popup that most of them were probably just confused by. It might be best if we kept our versions separate. People can manually install yours if they like; this way they won't suddenly get unexpected/confusing behavior. equazcion  →  16:48, 1 Jan 2015 (UTC)
 * , toggling the off using the link or accesskey when you are not using will suppress the messages. See User:Equazcion/OneClickArchiver for details on toggling. — &#123;&#123;U&#124;Technical 13&#125;&#125; (e • t • c) 03:54, 31 December 2014 (UTC)
 * But is there any way to have it on all the time for when I want it, but not show error messages for pages without archives - like it used be? Perhaps something I could add to my custom CSS? - Evad37 &#91;talk] 04:04, 31 December 2014 (UTC)
 * Not at the moment, and I've been stareing into a screen too long today. The purpose of that 5 second notice is to tell people why there are no `|Archive` linjs on the page instead of having links that didn't archive but instead yelled at you to say it couldn't archive.  I really don't like the idea of there being no explaination for a lack of links.  — &#123;&#123;U&#124;Technical 13&#125;&#125; (e • t • c) 04:13, 31 December 2014 (UTC)
 * I would really get rid of that error popup on load, Technical13. They won't be useful on the vast majority of page loads by most users, yet they show up all the time. Either get rid of it altogether or perhaps have a tiny permanent link somewhere saying "OneClickArchiver errors" that shows the popup when clicked, so people can troubleshoot when they need to. They shouldn't be showing up on every load. equazcion   →  10:48, 1 Jan 2015 (UTC)
 * I'm almost to a point where that error popup will be obsolete. The purpose is to tell users why there are no |Archive links since the script now checks for counter and page name before populating the page with the links.  I spent all day on the beta version of the script on December 31, 2014, and it now knows how to create new archives with the defined header or the default Aan, knows how to respect maxarchive size and increment the counter, and in debug beta mode, it can even archive sections on pages that don't have an archival template.  The next step is to get it to archive sections on pages like that and then apply a fully populated with defaults .  Once that is done, then the links to archive section will always be there and that error message will be obsolete.  There is now a much more detailed "on load" error message for those that need it by running the script in "debug=true" mode (same as the on site debug mode) and I'll be adding more details to that.  I'm debating logging to the console as well.  So, TL;DR on the error message, toggle it off if it really annoys, otherwise be patient and wait for the next release and it will be completely gone. :) — &#123;&#123;U&#124;Technical 13&#125;&#125; (e • t • c) 15:52, 1 January 2015 (UTC)
 * I'm aware of the purpose of the popups. That purpose is only served in a miniscule number of circumstances. It shouldn't be activated on every load, as most people looking at most talk pages will not be wondering why no archive links show up. I've removed the redirect for now from my code page, so users who installed prior to that will be running my old version, at least for now. I'll also be reverting the documentation page. You can host your version independently in your userspace if you like. equazcion   →  16:02, 1 Jan 2015 (UTC)
 * You do realize that does away with many functions that people asked for such as making sure the script clears the section it archived, being able to archive different header levels, being able to disable the archive links when they are not using it (to prevent accidental archiving). I've made that report "by request" with a link next to the toggle button as you requested. I'm sorry it wasn't quicker, I was only a 1/4 awake when I first responded at 5am this morning. — &#123;&#123;U&#124;Technical 13&#125;&#125; (e • t • c) 16:35, 1 January 2015 (UTC)
 * The documentation page should be clear about that then, or I expect there will be more complaints like below. — &#123;&#123;U&#124;Technical 13&#125;&#125; (e • t • c) 16:51, 1 January 2015 (UTC)
 * Once you post your documentation page let me know and I'll link to it from here. equazcion   →  16:53, 1 Jan 2015 (UTC)
 * ✅ — &#123;&#123;U&#124;Technical 13&#125;&#125; (e • t • c) 17:04, 1 January 2015 (UTC)

toggling
Thanks again for working on this. EEng (talk) 16:20, 1 January 2015 (UTC).
 * The installation wasn't as simple as copy this, click here, paste -- actually, I had to remove the old code, save despite a message saying "There are errors on this page/script", etc. Anyway...
 * Where is the toggle button?
 * I used alt-shift-O to toggle, which is fine I guess if I can remember it. But it seems tp me it should be off by default, not on by default. The whole point is prevent accidentally hitting ARCHIVE and if I have to remember to toggle off every time I arrive on a new page, that's useless.
 * Read the section above.  unilaterally decided to get rid of all the new features.  If you wish to ensure that the features are working for you, replace   with   to use my version directly, which has this feature. — &#123;&#123;U&#124;Technical 13&#125;&#125; (e • t • c) 16:35, 1 January 2015 (UTC)
 * What I've got now is the Technical13 version, and my comments above apply to that. Can't you technical guys move forward together without all this struggling? EEng (talk) 17:01, 1 January 2015 (UTC)
 * Your issue has nothing to do with our struggle, EEng. Just ignore us :) equazcion   →  17:05, 1 Jan 2015 (UTC)
 * I hope so. If I was in his shoes, I might be feeling like my idea was moving forward too fast and possibly in a direction I hadn't thought of. All of the changes I've been adding to the script would probably make me want to do have a knee jerk reaction and dump all the changes and put mine back. While I certainly respect his opinions on the script, many of my changes have been in response to what the community has asked for (although not always in exactly the way they asked for it). I hope that we can get past whatever this is quickly, and am fairly certain that we can move forward together. :) — &#123;&#123;U&#124;Technical 13&#125;&#125; (e • t • c) 17:10, 1 January 2015 (UTC)
 * ...but now that that's settled, EEng was asking questions about your version above, Tech13. He has yours installed and wants to know where your toggle button is, among other things. equazcion   →  17:14, 1 Jan 2015 (UTC)
 * The link to toggle is on your action bar next to `move` (if you are using vector, it's in the `more` dropdown). You don't have to toggle it for every page load.  It remembers what it's last state was.  If you turn it off on one page, and then navigate to other pages, it stays off until you turn it back on. The toggle button says "OCA - " and then what the current state is (on|off).  If it is on, and the script can't find the headers it needs, there is a link right next to that which says "|Archive" in the header.  Clicking on that will give you the popup.  You can get a much more detailed popup if needed by reloading the page with ?debug=true or &debug=true (if there is already a ? in the url).  Happy archiving! — &#123;&#123;U&#124;Technical 13&#125;&#125; (e • t • c) 17:22, 1 January 2015 (UTC)
 * OK, this is looking pretty good now. Some suggestions:
 * Instead of OCA - on and OCA - off how about OCA is on and OCA is off. I hate buttons which are ambiguous as to whether they're telling you the current state vs. telling you what state you'll get if you click them.
 * Can the initial state please be off?
 * Maybe instead of OCA how about OneClickArchive or 1ClickArchive or 1ClickArch if those will fit. Each time I see OCA I think Orca.
 * EEng (talk) 18:17, 1 January 2015 (UTC)
 * I can change it to "is" if that would be clearer (although if you hover on it, it can't be ambiguous as it says "Click to disable OneClickArchiver" or "Click to enable OneClickArchiver", I realize those texts can't be seen on touch devices). No biggie there.
 * Defaulting the script to off would make everyone who has never toggled the script before think the script was completely broken and that would be bad. Now that you've toggled the script once, the setting is entirely what you choose it to be.
 * I can change it to "1CA" if that would be better. People who use other skins don't get the dropdown for `more` and real estate in that bar can be slim, so making it anymore characters would be undesirable.  On a lighter note, is thinking Orca really a bad thing considering what it does? :p — &#123;&#123;U&#124;Technical 13&#125;&#125; (e • t • c) 19:13, 1 January 2015 (UTC)
 * After I toggle it off, if I reload the page it's back on again (Chrome). I doubt that's what you intend, is it? EEng (talk) 20:01, 1 January 2015 (UTC)
 * Wait a second. Just now, after saving this page, the dropdown say OCA - off (i.e. it's off) but in fact the Archive links are there on each section.Then I click to enable, the popup says "Now enabled", but the Archive links have disappeared! What's going on? EEng (talk) 20:02, 1 January 2015 (UTC)
 * But now I save the comment I just made, and the Archive links are back. EEng (talk) 20:04, 1 January 2015 (UTC)
 * I'll test in Chrome and see if I can replicate your issue, which version are you using? If you need help knowing, see . — &#123;&#123;U&#124;Technical 13&#125;&#125; (e • t • c) 21:24, 1 January 2015 (UTC)
 * Chrome Version 39.0.2171.95 m EEng (talk)
 * Chrome is refusing to do what it is told... I'm digging through the list at https://www.google.ca/search?as_q=chrome+jQuery+toggle+hide+show+css&as_epq=&as_oq=&as_eq=&as_nlo=&as_nhi=&lr=lang_en&cr=&as_qdr=m&as_sitesearch=&as_occt=any&safe=images&tbs=&as_filetype=&as_rights=&gws_rd=ssl and this seems to be a common issue with Chrome. All I can suggest at this time is to keep Chrome (41.0.2251.0 is latest beta, you're using the latest stable) updated to the latest version or use a different browser. I'll keep researching and see what I can find to workaround the issue for you. — &#123;&#123;U&#124;Technical 13&#125;&#125; (e • t • c) 03:13, 2 January 2015 (UTC)
 * Don't stress yourself. I can live without Orca for a while. Why don't we just see if Chrome fixes itself for us in due course? Use your talents on more pressing matters. EEng (talk) 03:50, 2 January 2015 (UTC)

A drive by....
...to say thank you for your work on the one click archiver. It's a great tool, and it is much appreciated. Atsme  &#9775; Consult  05:01, 8 January 2015 (UTC)

"No archive counter was detected"
Hi, I can't get the archiver to work on Talk:Emma Sulkowicz. It gives me an error message saying no archive counter was detected, but there is one. Hoping you can help. Best, Sarah (SV) (talk) 04:50, 11 February 2015 (UTC)
 * Hi . worked for me.  I suggest replacing:
 * with:
 * which has much better parameter detection and improved features such as more descriptive edit summaries and soon will respect maxarchivesize. —  11:34, 11 February 2015 (UTC)
 * Hi, thanks for the tip. I'll give that a try. Equazcion's has always worked for me, but there was something odd about the archiving bot set-up on Talk:Emma Sulkowicz. By the time I tried the archiver, I think the bot issue had been fixed, but maybe there was still something different about it. Sarah (SV) (talk) 19:02, 11 February 2015 (UTC)
 * , EQs version looks very specifically for  or   so   or   or   will make it fail.  My version doesn't care about spacing. ;) —   19:08, 11 February 2015 (UTC)
 * Okay, thank you! It's helpful to know why. Sarah (SV) (talk) 19:14, 11 February 2015 (UTC)
 * , EQs version looks very specifically for  or   so   or   or   will make it fail.  My version doesn't care about spacing. ;) —   19:08, 11 February 2015 (UTC)
 * Okay, thank you! It's helpful to know why. Sarah (SV) (talk) 19:14, 11 February 2015 (UTC)

Bug?
I've reported a possible bug with this tool, at Wikipedia talk:Administrators' noticeboard/Archive 12. Andy Mabbett ( Pigsonthewing ); Talk to Andy; Andy's edits 22:36, 24 April 2015 (UTC)

And when someone archives a section where the discussion isn't over?
Recently I have seen multiple instances where a contributor has archived subsections that address questions they personally don't think merit discussion, even when the discussion isn't over.


 * 1) If the page isn't unmanageably long, and is archived automatically, should contributors even be using OneClickArchiver?
 * 2) If you want to make an additional comment on a subsection someone chose to use OneClickArchiver to archive prematurely, can one paste the whole discussion back in, so your last comment makes sense?
 * 3) If someone restores a prematurely archived section, should they have manually trim it from the archive?
 * 4) Will the completed discussion be automatically archived, without redundant duplication in the archive, when the discussion is actually complete?

I don't think the instances of premature archiving I have noticed are conscious acts of POV-pushing, conscious acts of bad faith. They do, however, strike me as very unfortunate instances of unconscious POV-pushing. Geo Swan (talk) 22:26, 9 August 2020 (UTC)