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
- Branch
- badgesquality
- Lint
Lint Passed - Unit
Tests Passed - Build Status
Buildable 11357 Build 14136: Run Core Tests Build 14135: arc lint + arc unit
Event Timeline
Comment Actions
Some minor inline stuff but this looks broadly correct to me.
src/applications/badges/constants/PhabricatorBadgesQuality.php | ||
---|---|---|
15–17 | Weird indent | |
20–24 | 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 | ||
28 | Probably move this to PhabricatorBadgesQuality? |