Page MenuHomePhabricator

Projects - merge create + edit interface code paths
ClosedPublic

Authored by btrahan on Oct 10 2014, 11:36 PM.
Tags
None
Referenced Files
F14495322: D10679.id25644.diff
Fri, Jan 3, 8:27 AM
Unknown Object (File)
Tue, Dec 31, 3:57 PM
Unknown Object (File)
Fri, Dec 27, 4:52 PM
Unknown Object (File)
Wed, Dec 25, 5:27 PM
Unknown Object (File)
Sun, Dec 22, 5:34 PM
Unknown Object (File)
Sun, Dec 22, 12:20 PM
Unknown Object (File)
Thu, Dec 19, 8:40 AM
Unknown Object (File)
Sun, Dec 15, 11:02 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.