Page MenuHomePhabricator

Prepare Projects schema for subprojects
ClosedPublic

Authored by epriestley on Dec 19 2015, 4:28 PM.
Tags
None
Referenced Files
F12830172: D14825.diff
Thu, Mar 28, 12:01 PM
Unknown Object (File)
Fri, Mar 22, 5:41 PM
Unknown Object (File)
Tue, Mar 19, 6:15 AM
Unknown Object (File)
Tue, Mar 5, 3:40 PM
Unknown Object (File)
Tue, Mar 5, 3:40 PM
Unknown Object (File)
Tue, Mar 5, 3:40 PM
Unknown Object (File)
Tue, Mar 5, 3:40 PM
Unknown Object (File)
Tue, Mar 5, 3:40 PM
Subscribers
None

Details

Reviewers
chad
Maniphest Tasks
T10010: Implement Subprojects
Commits
Restricted Diffusion Commit
rPaeae0e702830: Prepare Projects schema for subprojects
Summary

Ref T10010. This does some cleanups on the schema:

  • viewPolicy, editPolicy and joinPolicy were nullable, but should never be null. Set them to defaults if they're null, then make the column non-nullable.
  • Rename phrictionSlug to primarySlug and stop adding and removing trailing slashes from it.
  • Add new columns to support milestones and non-milestone subprojects.
  • Drop very old subprojectPHIDs column. This hasn't done anything in the UI for years and years, and isn't particularly realistic to migrate forward.

The new columns aren't reachable from the UI.

Test Plan
  • Applied patches.
  • Grepped for phrictionSlug.
  • Grepped for subprojectPHIDs.
  • Created tasks.
  • Edited tasks.
  • Verified existing tasks still had primary slugs.

Diff Detail

Repository
rP Phabricator
Branch
proj1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 9660
Build 11572: Run Core Tests
Build 11571: arc lint + arc unit

Event Timeline

epriestley retitled this revision from to Prepare Projects schema for subprojects.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
  • Make unit test use initializeNewProject() so it doesn't try to save a null value for viewPolicy.
chad edited edge metadata.
This revision is now accepted and ready to land.Dec 19 2015, 5:10 PM
This revision was automatically updated to reflect the committed changes.