Page MenuHomePhabricator

Fix bin/accountadmin when not making changes
ClosedPublic

Authored by amckinley on Jan 21 2019, 8:35 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 23, 3:31 PM
Unknown Object (File)
Sat, Nov 23, 9:01 AM
Unknown Object (File)
Mon, Nov 18, 6:32 PM
Unknown Object (File)
Thu, Nov 14, 10:05 PM
Unknown Object (File)
Mon, Nov 11, 5:37 AM
Unknown Object (File)
Sun, Nov 10, 3:24 AM
Unknown Object (File)
Thu, Nov 7, 7:28 AM
Unknown Object (File)
Oct 22 2024, 11:55 PM
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.