D17690: Proper removal of existing jobs by the Mosaic Tool

Eric Dejouhanet noreply at phabricator.kde.org
Wed Dec 19 15:46:47 GMT 2018


TallFurryMan created this revision.
TallFurryMan added a reviewer: mutlaqja.
Herald added a project: KDE Edu.
Herald added a subscriber: kde-edu.
TallFurryMan requested review of this revision.

REVISION SUMMARY
  When the Mosaic tool offers to delete existing jobs, it may incorrectly remove its own new jobs.
  Evaluation occurs at each job insertion, so new jobs may be reordered in the middle of existing jobs.
  Therefore, if requested to remove existing jobs, do this before adding mosaic jobs, not after.

TEST PLAN
  Create and add a scheduler job, then open the Mosaic Tool.
  Configure the Mosaic Tool, request it to create the new jobs.
  When asked whether to keep existing jobs, select "No".
  
  Repeat the test with:
  
  - No scheduler job selected
  - The new scheduler job selected
  - Option "Reorder jobs per altitude and priority" enabled
  
  Without the change, some new jobs may be deleted and not make it in the final list, while old ones may be kept.
  With the change, existing jobs are properly removed before adding new ones.

REPOSITORY
  R321 KStars

BRANCH
  bugfix__mosaic_job_removal (branched from master)

REVISION DETAIL
  https://phabricator.kde.org/D17690

AFFECTED FILES
  kstars/ekos/scheduler/scheduler.cpp

To: TallFurryMan, mutlaqja
Cc: kde-edu, narvaez, apol
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-edu/attachments/20181219/5a329914/attachment.html>


More information about the kde-edu mailing list