Page MenuHomePhabricator

The publish button should not be disabled when the initial content is given by oldid
Closed, ResolvedPublic

Description

Description

When opening an edit page directly loading old content with oldid, the loaded content is different from the current version.

However, the "Publish" button is only activated when there's a difference from the "initial content" loaded in the site state.

What to do when the initial content differs from the current persisted content?

Reproduce

Desired behavior/Acceptance criteria

  • ...

Devices and Design (URLs or screenshots)

  • Desktop: ...
  • Small screens/mobile: ...

Completion checklist

Event Timeline

I don't agree with marking this task as high priority/ready.

This is not a bug, but a different feature that has a number of side effects and needs careful consideration from design and engineering. I'd request we move this back to "Needs product/design".

gengh renamed this task from The publish button should not be disabled if the content is different from the current version to The publish button should not be disabled when the initial content is given by oldid.Sep 4 2023, 10:51 AM
gengh updated the task description. (Show Details)

After discussion with @Jdforrester-WMF we agreed to prioritize the button activation for now, and in the future add a message informing that the version seen is an old one.
We can add another condition to the Publish button activation that directly sets it as active if page is old version.

Change 1007459 had a related patch set uploaded (by Ecarg; author: Ecarg):

[mediawiki/extensions/WikiLambda@master] Ability to directly 'publish' an old edit

https://gerrit.wikimedia.org/r/1007459

Change 1007459 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Ability to directly 'publish' an old edit

https://gerrit.wikimedia.org/r/1007459

Jdforrester-WMF changed the task status from Open to In Progress.Mar 5 2024, 2:18 PM
Jdforrester-WMF assigned this task to ecarg.
Jdforrester-WMF moved this task from Backlog to To deploy on the Abstract Wikipedia team board.