Page MenuHomePhabricator

Store Phriction max version on Document, improve editing rules for editing documents with drafts
ClosedPublic

Authored by epriestley on Aug 30 2018, 5:09 PM.
Tags
None
Referenced Files
F19934380: D19625.id46911.diff
Sat, Apr 11, 3:24 PM
F19916778: D19625.id46911.diff
Sat, Apr 4, 2:40 AM
F19887557: D19625.id46911.diff
Mon, Mar 23, 7:50 AM
F19887556: D19625.id46911.diff
Mon, Mar 23, 7:50 AM
F19812454: D19625.diff
Mar 4 2026, 5:06 AM
F19740046: D19625.id46912.diff
Feb 15 2026, 8:39 AM
F19082842: D19625.diff
Dec 2 2025, 12:26 PM
F19012623: D19625.id46912.diff
Nov 22 2025, 1:30 PM
Subscribers
Restricted Owners Package

Details

Summary

Ref T13077. We need to know the maximum version of a document in several cases, so denormalize it onto the Document object.

Then clean up some behaviors where we edit a document with, e.g., 7 versions but version 5 is currently published. For now, we: edit starting with version 7, save as version 8, and immediately publish the new version.

Test Plan
  • Ran migration.
  • Edited a draft page without hitting any weird version errors.
  • Checked database for sensible maxVersion values.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Owners added a subscriber: Restricted Owners Package.Aug 30 2018, 5:09 PM
This revision was not accepted when it landed; it landed in state Needs Review.Aug 30 2018, 5:12 PM
This revision was automatically updated to reflect the committed changes.