14

This question has the badge "status-completed". But it still seems to be broken... can someone please explain how I can make an edit while there is another edit pending? I am neither able to make my edit, nor approve the pending edit. Do I just need more rep or is this still a bug?

I know about the "Improve Edit", do nothing, save workaround but it doesn't seem to be possible if I accidentally click "Approve". In my case, I spend a fair amount of time on Opencart questions, and due to the relative lack of activity it can take days or weeks for anything to happen to a pending edit. Since the question I linked above is tagged "status-completed" I'm assuming that there's actually a way through this but I haven't figured it out.

8
  • So your question is actually "How do I edit a question with a pending edit that I already Approved?" Commented Mar 13, 2017 at 22:31
  • @MikeMcCaughan - it's either that, or "What was implemented to solve the question I linked" - which in theory would be the same thing - but I'm not entirely sure what "status-complete" signifies in this case since I can't see said feature - at least not at my rep. Commented Mar 13, 2017 at 22:33
  • You can hack the URL, but that will reject the edit you voted to approve. Best bet is to choose improve edit before approving.
    – user4639281
    Commented Mar 13, 2017 at 22:38
  • How do I improve edit in this case? I don't have a time machine and it doesn't seem to be an option any more. And what was implemented in the "status-complete" question I linked above? How do I "hack the URL"? I just want to make an edit - it shouldn't be this hard and I shouldn't be detained for clicking the intuitive thing. If the goal is to prevent careless "approvers" then there should be a way to say "hey, I'm paying attention and I really mean it" Commented Mar 13, 2017 at 22:41
  • The question you're referencing concerned the ability to quickly approve edits; this one concerns editing after already hitting "approve". They're distinct questions, although the scenarios are similar.
    – Shog9
    Commented Mar 13, 2017 at 22:55
  • Ok @Shog9 - So what was done? Commented Mar 13, 2017 at 22:59
  • The addition of the "Improve Edit" button, @billynoah.
    – Shog9
    Commented Mar 13, 2017 at 23:14
  • Ok thanks. Since that option disappears once you've clicked "Approve", I think we need a better solution. Commented Mar 13, 2017 at 23:25

2 Answers 2

16

It is no longer possible to edit a post until the pending edit is fully approved or rejected

Not too long ago, Stack Overflow changed their system to make it such that the pending edit must be dealt with prior to permitting a new edit to be applied. Thus, if your review action was "Approve" or "Reject", and your review did not complete the review, then you will need to wait until the review is completed prior to being able to edit.

If you are wanting to edit a post which has a suggested edit pending, then you will need to use the "Improve Edit" or "Reject and Edit" review actions.

I have not yet checked to see if the restriction is fully in the front-end, or if there is back-end verification. In other words, it may be possible, but there is no longer a "normal" and supported method of doing so.

It used to be possible through any of the following methods, but none of them work at this point

If you have edit privileges (i.e. more than 2k reputation for questions and answers), you can easily force an edit by any of the following methods.

With all methods of forcing an edit, saving your changes will override the current pending edit, causing the currently pending edit to be rejected by the Community user as an edit conflict. (example1, example 2).

1. Use the edit links from the revisions page.

