-
Notifications
You must be signed in to change notification settings - Fork 85
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
invocation_action_card: render expected outputs #6554
Conversation
In the case of |
A potentially nice addition to this would be if the ActionResult is available, we could (a) check if the expected output was created and display a ✅ or ❓ to indicate output available/missing. (b) display the file type (directory, file, symlink) of the expected output |
b2151c7
to
187494b
Compare
I feel like expected outputs is going to be the same as outputs 99%+ of the time. If that's the case, then we should just render expected outputs that didn't get created beneath our current list of outputs - maybe in red or something. |
@siggisim Oh I think changing this to "Missing Outputs" is a great idea! But in the case when the Action Result is not available, we should still display the Expected Outputs? |
I kind of like having this flat list of outputs - the outputs tree is a bit clunkier because you can't see all the outputs at a glance and instead have to keep clicking on each directory which has some latency. (edit: actually, is this right? do we render a nested tree starting from the root dir, or do we render each output path as a separate tree?) |
@bduffany currently we only render output directories as trees. Output files and output symlinks are rendered as flat list still. And for the directory, we do 1 tree per dir. So no clicking is required to see all the actual outputs. Only when you want to explore the contents of the output dirs, you can now click for more. This PR is more about the Expected Outputs. For example, we do render Actions which dont have attached Action Result. In such case, user might still be interested in reviewing what the build rules was expecting the Command to produce. If Action Result does exist, then there are some duplicated information between the Expected Outputs and actual (File, Dir, Symlink) Outputs like Siggi suggested. |
I think we should only show expected outputs in two cases:
If we show it in other cases, it's a little confusing why they're not clickable, why there are two sets, etc. |
187494b
to
5ff83c3
Compare
Preview This could be shown by not registering any Executor. Tested this by creating an invalid rule which declared an output file, but never created it. |
d8a43bb
to
6892ec5
Compare
Render the command's expected outputs so that users can compare them against the actual outputs in the ActionResult.
f0a791b
to
0c68380
Compare
Render the command's expected outputs so that users can compare them
against the actual outputs in the ActionResult.
Base on #6545