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)
Sun, Dec 22, 2:32 PM
Unknown Object (File)
Sun, Dec 22, 2:32 PM
Unknown Object (File)
Sun, Dec 22, 2:32 PM
Unknown Object (File)
Fri, Dec 6, 5:37 PM
Unknown Object (File)
Wed, Nov 27, 1:18 AM
Unknown Object (File)
Nov 25 2024, 3:22 PM
Unknown Object (File)
Nov 23 2024, 3:31 PM
Unknown Object (File)
Nov 23 2024, 9:01 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.