bugs in sync task name and schedule name
Closed this issue · 10 comments
Hi,
I pushed a patch fixing some bugs introduced by your last commit that broke some checks in Sync tasks
I also fixed that renaming sync tasks and schedules could be done using invalid chars, duplicates or empty names
Before:
- Schedule 1 has empty name !
- Two tasks with same name possible !
- Sync task 1 has empty name !
After:
- notify of errors in sync tasks
- do not allow saving existing tasks by editing them
- fix renaming of schedule and task names
Edit: fixed in last commit
To fix:
If some task names are invalid, we should set the sti.isSyncTaskError to true to disable AutoSync and sync selected
Currently, with my patch, I disable the sync button for tasks
But the below situation, Top Sync Button will AutoSync despite first task has no name at all (empty name)
I can hide it too, but not sure if hiding top sync button is enough (call by external scripts), so I think sti.isSyncTaskError should be set
I let you decide and fix that part as you think it is better: disable topsync button if invalid tasks selected or in Auto vs set the task sti.isSyncTaskError so that external scripts do not start the bad task name
Best regards
Commit: properly set Sync Tasks with invalid name as erroring:
This completes all the fixes properly, without needing to save to settings files
If task name is not valid (duplicate, invalid char...), sync task is now error and will not be started by Top Sync button (in AUto or Select modes), by schedules, external scripts...
Let me know if any bugs are present
Best regards
I am done
Will wait for merging before I continue on a small GUI aspect bugs
Best regards
Thank you.
We have applied your changes and made some modifications.
Best regards.
Thank you, I missed the meaning of "EDIT"
Best regards