Page MenuHomePhorge

Add CSS class to object handle if user object is system agent
Needs ReviewPublic

Authored by aklapper on Fri, May 2, 23:53.

Details

Summary

Set the base for future customization to easier differentiate between human actors and machines.

Test Plan

Inspect the CSS of a bot account handle and a user account handle in a Maniphest task. See that <a> has an additional phui-system-agent class.

Diff Detail

Repository
rP Phorge
Branch
T16051 (branched from master)
Lint
Lint Errors
SeverityLocationCodeMessage
Errorsrc/applications/phid/PhabricatorObjectHandle.php:28XHP1PHP Syntax Error!
Unit
Test Failures
Build Status
Buildable 1922
Build 1922: arc lint + arc unit

Unit TestsFailed

TimeTest
2,378 msPhabricatorLibraryTestCase::testLibraryMap
EXCEPTION (XHPASTSyntaxErrorException): applications/phid/PhabricatorObjectHandle.php: XHPAST Parse Error: syntax error, unexpected T_STRING, expecting T_VARIABLE on line 28 #0 /var/www/html/phorge/arcanist/src/moduleutils/PhutilLibraryMapBuilder.php(63): PhutilLibraryMapBuilder->analyzeLibrary() #1 /var/www/html/phorge/arcanist/src/__tests__/PhutilLibraryTestCase.php(29): PhutilLibraryMapBuilder->buildMap()
604 msPhabricatorCelerityTestCase::testCelerityMaps
1 assertion passed.
1,159 msPhabricatorConduitTestCase::testConduitMethods
1 assertion passed.
625 msPhabricatorInfrastructureTestCase::testApplicationsInstalled
1 assertion passed.
515 msPhabricatorInfrastructureTestCase::testRejectMySQLNonUTF8Queries
1 assertion passed.
View Full Test Results (1 Failed · 6 Passed)

Event Timeline

aklapper requested review of this revision.Fri, May 2, 23:53

Don't bool with the bool otherwise it bools

always set a bool so we have an explicit value and don't just fallback to "false"

Uhm... can we sleep with the very possible possibility of having "User Bot" possibly everywhere? 🌈

having "User Bot" possibly everywhere? 🌈

No. Because consistency.