If you go to the revisions page (click on the "edited X ago" link at the bottom middle of the post, to the left of the post user's information, or go to https://stackoverflow.com/posts/[postID]/revisions). Each revision has an "edit" link which allows direct editing of the specified version.

2. Use the "Force edit suggested reviews" user script1

The "Force edit suggested reviews" is a user script which adds a "force edit" link to any question or answer which has a pending edit. This allows you to bypass reviewing the suggested edit and go directly to editing the question/answer.

The links look like:

Force edit suggested reviews

The source of the GIF is the above stackapps question.

3. Use a bookmarklet2

Prior to knowing that I should look on Stack Apps for user scripts, when I encountered this issue, I made a bookmarklet that forces an edit of the question or answer which is the current URL.

The following bookmarklet will open a new tab to edit the question or answer which is in the current URL:

javascript:void(window.open(location.href.replace(/\/q(?:uestions)?\/[^#]*#(\d+)$/,'/posts/$1/edit').replace(/\/(?:q(?:uestions)?|a(?:nswers)?)\//,'/posts/').replace(/([0-9]{4}[0-9]*)\/.*/,'$1/edit')))

The following bookmarklet does the same thing, but replaces the contents of the current tab with the editor:

javascript:void(location.href=location.href.replace(/\/q(?:uestions)?\/[^#]*#(\d+)$/,'/posts/$1/edit').replace(/\/(?:q(?:uestions)?|a(?:nswers)?)\//,'/posts/').replace(/([0-9]{4}[0-9]*)\/.*/,'$1/edit'))

4. Manually go to the post's edit URL

You can manually navigate to the URL which causes the post to be edited. That URL looks like:

https://stackoverflow.com/posts/[postID]/edit

Where [postID] is the question or answer ID. You can get this ID from either the current URL, or from the share link under the post. From the share link, it will be the first number in the URL provided.


  1. User scripts are JavaScript based scripts that you can install into your browser to perform tasks that you desire (e.g. changing what is displayed on specific sites, adding options to pages, etc.). They are similar to extensions, or add-ons, which you can add to your browser. However, the potential for what they can do is less than an extension. In general, they are focused on changing, or enhancing, what is displayed in web pages.

The code for user scripts is fully and easily viewable and editable through either of the two user script manager extensions mentioned below. There are other user script management extensions. They probably give you a similar level of transparency with respect to being able to view and edit the user scripts you install.

User scripts are usually installed through a browser extension. The most popular are Tampermonkey (Chrome, Firefox, Opera Next, Safari, Microsoft Edge, Dolphin Browser, UC Browser, etc.) and Greasemonkey (Firefox).

As Tiny Giant mentioned in comments, you can see the tag info for userscripts for more extensive information and links.

  1. Bookmarklets are installed by manually creating a bookmark in your browser and then editing it to have the "URL" (Chrome) or "Location" (Firefox) be the code shown here. It is activated by clicking on the bookmark.

Large portions of this answer were copied from my answer to: "It's annoying to do a day's worth of suggested edit reviews and then not be able to process pending edits on questions".

7
  • These are some darn nice workarounds!
    – theMayer
    Commented Feb 10, 2018 at 3:21
  • Useful information thank you. It's unfortunate that the user script doesn't appear to be hosted on say GitHub. Presumably it has to be copied and pasted in? Commented May 19, 2018 at 13:36
  • Additional workaround: Clicking CTRL+Edit (Windows, for reference it's the keybinding for opening a link in a new tab) seems to work too. Breaks inline editing, but it doesn't require copy-pasting or a userscript. Commented Sep 21, 2018 at 15:28
  • @Zoe Please, provide a bit more detail. I assumed that by "edit" you mean the "edit (1)" link that is below the post (on a question below the tags), where it normally says "edit". When there is a suggested edit, one you've never seen, or one you've approved or rejected, that link goes to the suggested edit review. No interaction I tried with that link, with userscripts disabled, resulted in anything other than going to the suggested edit, or having the suggested edit in a popup.
    – Makyen Mod
    Commented Sep 21, 2018 at 16:14
  • Weird, it seems to not work any more. It used to, I assumed it still did when I commented. Commented Sep 21, 2018 at 16:19
  • 2
    @Zoe Looks like now it definitely won't work. In fact, none of these will work anymore Commented Dec 29, 2020 at 11:48
  • Press F for the glory days of being able to forcibly override trash :') Commented Dec 29, 2020 at 11:52
10

"Click more slowly" is probably the sanest answer here - you can't go back and change a review, so think twice before submitting one. Of course, that doesn't help you after you've already clicked "Approve", but... For next time.

For now, just wait. Edits don't tend to sit in the queue all that long; even for Opencart the median time to resolution is about 45 minutes with the very worst case in the past 90 days being an edit that took 10 hours to be reviewed.

Probably also worth mentioning here that you can specifically opt to review suggested edits in a tag by setting your filter preferences (link at the top of review). You can also filter review tasks (without setting a preference) by use of the filter-tags querystring: https://stackoverflow.com/review/suggested-edits?filter-tags=opencart - feel free to pass that along to anyone you think would want to help review edits in the tag...

12
  • 1
    Thanks - I don't do review queue that often and when I do it's filtered for close votes on opencart tags - which is where I find I can add the most value. Decisions about edits are only something I address when i'm looking at a question and notice someone has proposed an edit. Since it's not something I'm in the habit of doing, I haven't conditioned my brain to do the exact opposite of what it looks like I should do which is click "Approve". Commented Mar 13, 2017 at 22:58
  • So.. how can i "hack the url" as someone mentioned? If I can't do something here and now I'm unlikely to come back and find it tomorrow - it's be nice to have a real option to take action in the present. Commented Mar 13, 2017 at 22:59
  • 1
    The edit URL for any post is /posts/<id>/edit, @billynoah. That'll take you to the full editor - if you submit an edit, it'll override any that are pending.
    – Shog9
    Commented Mar 13, 2017 at 23:15
  • I get "Your changes are identical to a pending edit" when I try to use that url. Am I expected to make some arbitrary change so it will be "different"? This all seems very hacky - not what I expect from SO Commented Mar 13, 2017 at 23:19
  • 1
    If you didn't have any other urgent changes to make, why would you bother doing any of this? You could've just gone and done something else; the edit would've gone through review normally.
    – Shog9
    Commented Mar 13, 2017 at 23:27
  • That's correct. I thought I could do the URL hack - push the existing edit, and THEN make my edit. Now I understand what you meant about overriding the pending edit - it ceases to exist but somehow it still stands in the way as being identical - which doesn't really make any sense either because once I make my edit the pending edit is gone forever regardless. Commented Mar 13, 2017 at 23:35
  • 2
    It does if you consider a more involved edit; imagine a large addition or substantial re-write - doing that "trick" would essentially be taking someone else's work without giving them credit. That's... discouraged.
    – Shog9
    Commented Mar 13, 2017 at 23:48
  • What I meant is that it doesn't make sense for it to be gone. There should be a way to commit the edit without erasing it and/or taking credit. I understand everything you're saying and while I appreciate the option of this hack it seems less than ideal for the reasons you just outlined. Commented Mar 13, 2017 at 23:51
  • It's not "gone" - you can still find it. But it's not a part of the post's history either.
    – Shog9
    Commented Mar 14, 2017 at 0:01
  • @Shog9 average reaction to substantial rewrite is reject - so do you suggest that letting reject happen for big edit is better than improve and forcefully accept valid change? Commented Mar 14, 2017 at 2:40
  • Yes, "click more slowly" is the best advice. Yet, I can't help but feel bad when a new user has improved their question (at my request) and I've delay it by clicking approve.
    – Yogi
    Commented Oct 23, 2023 at 7:29
  • 1
    I don't blame you, @Yogi - especially considering the median time to review is now more like 9 hours.
    – Shog9
    Commented Oct 23, 2023 at 14:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .