Page MenuHomePhabricator

Implement "Test Plan" as a CustomField
ClosedPublic

Authored by epriestley on Feb 20 2014, 6:54 PM.
Tags
None
Referenced Files
F15352556: D8285.id19709.diff
Mon, Mar 10, 5:02 PM
Unknown Object (File)
Sat, Mar 1, 2:37 PM
Unknown Object (File)
Mon, Feb 17, 1:28 PM
Unknown Object (File)
Jan 28 2025, 10:42 AM
Unknown Object (File)
Jan 25 2025, 3:07 PM
Unknown Object (File)
Jan 25 2025, 7:25 AM
Unknown Object (File)
Jan 24 2025, 10:19 AM
Unknown Object (File)
Jan 12 2025, 4:42 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