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)
Thu, Jan 23, 6:04 PM
Unknown Object (File)
Wed, Jan 22, 6:32 PM
Unknown Object (File)
Tue, Jan 21, 11:07 AM
Unknown Object (File)
Tue, Dec 31, 12:42 PM
Unknown Object (File)
Dec 27 2024, 4:34 PM
Unknown Object (File)
Dec 22 2024, 2:32 PM
Unknown Object (File)
Dec 22 2024, 2:32 PM
Unknown Object (File)
Dec 22 2024, 2:32 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.