<table><tr><td style="">TallFurryMan created this revision.<br />TallFurryMan added a reviewer: mutlaqja.<br />Herald added a project: KDE Edu.<br />Herald added a subscriber: kde-edu.<br />TallFurryMan 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/D17690">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>When the Mosaic tool offers to delete existing jobs, it may incorrectly remove its own new jobs.<br />
Evaluation occurs at each job insertion, so new jobs may be reordered in the middle of existing jobs.<br />
Therefore, if requested to remove existing jobs, do this before adding mosaic jobs, not after.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Create and add a scheduler job, then open the Mosaic Tool.<br />
Configure the Mosaic Tool, request it to create the new jobs.<br />
When asked whether to keep existing jobs, select "No".</p>

<p>Repeat the test with:</p>

<ul class="remarkup-list">
<li class="remarkup-list-item">No scheduler job selected</li>
<li class="remarkup-list-item">The new scheduler job selected</li>
<li class="remarkup-list-item">Option "Reorder jobs per altitude and priority" enabled</li>
</ul>

<p>Without the change, some new jobs may be deleted and not make it in the final list, while old ones may be kept.<br />
With the change, existing jobs are properly removed before adding new ones.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R321 KStars</div></div></div><br /><div><strong>BRANCH</strong><div><div>bugfix__mosaic_job_removal (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D17690">https://phabricator.kde.org/D17690</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>kstars/ekos/scheduler/scheduler.cpp</div></div></div><br /><div><strong>To: </strong>TallFurryMan, mutlaqja<br /><strong>Cc: </strong>kde-edu, narvaez, apol<br /></div>