taskcluster/taskcluster-tools

deleting hook schedules is buggy

Closed this issue · 0 comments

@Callek and I have noticed the following behavior:

  • When we try to delete the only schedule from a hook, the trash button does nothing
  • When we create a 2nd schedule on a hook, the trash button for the first item deletes the newly created 2nd item
  • @Callek noticed that the trash button for the 2nd item deletes the first

I was thinking this might be either

  • permissions: I didn't create the hook that I was trying to delete the schedule for, or
  • index-starts-at-0 bug, so deleting the first item (bug: index 1) deletes the 2nd item
  • the final point, the trash button for the 2nd item deleting the 1st schedule, doesn't match up with this unless the indexes wrap

My workaround for this has been to copy the hook's task definition, save it elsewhere, and then delete it completely. We can then recreate the hook with the right schedule(s). This isn't the ideal workflow, so I'm hoping this is a relatively easy fix.