Page MenuHomePhabricator

Projects - merge create + edit interface code paths
ClosedPublic

Authored by btrahan on Oct 10 2014, 11:36 PM.
Tags
None
Referenced Files
F14743283: D10679.id25643.diff
Mon, Jan 20, 5:56 PM
Unknown Object (File)
Sun, Jan 19, 1:10 PM
Unknown Object (File)
Fri, Jan 17, 3:18 PM
Unknown Object (File)
Mon, Jan 13, 8:14 AM
Unknown Object (File)
Mon, Jan 6, 2:29 PM
Unknown Object (File)
Fri, Jan 3, 8:27 AM
Unknown Object (File)
Tue, Dec 31, 3:57 PM
Unknown Object (File)
Fri, Dec 27, 4:52 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.