bluesky / bluesky-queueserver

Server for queueing plans
https://blueskyproject.io/bluesky-queueserver/
BSD 3-Clause "New" or "Revised" License
12 stars 22 forks source link

Fix handling of negative indices by 'queue_item_add' API #217

Closed dmgav closed 2 years ago

dmgav commented 2 years ago

Changes to how negative indices passed to queue_item_add API are handled. Previously, pos=-1 would add the new element to the position previous to last. Now the new element will be added to the back of the queue if pos=-1, to the position previous to last if pos=-2 etc. Now pos specifies the position of the added element in cases of both positive and negative indices. The changes will not break existing code unless negative indices are used to add new items in the queue.

Summary of Changes for Release Notes

Fixed

Added

Changed

Removed

How Has This Been Tested?