Option to run all Tasks with only one Trigger + option to run a group of tasks starting with a specific character#183
Conversation
…with only one Trigger. The Tasks will run one by one in alphabetical order.
…s' Task-dropdown to provide an option to run all Tasks starting with the specific character. (First character can be any unicode character.) This allows simply grouping Tasks in order to be executed with only one Trigger.
|
I didnt have time to look at your PR's in depth yet, sorry for that. From a quick glance i can see two things:
I like 1. I dont really like 2. Would you be willing to furter refine this? I imagine instead of a dropdown, we need a dialog where each task gets a checkbox. For that to work, the Trigger-Object would need a list of tasks instead of a single field, (and a migration for the database, aswell as the exporter and importer) That way we dont get problems when users add new tasks that are now suddenly run because their name starts with the wrong letter. Thank you very much for your work! If you need help at any point, with any part, just ask, im glad to help! |
|
I love it! I just tested (after a lot of struggle thanks to my lack of general knowledge, hahah), got a debug build, and can say that this works really well. But I agree with newhinton, instead of having multiple "starting with a letter" entries, it would be more convenient to have a checkable list of tasks like this: Are you willing, @nabemono, to try to make it that way? It'd be a massive upgrade to the triggers module, and you seem to understand this piece of code better. |
|
Thank you for your feedback and sorry for the late reply. I must have missed the notification a while ago. A checklist is a good idea. But it may be that my skills will not be sufficient to implement this. I will check. |
If you need any help, let me know! |
I would like to contribute also the following commits to the fantastic Round-Sync:
Some information for first commit:
The new dropdown entry "All tasks" gets a Task Id which is negative (I used -1000L) and therefore can easily be recognized as not belonging to any task (as they always have positive Long values). When the SyncManager's queue() finds this Id, all Tasks are fetched from the Database, sorted by title, and enqueued to run one after one. (If one Task finishes with an error, the next Task will still be executed.)
Some information for second commit:
The grouping is realized with (again) negative Task Ids which is used to store the unicode character as a Long value.
Have a nice weekend.
Best regards
Fabian
Screenshot for "Run all tasks":

Screenshot for "Run all tasks starting with character ..." (automatically grouped first characters):
