Page MenuHomePhabricator

After saving of Structured Data changes, HotCat edits are not possible without previous manual page refresh
Closed, InvalidPublicBUG REPORT

Description

List of steps to reproduce (step by step, including full links if applicable):

  • go to Commons (HotCat.js tool needs to be activated)
  • go to any file page and click to the "Structured data" bookmark
  • edit any entry of Structured data, eg. "depicts"
  • click to "Public changes" to save the changes
  • (click back to the "File information" bookmark or remain in the "Structured data" section)
  • try to add, remove or change any category using HotCat

What happens?:

  • the HotCat category change is not succesfull, instead of it, the page "View source for File:xxx" is displayed with the error message: "You cannot edit the wikitext on this revision of the page, as there have been changes to the data on the page since this revision that are not wikitext-based. To restore this revision click here." No link to confirm (refresh) the current SD revision and retain the HotCat changes made is available - the only available link reverts the last SD changes.
  • to enable a HotCat edit, the page needs to be manually refreshed and all the unsuccesfull HotCat changes need to be done again

What should have happened instead?:

  • after saving (publish) any structured data changes, the page should be prepared to whatever next actions, including HotCat category changes - HotCat edits should be succesfull without the need of additional manual page refresh

Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc:

  • happened at desktop computer in Mozilla Firefox browser
  • the problem can affect also some other actions (probably clickable scripts which should work without direct edit of the source code)

Event Timeline

SJu updated the task description. (Show Details)

Is there anything printed in the web browser's error console when this happens?
@SJu: Is this really an issue in any server-side code and not in HotCat itself? Reminds me of VE's T103285#1521229 and T103285#2113318

This smells to me like HotCat isn't picking up the new revision id when the mediainfo slot on the page has been updated, and therefore a HotCat bug rather than a MediaWiki bug

Cparle claimed this task.

@SJu we think it's a HotCat bug similar to the others linked, so closing

Aklapper changed the task status from Resolved to Invalid.Aug 30 2021, 4:50 PM
Aklapper removed Cparle as the assignee of this task.