Ref T9007
Details
Details
- Reviewers
epriestley - Group Reviewers
Blessed Reviewers - Maniphest Tasks
- T9007: Allow Badges to be ordered by quality
- Commits
- rP00425cac94d5: Converting badge quality property from color to an integer representation for…
Create badges, update quality, search by quality without change of functionality.
Diff Detail
Diff Detail
- Repository
- rP Phabricator
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
Some minor inline stuff but this looks broadly correct to me.
src/applications/badges/constants/PhabricatorBadgesQuality.php | ||
---|---|---|
16–18 | Weird indent | |
21–25 | Can this just be return $quality? Do we need this at all? I don't think anything calls it, and it can just be deleted. | |
src/applications/badges/editor/PhabricatorBadgesEditEngine.php | ||
90–91 | I think this should just be $object->getQuality() -- the map will be a map from 100 => "Uncommon" but the "value" of a select control is the key (100), not the string ("Uncommon"). I would expect this to cause a bug here:
| |
src/applications/badges/storage/PhabricatorBadgesBadge.php | ||
27–28 | Probably move this to PhabricatorBadgesQuality? |