<table><tr><td style="">sitter created this revision.<br />sitter added reviewers: davidedmundson, mart.<br />sitter added a subscriber: antlarr.<br />Restricted Application added a project: Plasma.<br />Restricted Application added a subscriber: plasma-devel.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D3605" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>This reverts commit <a href="https://phabricator.kde.org/R128:a666712102be7ef4dd48202cc2411921fc4d392b" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;" rel="noreferrer">a666712102be7ef4dd48202cc2411921fc4d392b</a>.</p>
<p>This broke adding new users when not setting realname or adminflag (i.e.<br />
at present there is no way to create a !admin user at all).</p>
<p>Distributions, as we are still 3 weeks away from 5.8.5 I'd advise patching<br />
this to restore working behavior for the time being.</p>
<p>The problem in particular is that the model gobbles up setData requests to<br />
new rows and forwards them to newUserSetData which in turn caches them<br />
until username&realname&admin are present and only then forwards the call<br />
to accountsservice. By calling setData on-demand the three fields are not<br />
set unless they in fact all where "toggled" from their default.</p>
<p>I suggest that the noop decision be moved into the setData itself. In there<br />
it should be possible to accurately decide whether or not the data<br />
actually changed and accountsservice needs to be called.</p>
<p>(Ideally though IMO the collection in newUserSetData should be gotten<br />
rid of. I haven't had a close look, but creating the user with random<br />
data for everything but username and then manipulating it on the<br />
subsequent setData calls should be a more future-proof and reliable<br />
approach)</p>
<p>BUG: 373276<br />
CCMAIL: kde-distro-packagers@kde.org<br />
CCMAIL: larrosa@kde.org<br />
PHAB: <a href="https://phabricator.kde.org/D3102" class="remarkup-link" target="_blank" rel="noreferrer">https://phabricator.kde.org/D3102</a></p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R128 User Manager</div></div></div><br /><div><strong>BRANCH</strong><div><div>Plasma/5.8</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D3605" rel="noreferrer">https://phabricator.kde.org/D3605</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/accountinfo.cpp<br />
src/lib/accountmodel.cpp</div></div></div><br /><div><strong>EMAIL PREFERENCES</strong><div><a href="https://phabricator.kde.org/settings/panel/emailpreferences/" rel="noreferrer">https://phabricator.kde.org/settings/panel/emailpreferences/</a></div></div><br /><div><strong>To: </strong>sitter, davidedmundson, mart<br /><strong>Cc: </strong>antlarr, plasma-devel, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas<br /></div>