Page MenuHomePhabricator

Fix bin/accountadmin when not making changes
ClosedPublic

Authored by amckinley on Jan 21 2019, 8:35 PM.
Tags
None
Referenced Files
F13050682: D20009.id47772.diff
Fri, Apr 19, 3:07 AM
Unknown Object (File)
Wed, Apr 17, 11:26 AM
Unknown Object (File)
Mon, Apr 15, 7:36 AM
Unknown Object (File)
Wed, Apr 10, 5:44 PM
Unknown Object (File)
Thu, Apr 4, 1:36 AM
Unknown Object (File)
Sat, Mar 23, 5:45 PM
Unknown Object (File)
Feb 12 2024, 9:49 PM
Unknown Object (File)
Feb 7 2024, 12:35 AM
Subscribers

Details

Summary

If you go through the accountadmin flow and change nothing, you get an exception about the transaction not having any effect. Instead, let the applyTransactions call continue even on no effect.

Test Plan

Ran accountadmin without changing anything for an existing user. No longer got an exception about no-effect transactions.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Jan 21 2019, 8:38 PM

In theory, I'd like to wave a magic wand and get rid of this and scripts/user/add_user.php, but it would probably be a bit disruptive for some tiny subset of installs. When we build proper external account importers we might be better able to get away with it.

This revision was automatically updated to reflect the committed changes.