Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The two or three first template Revisions are unavailable (works fine after that) #74685

Open
happychait opened this issue Mar 21, 2023 · 22 comments
Labels
Customer Report Issues or PRs that were reported via Happiness. Previously known as "Happiness Request". [Feature] Full Site Editor The site editor. [Platform] Atomic [Platform] Simple [Pri] Normal Schedule for the next available opportuinity. Regression Issues/bugs caused by change in code. [Status] Core Fix Needed A fix within the Core WordPress or Gutenberg project is required to resolve this issue. [Status] Priority Review Triggered Quality squad has been notified of this issue in #dotcom-triage-alerts Triaged To be used when issues have been triaged. [Type] Bug When a feature is broken and / or not performing as intended

Comments

@happychait
Copy link

Quick summary

I don't see the template revisions in the Site Editor for the Archive and 404 templates.

Steps to reproduce

  1. Start in the Site Editor
  2. Edit the 404 template to customize it.
  3. Check for revisions on the right sidebar of the template, to revert to the default 404 template.

What you expected to happen

Revisions should be available as they are part of Gutenberg 15.2

What actually happened

No link to access template revisions.

Here are my testing videos showing I customized Archive and 404 templates in the Heiwa theme, but once you open the Site Editor and go in to the template editor, the revisions are unavailable.

CleanShot.2023-03-21.at.15.31.08.mp4
CleanShot.2023-03-21.at.16.01.11.mp4

Impact

One

Available workarounds?

No and the platform is unusable

Platform (Simple and/or Atomic)

Simple, Atomic

Logs or notes

No response

@happychait happychait added [Type] Bug When a feature is broken and / or not performing as intended User Report labels Mar 21, 2023
@github-actions github-actions bot added [Platform] Atomic [Platform] Simple [Pri] High Address as soon as possible after BLOCKER issues [Status] Priority Review Triggered Quality squad has been notified of this issue in #dotcom-triage-alerts labels Mar 21, 2023
@jordesign
Copy link
Contributor

I've triaged this and confirmed it happens on WPCOM Simple and Atomic sites - but not on a fresh Self Hosted Wordpress installation with GB 15.3 active.

@jordesign jordesign added the Triaged To be used when issues have been triaged. label Mar 21, 2023
@jordesign jordesign changed the title Template Revisions are unavailalbe. Template Revisions are unavailable Mar 21, 2023
@cometgrrl cometgrrl added the [Feature] Full Site Editor The site editor. label Mar 21, 2023
@BogdanUngureanu BogdanUngureanu self-assigned this Mar 29, 2023
@dsas
Copy link
Contributor

dsas commented Mar 30, 2023

I was playing around with template revisions yesterday and the revisions screen itself is currently pretty broken.

There's a GB issue open to fix it and an equivalent core bug marked as blocking WP 6.3.

There is a PR open with a core fix. Maybe we want get that in dotcom before deploying the fix for this (though we can still look into the bug and prepare a PR).


Dunno where you are with this @BogdanUngureanu but I came across the original PR when looking for the above and it says:

  • When merging into core, prepare_revision_links() should be merged with
  • WP_REST_Templates_Controller::prepare_links().

Might be a good thing to check!

@BogdanUngureanu
Copy link
Contributor

I was playing around with template revisions yesterday and the revisions screen itself is currently pretty broken.

There's a GB issue open to fix it and an equivalent core bug marked as blocking WP 6.3.

There is a PR open with a core fix. Maybe we want get that in dotcom before deploying the fix for this (though we can still look into the bug and prepare a PR).

Dunno where you are with this @BogdanUngureanu but I came across the original PR when looking for the above and it says:

  • When merging into core, prepare_revision_links() should be merged with
  • WP_REST_Templates_Controller::prepare_links().

Might be a good thing to check!

Thanks for the links! I think those issues are related to the revision page, not why the revision links are not showing in the sidebar.

I've made a few tests and it looks like on Atomic is working(ish); the revision link appears when the user makes two distinct changes on the page, which was an unexpected behavior (at least for me); meanwhile on Simple, I wasn't able to make the links appear at all.

I haven't done an in-depth technical review about why it's not working on Simple, but I think we should continue with that; maybe it's a core issue for multisites.

@dsas
Copy link
Contributor

dsas commented Mar 30, 2023

I think those issues are related to the revision page, not why the revision links are not showing in the sidebar.

Yep 100%, just trying to point out that the revision page is pretty broken for templates so I don't think we should ship a link to the revisions page until the revisions page is fixed.

