Page MenuHomePhabricator

Projects - merge create + edit interface code paths
ClosedPublic

Authored by btrahan on Oct 10 2014, 11:36 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 19, 8:40 AM
Unknown Object (File)
Sun, Dec 15, 11:02 AM
Unknown Object (File)
Fri, Dec 13, 4:02 PM
Unknown Object (File)
Wed, Dec 11, 4:19 AM
Unknown Object (File)
Mon, Dec 9, 4:18 AM
Unknown Object (File)
Sat, Dec 7, 11:57 AM
Unknown Object (File)
Fri, Dec 6, 6:39 PM
Unknown Object (File)
Thu, Dec 5, 2:37 AM
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.