Homec4science

Store parents of forked pastes, and list child pastes if there are any.

Authored by Ricky Elrod <ricky@elrod.me> on Jul 15 2011, 22:49.

Description

Store parents of forked pastes, and list child pastes if there are any.

Summary:
Added a 'parent' field which stores a PHID of another paste. If it is not NULL show a list of children pastes on view.
Also did some misc. refactoring to clean up the code a bit, specifically in the Create controller.

Test Plan:

  • Checked old pastes, they were not affected.
  • Added a paste, successfully.
  • Forked it, successfully.
  • Went to the original paste, saw the child paste listed.
  • Forked it again, saw the new one added to the list.

Reviewers:
epriestley

CC:

Differential Revision: 672

Details

Committed
Ricky Elrod <ricky@elrod.me>Jul 16 2011, 00:42
Pushed
aubortJan 31 2017, 17:16
Parents
rPHffb69c3c97af: Add a cancel button to Phriction's edit interface
Branches
Unknown
Tags
Unknown

Event Timeline

Ricky Elrod <ricky@elrod.me> committed rPH95d6e0a3c49a: Store parents of forked pastes, and list child pastes if there are any. (authored by Ricky Elrod <ricky@elrod.me>).Jul 16 2011, 00:42