<table><tr><td style="">ngraham created this revision.<br />ngraham added reviewers: tcanabrava, Plasma.<br />Herald added a project: Plasma.<br />Herald added a subscriber: plasma-devel.<br />ngraham requested review of this revision.
</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/D25280">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>The only reason why a user would want to entirely disable file indexing is because they<br />
don't want their files indexed. This implies that if their files are already indexed,<br />
they would like the index deleted. Ergo, disabling indexing in the KCM should delete<br />
the index too.</p>
<p>This patch does that. The <tt style="background: #ebebeb; font-size: 13px;">balooctl</tt> command-line tool offers more granular options for<br />
disabling without deleting the index, but those should be considered expert options for<br />
power users who know what they're doing. For users using the KCM, deleting the index<br />
after disabling indexing makes the most sense.</p>
<p>BUG: 414077<br />
FIXED-IN: 5.18.0</p></div></div><br /><div><strong>TEST PLAN</strong><div><ol class="remarkup-list">
<li class="remarkup-list-item">Run <tt style="background: #ebebeb; font-size: 13px;">balooctl monitor</tt></li>
<li class="remarkup-list-item">Disable indexing in the KCM</li>
<li class="remarkup-list-item">See that indexing has been turned off and the database deleted</li>
<li class="remarkup-list-item">Re-enable indexing in the KCM</li>
<li class="remarkup-list-item">See that files are being indexed as with a first run.</li>
</ol></div></div><br /><div><strong>REPOSITORY</strong><div><div>R119 Plasma Desktop</div></div></div><br /><div><strong>BRANCH</strong><div><div>purge-index-when-disabling (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D25280">https://phabricator.kde.org/D25280</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>kcms/baloo/kcm.cpp</div></div></div><br /><div><strong>To: </strong>ngraham, tcanabrava, Plasma<br /><strong>Cc: </strong>plasma-devel, LeGast00n, The-Feren-OS-Dev, jraleigh, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart<br /></div>