Page MenuHomePhabricator

When an edit overrides an object lock, note it in the transaction record
ClosedPublic

Authored by epriestley on Feb 8 2019, 12:20 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 29, 2:53 PM
Unknown Object (File)
Sat, Apr 27, 1:07 PM
Unknown Object (File)
Wed, Apr 24, 10:50 PM
Unknown Object (File)
Wed, Apr 24, 5:27 PM
Unknown Object (File)
Sat, Apr 20, 4:38 PM
Unknown Object (File)
Sat, Apr 20, 4:34 PM
Unknown Object (File)
Fri, Apr 19, 5:11 PM
Unknown Object (File)
Mar 29 2024, 1:23 AM
Subscribers

Details

Summary

Ref T13244. See PHI1059. When you lock a task, users who can edit the task can currently override the lock by using "Edit Task" if they confirm that they want to do this.

Mark these edits with an emblem, similar to the "MFA" and "Silent" emblems, so it's clear that they may have bent the rules.

Also, make the "MFA" and "Silent" emblems more easily visible.

Test Plan

Edited a locked task, overrode the lock, got marked for it.

Screen Shot 2019-02-07 at 4.14.09 PM.png (157×317 px, 6 KB)

Diff Detail

Repository
rP Phabricator
Branch
lock1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 21905
Build 29904: Run Core Tests
Build 29903: arc lint + arc unit

Unit TestsFailed

TimeTest
291 msPhabricatorProjectCoreTestCase::Unknown Unit Message ("")
EXCEPTION (PhabricatorDataNotAttachedException): Attempting to access attached data on PhabricatorProject, but the data is not actually attached. Before accessing attachable data on an object, you must load and attach it. Data is normally attached by calling the corresponding needX() method on the Query class when the object is loaded. You can also call the corresponding attachX() method explicitly.
402 msPhabricatorProjectCoreTestCase::Unknown Unit Message ("")
EXCEPTION (PhabricatorDataNotAttachedException): Attempting to access attached data on PhabricatorProject, but the data is not actually attached. Before accessing attachable data on an object, you must load and attach it. Data is normally attached by calling the corresponding needX() method on the Query class when the object is loaded. You can also call the corresponding attachX() method explicitly.
1 msAlmanacNamesTestCase::Unknown Unit Message ("")
30 assertions passed.
0 msAlmanacServiceTypeTestCase::Unknown Unit Message ("")
1 assertion passed.
0 msAphrontHTTPSinkTestCase::Unknown Unit Message ("")
2 assertions passed.
View Full Test Results (2 Failed · 373 Passed)

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.Feb 8 2019, 12:22 AM
Harbormaster failed remote builds in B21905: Diff 48068!
  • Tailor the interaction check to avoid some complications in Projects unit tests, where membership is sometimes not fully loaded and we're editing on behalf of some random actor.

Wasn't there supposed to be an icon getting upstreamed in this revision? I can see the change to the celerity map but not the associated icon file.

src/applications/transactions/view/PhabricatorApplicationTransactionView.php
420

I'm pretty sure this was not what you meant, since $lock isn't used again in this function and I've never seen the "use assignment operation's side effect as a function argument" idiom in the Phabricator code base.

There's no new icon, just a new way to render them (as "emblems"). The celerity map change is just because the CSS changed.

($icon = ... was debugging code, though.)

This revision is now accepted and ready to land.Feb 8 2019, 10:21 PM
This revision was automatically updated to reflect the committed changes.