Page MenuHomePhabricator

Implement "Test Plan" as a CustomField
ClosedPublic

Authored by epriestley on Feb 20 2014, 6:54 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 12, 3:28 PM
Unknown Object (File)
Thu, Apr 11, 7:38 AM
Unknown Object (File)
Sun, Mar 31, 4:26 PM
Unknown Object (File)
Mar 19 2024, 7:40 AM
Unknown Object (File)
Mar 19 2024, 7:39 AM
Unknown Object (File)
Mar 19 2024, 7:11 AM
Unknown Object (File)
Mar 19 2024, 6:49 AM
Unknown Object (File)
Mar 15 2024, 8:45 AM
Subscribers

Details

Reviewers
btrahan
Maniphest Tasks
Restricted Maniphest Task
Commits
Restricted Diffusion Commit
rP05f2ab32d8cc: Implement "Test Plan" as a CustomField
Summary

Ref T3886. Moves some of the "required" logic to the base class ("DifferentialCoreField") so Title and Test Plan can share it.

Test Plan

Edited revisions using "pro" editor, saw test plan transactions.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

btrahan added inline comments.
src/applications/differential/customfield/DifferentialCoreCustomField.php
25–30

Nice. Surprised (sort of) PHP doesn't have something native to test this, and / or this hasn't made its way to libphutil yet. Mainly though I am writing this to validate relearning how come empty() is mostly useless.

Yeah, maybe we should write phempty() which means "empty, except for strengths with nonzero string length, like "0"", although sometimes I think we want to call whitespace-only strings "empty" too and other times we don't. Maybe we could always call them "empty" without consequence though -- I can't think of cases offhand where " " is a legitimate nonempty value.

except for strengths

"except for strings" haha