Page MenuHomePhabricator

Projects - merge create + edit interface code paths
ClosedPublic

Authored by btrahan on Oct 10 2014, 11:36 PM.
Tags
None
Referenced Files
F15418586: D10679.id25643.diff
Fri, Mar 21, 12:17 AM
F15409331: D10679.id25644.diff
Wed, Mar 19, 4:14 AM
F15407957: D10679.id25643.diff
Tue, Mar 18, 8:25 PM
F15403149: D10679.id25644.diff
Tue, Mar 18, 2:00 AM
F15402842: D10679.id.diff
Tue, Mar 18, 12:37 AM
F15402106: D10679.id25642.diff
Mon, Mar 17, 8:39 PM
F15400964: D10679.id25643.diff
Mon, Mar 17, 3:00 PM
F15397471: D10679.diff
Sun, Mar 16, 8:25 PM
Subscribers
Tokens
"Grey Medal" token, awarded by chad.

Details

Summary

Fixes T6145, T4016.

Filed T6287 and T6288 for some polish on this.

Test Plan

Made new projects from Maniphest - great success. Made new projects from project / create - also great success.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

btrahan retitled this revision from to Projects - merge create + edit interface code paths.
btrahan updated this object.
btrahan edited the test plan for this revision. (Show Details)
btrahan added reviewers: epriestley, chad.
btrahan added inline comments.
src/infrastructure/customfield/field/PhabricatorCustomFieldList.php
86–93 ↗(On Diff #25642)

This was pretty dodgy but an interface seemed a bit hardcore to me. If the interface route, where would I put that bad boy?

epriestley edited edge metadata.
epriestley added inline comments.
src/infrastructure/customfield/field/PhabricatorCustomFieldList.php
86–93 ↗(On Diff #25642)

You can use a $form on both codepaths, and then turn it into a LayoutView with $form->buildLayoutView() at the last second if it's going into a dialog.

This revision is now accepted and ready to land.Oct 10 2014, 11:41 PM

Possibly we should have something like this on dialogs:

public function appendForm(AphrontFormView $form) {
  return $this->appendChild($form->buildLayoutView());
}
btrahan edited edge metadata.

remove jankiness and instead use AphrontFormView consistently, using new helper method $dialog->appendForm as appropos

This revision was automatically updated to reflect the committed changes.