Maybe it's a multi-site issue. Maybe it's an issue from how we sync code from core to wpcom (as the comment I quoted says there's some sync stuff from gb to core), maybe it's something completely different. IDK but I'm sure you'll soon find out!

@BogdanUngureanu
Copy link
Contributor

BogdanUngureanu commented Mar 30, 2023

Looks like the problem in WPCOM is because the wrong template controller is loaded. I've opened a diff that fixes the problem by adding an additional guard. D106565-code

@dsas
Copy link
Contributor

dsas commented Apr 4, 2023

@BogdanUngureanu has found the problem and a fix, but the link doesn't work in the iframed editor. Given this is hopefully being removed soon we'll hold any further work (p58i-eb7-p2#comment-57590).

@mmtr
Copy link
Member

mmtr commented Apr 20, 2023

The iframed editor removal happened yesterday, so this is probably not blocked anymore.

@dsas
Copy link
Contributor

dsas commented Apr 20, 2023

The revisions screen itself is still (in my opinion) pretty broke once you can reach it 🤔

@jordesign
Copy link
Contributor

Agreed - until it's actually possible to use the revisions screen without it being broken it seems lower priority to make it available. But it would be good to be ready to make it available as soon as it is working...

@BogdanUngureanu
Copy link
Contributor

Let's keep the fix on hold for now until the feature is stable in Core.

@dsas
Copy link
Contributor

dsas commented May 16, 2023

The feature has been fixed in a GB backport, so we can take this off-hold once GB15.9 is on dotcom

@kuropixel
Copy link

While template revisions were appearing for "Page" template on other block themes, seeing no revisions on "Yuga" theme.

@BogdanUngureanu
Copy link
Contributor

Deployed the fix on production with rWPGITf712d86b59216c3bb84abf228829c6ed59048891 with D106565-code

@daria2303
Copy link

Couldn't find the revisions of the templates again
https://github.com/Automattic/wp-calypso/assets/11535091/8427583c-fb8a-4aff-a5c9-4723e7065a0a | Cakely theme | Simple site

8190436-zd-a8c

Copy link

github-actions bot commented May 16, 2024

Support References

This comment is automatically generated. Please do not edit it.

  • p58i-eb7-p2#comment-57590
  • 8190436-zen
  • 8827733-zen

@github-actions github-actions bot added the Customer Report Issues or PRs that were reported via Happiness. Previously known as "Happiness Request". label May 16, 2024
@mrfoxtalbot mrfoxtalbot added the [Pri] BLOCKER Requires immediate attention. label May 27, 2024
@mrfoxtalbot mrfoxtalbot added Regression Issues/bugs caused by change in code. and removed [Pri] High Address as soon as possible after BLOCKER issues labels May 27, 2024
@mrfoxtalbot
Copy link

mrfoxtalbot commented May 27, 2024

@Automattic/t-rex, it looks like we have a regression here. I have added this to T-Rex's board (backlog column).

Could you take a look? Thank you!

CC: @BogdanUngureanu since you closed this last time. Thank you!

@mrfoxtalbot mrfoxtalbot reopened this May 27, 2024
@mrfoxtalbot mrfoxtalbot moved this from Needs Triage to In Triage in Automattic Prioritization: The One Board ™ May 27, 2024
@mrfoxtalbot mrfoxtalbot added [Pri] High Address as soon as possible after BLOCKER issues and removed [Pri] BLOCKER Requires immediate attention. labels May 27, 2024
@matticbot matticbot moved this from In Triage to Triaged in Automattic Prioritization: The One Board ™ May 27, 2024
@supernovia
Copy link
Contributor

Did we have a situation where you have to have so many revisions before revisions appear at all? We were able to see revisions on this user's site again. 8190436-zd-a8c

@BogdanUngureanu
Copy link
Contributor

Hey @daria2303, @mrfoxtalbot. I did some tests on Simple and a Jurassic site yesterday and noticed that the revisions still appear only after making 2-3 distinct changes.

I think it's a core issue.

@mrfoxtalbot
Copy link

You are absolutely right @BogdanUngureanu, it is coming from core: WordPress/gutenberg#49164

I am labeling this accordingly and adding it to the Cross-Repo watchlist.

@mrfoxtalbot mrfoxtalbot changed the title Template Revisions are unavailable The two or three first template Revisions are unavailable (works fine after that) May 29, 2024
@mrfoxtalbot mrfoxtalbot added the [Status] Core Fix Needed A fix within the Core WordPress or Gutenberg project is required to resolve this issue. label May 29, 2024
@candy02058912
Copy link
Contributor

Adjusting priority to Normal as per this comment: p1721286471977819/1720683311.692079-slack-C01UW7SB411

@candy02058912 candy02058912 moved this from Triaged to Needs Core/3rd Party Fix in Automattic Prioritization: The One Board ™ Jul 18, 2024
@candy02058912 candy02058912 added [Pri] Normal Schedule for the next available opportuinity. and removed [Pri] High Address as soon as possible after BLOCKER issues labels Jul 18, 2024
@github-project-automation github-project-automation bot moved this to Gutenberg / WP Core in HE Cross-repo Watchlist Aug 27, 2024
@mrfoxtalbot mrfoxtalbot moved this to To triage in Dotcom Core Fix Needed Sep 2, 2024
@philnick206
Copy link

Another report with confusion on this 8827733-zd-a8c

@BogdanUngureanu BogdanUngureanu removed their assignment Oct 25, 2024
@dsas
Copy link
Contributor

dsas commented Dec 2, 2024

Removing from the T-Rex backlog, the initial issue we fixed is very different to the current framing of the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Customer Report Issues or PRs that were reported via Happiness. Previously known as "Happiness Request". [Feature] Full Site Editor The site editor. [Platform] Atomic [Platform] Simple [Pri] Normal Schedule for the next available opportuinity. Regression Issues/bugs caused by change in code. [Status] Core Fix Needed A fix within the Core WordPress or Gutenberg project is required to resolve this issue. [Status] Priority Review Triggered Quality squad has been notified of this issue in #dotcom-triage-alerts Triaged To be used when issues have been triaged. [Type] Bug When a feature is broken and / or not performing as intended
Projects
Status: Gutenberg / WP Core
Development

No branches or pull requests