-
-
Notifications
You must be signed in to change notification settings - Fork 106
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
Apply --depth flag to --tasks-json flag output #57
Comments
@phated I'm willing to tackle this also, but I have a question. There are cases that I think |
However, it may be better that
|
@sttk thanks for working on this. All the information I have is at gulpjs/gulp#1033 - I'll cc @segrey here to give more insights on how he needs this to be for IDE integration. Thanks again. |
First, I've modified that sttk/gulp-cli#modify_for_tasks_json Modifications:
|
In addition, I've added modifications to support sttk/gulp-cli#modify_for_tasks_json_norcr But this program identifies series/parallel tasks by their labels |
@sttk at first thought, that should be fine. |
@sttk thanks for working on this. Seems |
@sttk does it make sense to just make everything non-recursive and change the color or use some other indicator (maybe @tylersticka could help us brainstorm that design). There are a few issues, including #1410 and #1033, that mention this problem. Also, I don't really like making a numerical flag take some other value. |
Boy, this is a tough problem to solve! I'm using @phated's example from the other issue as a point of reference. I initially took @phated's suggestion and tried playing with color, but the issue is that if you have two My next experiment was a play with what @sttk recommended. The only changes are that I like parentheses more than less-than/greater-than signs (there are already so many hard angles in this output), and I started playing with different box-drawing characters to differentiate parallel tasks from series:
This works fine, though I'm not sure the different drawing characters are communicating very much... the headings say everything on their own, really. Then I wondered if maybe I could eliminate those
I like the way this looks more, but it may be harder to read... I can't tell if it's clear what the series versus parallel groupings are. Would love to get some more opinions. |
It's not too clear what the parallel and series tasks are. Maybe |
@phated ...I might misunderstand "at first thought" in your saying. I received your saying that first thought, which is to apply current ...Sorry. My english skill is poor. |
Should I send a PR of #modify_for_tasks_json, or add a new option for non-recursive? |
@sttk sorry, I meant surfacing the branch flag would be fine. I'd like to figure out if we can make "non-recursive" the default and only behavior before we go about adding it as part of the flag. If we can communicate everything concisely in the |
@phated I think it makes sense to have the only behavior. Alternative idea could be to have |
@segrey |
@phated Oops, sure. Then it can be |
@segrey depth is currently a number and I think the number makes more sense because you can specify the depth you are looking for. |
@phated I'm okay with current behavior (when depth is a numerical flag). IIUC, you'd like to not mix number and string values (e.g. |
Hmm... I don't love that idea because I'm not sure how it would scale to series or parallel tasks that follow a series or parallel task. Would it concatenate, saying Here's a simpler idea... restoring the cyan coloring to child tasks, but retaining the gray for the |
@tylersticka The output for the above doesn't seem correct. "combined" has 3 children - "clean", "parallel" and "series" but no indicator of how those children are executing. I think the 2 things that need to be tackled are:
|
Thanks, @phated !
You're right, there would be a "series" heading at the beginning based on what I was referencing. Your suggestion makes more sense to me now.
Can you provide an example for me (or link to a pre-existing one in this thread)? I'm sure you're explaining it accurately but I feel like I'm still not understanding completely. (And if at any point my mockups are complicating more than illuminating things, just let me know! I promise I won't take offense. 😄 ) |
@tylersticka np, I am really happy to have someone with an eye for design helping on these problems. The best place to look for an example is the base issue at gulpjs/gulp#1033 - it shows how the output grows exponentially for some given gulpfiles |
@phated Just read through gulpjs/gulp#1033 again. It's a bit difficult for me to parse, but it sounds to me like what we'd like to do is visualize when a task is being called repeatedly within the same task... so if task If that's the case, I feel like coloring the duplicate tasks red would not be too strong. I'm sure my Gulp usage is less complicated than average, but if I accidentally had a task called multiple times I'd certainly want it visualized in a strong way. An example: I may have misread or only partially-understood the design ask here, so feel free to course-correct me. |
@phate Sorry, and thanks about I've created a sample program to hide series/parallel tasks in outputs of
|
I've reflected the addition of |
@sttk is this worth sending as a PR or are you planning to make some more changes? |
@phated I have no more changes. I've send the PR about this issue. |
In 1.2.0, @sttk added a
--depth
flag to gulp-cli; However, we didn't apply it to the--tasks-json
flag to reduce the exponential growth as described in gulpjs/gulp#1033@sttk If you or anyone else would like to expand on the functionality you added for
--depth
and apply it to--tasks-json
, that would be super helpful.The text was updated successfully, but these errors were encountered: