-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add DebugCommand to display task execution order #1491
Add DebugCommand to display task execution order #1491
Conversation
could you create a screen/send a textual representation of the output one can expect for a non trivial command? |
@staabm it will output as follows:
Or:
|
What about digging it into No need for extra command. Also description can be displayed.
Also I think tree view will be much more informative. |
random idea: would it make sense to have a separate column with is the "index" column actual useful? A tree view indeed could make it more readale |
imo a tree view would be weird for before tasks, how would you display them? I thought about it, before I made it into the table display. But I wasn't sure if the tree-view would actually provide more information And in the end the whole task tree/hierarchy is pretty flat. If I viewed it correctly in the ScriptManager::getTasks, tasks which are inserted by an @staabm index might be not needed, correct. For me it gave me a little more explicit indication of the order As a side step, I did notice that the befores are stacked, so:
would result in:
but
would result in:
Not sure this is intended behavior, but it was something I noticed and kinda felt a little inconsistent (this was why I introduced the index, to make the order of execution even more explicit) |
Flatten. Result is always flat: Task[] to execute. but we loose group task information. Will be cool to see it as tree. In case of deploy there is only one root |
|
I understand what you are trying to display, @antonmedv But for instance the following:
What is the order of execution?
So it's as shown, but that would mean the But then this bit isn't the same:
That would suggest the
And if that's the case, I don't think this tree view works as intended. Maybe something more like this:
So you keep the order of execution (just top to bottom) and you have the tree view of what tasks are subtasks of other parents. And you see whats added from what before. We could also just make it twofold. Normally it will just print:
and if you add btw, in my initial commit (dd29e8) I kinda did this |
I like this:
|
…tructure This reverts commit db97551.
It now renders as follows:
|
Fix issue order (by request of Scrutinizer)
Got merged! Hurray! |
* Add DebugCommand * Adjust display of debug to table layout * Update changelog * Update CHANGELOG.md * Fix StyleCI error * Revert "Adjust display of debug to table layout" and setup new tree structure This reverts commit db97551. * Render tree view (the basic) * Tweak rendering of tree * Add depth for groups and pipe symbol * Fix rendering of last element * Display postfix for groups * Fix issue with display of after-task after last grouped task * Fix CS * Fix StyleCI issues * Add doc-comments * Update CHANGELOG.md Fix issue order (by request of Scrutinizer)
Not sure if this was the correct route, to create a command for it. I noticed (after creating the command) that some other utilities (like the
config/hosts.php
) were just written as tasks.If I need to rewrite this - let me know.