Tag editing priveleges gone wrong through tag scripts

Posted under Bugs & Features

I just recently learned about tag scripts, and have been happily using them to maintain my personal favgroups. However, as a platinum user I've been given privileges to edit tags on posts. While this is an interesting privilege to have, it poses an interesting problem.

Just yesterday I accidentally added a new tag called favgrouo:great_art_draft to a handful of posts. Of course, what I meant to do was add these posts to my favgroup called great_art_draft, but I unfortunately misspelled favgroup. I only realized I had done this after seeing the suggestion favgruou:great_art_draft in the tag search drop-down.

Is there any way we can add some sort of feature to turn off admin privileges so that tag scripting doesn't run the risk of adding tags whenever favgroup is misspelled?

Updated by user 540832

After reviewing my post change history, it seems like there's also a number of posts that I've added new or existing tags to, likely from mistaking the tag script entry box for the search entry box

josicret said:

However, as a platinum user I've been given privileges to edit tags on posts.

Tag editing isn’t a platinum privilege; everyone with an unrestricted account can edit posts. And I don’t think there’s a way to turn that off.

I think the only way to disable this would be for you to not use tag scripts, frankly. Tag scripting is just the same as editing a lot of posts directly, just more quickly. If you manually updated your favgroups by copy-pasting the text favgruou:great_art_draft to every post, the exact same problem would happen. I would recommend just checking the autocomplete on your tag script before committing to clicking any posts. (Worst case scenario if it's an egregiously typoed tag it'll probably show up in the New/Nuked/Repopulated daily report.)

Fun fact: I never use tag scripts at all. Why? Because I have a bad tendency to botch technical things and I can't even comprehend saved searches, so the risk posed by me using tag scripts when mass editing is way too high for my liking.

Yes, I do all my mass edits by hand. Yes, I use edit mode.

I'd die without using tag scripting but I always make sure to switch back to view mode when I'm done as to not make this very mistake op means.Whenever I'm doing mass gardening I take extra care with spelling too.

I have messed up a couple times though but, whilst a pain, it doesn't take that long to fix if you spot it early enough and I'm sure others would be willing to help if it's really bad.

Placeholder1996 said:

Tag editing isn’t a platinum privilege;

I suppose I've made an incorrect assumption :p

Blank_User said:

What exactly do you mean by “turn off admin privileges”?

Poor use of vocabulary. I think it would be useful to have a toggle on account settings that disables tag editing.

Ylimegirl said:

I think the only way to disable this would be for you to not use tag scripts, frankly

I'm not convinced. It may take some engineering/problem solving, and an undetermined amount of refactoring, but I believe it's possible. Of course whether or not it's worth it is up to the developers/site maintainers.

Knowledge_Seeker said:

Yes, I do all my mass edits by hand. Yes, I use edit mode.

This is what I used to do and it is painstaking. I was literally in the process of writing an argparse command line script that sends requests to update my favgroups for me. It was while doing research on how to do this that I discovered tag scripting in the first place.

To be honest I don't think it'd be a bad thing to make it more difficult to accidentally crate new tags. Danbooru treats unknown tags as new general tags, but requiring a category prefix would probably eliminate basically all accidental tag creation.

ANON_TOKYO said:

To be honest I don't think it'd be a bad thing to make it more difficult to accidentally crate new tags. Danbooru treats unknown tags as new general tags, but requiring a category prefix would probably eliminate basically all accidental tag creation.

Yes! My suggestion isn't just coming from a place of "oops I messed up," but also from a place of "this seems like a safety/api obscuring measure that should be built into the website."

Just tried adding a tag with a deliberate typo (and fixing it immediately afterwards, of course) to a post using a tag script. The message that appears when you create a new tag the normal way doesn’t show up. Might be a good idea to fix that at least.

ANON_TOKYO said:

To be honest I don't think it'd be a bad thing to make it more difficult to accidentally crate new tags. Danbooru treats unknown tags as new general tags, but requiring a category prefix would probably eliminate basically all accidental tag creation.

Common tag editing error for me on mobile: Accidentally misspell a tag while typing, and then when trying to fix it, accidentally hit the post button, creating a typoed tag (which is mega annoying to have to fix, as I'm never done tagging when this occurs). Having to prefix a tag like this with gen or warn me would be incredibly useful overall, as I do tend to post on mobile.

Updated by Knowledge Seeker

Knowledge_Seeker said:

Common tag editing error for me on mobile: Accidentally misspell a tag while typing, and then when trying to fix it, accidentally hit the post button, creating a typoed tag (which is mega annoying to have to fix, as I'm never done tagging when this occurs). Having to prefix a tag like this with gen or warn me would be incredibly useful overall, as I do tend to post on mobile.

There is a userscript to validate tags when uploading or editing: topic #14474

But it still warns if there is an empty artist tag with entry, although it can be solved by adding prefix.

1