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, Apr 11, 8:32 AM
Unknown Object (File)
Sun, Mar 31, 12:41 PM
Unknown Object (File)
Fri, Mar 22, 10:29 PM
Unknown Object (File)
Mar 15 2024, 10:02 PM
Unknown Object (File)
Feb 14 2024, 3:02 AM
Unknown Object (File)
Feb 13 2024, 3:47 AM
Unknown Object (File)
Feb 5 2024, 10:44 PM
Unknown Object (File)
Feb 2 2024, 6:48 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.