-
Notifications
You must be signed in to change notification settings - Fork 470
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
UI-309 Update output for service:checks plan error #1178
Conversation
This will also allow us to determine the validation task name before we define the tasks so we don't have to change the task name after we start running. This required changing whitespace on many lines; review this commit with whitespace turned off.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -287,10 +287,6 @@ export default class ServiceCheck extends ProjectCommand { | |||
// Save the output because we're going to use it even if we throw. `runTasks` won't return | |||
// anything if we throw. | |||
Object.assign(taskOutput, ctx); | |||
|
|||
task.title = `Validated local schema against tag ${chalk.blue( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is still valuable for the tense change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call.
We could refactor the functions that generate the messages out and then unit test them. I think we'd be better served spending a few hours to put together e2e tests. I think if we treat this like JavaScript that we can test all the output with relative ease! |
We were calculating it when the task started running before; that was unncessary because we have all the information we need at load time.
For some reason Listr will show a few items more than once. This is not a regression.
90b7ea1
to
ccded7c
Compare
@evans I updated the tense change like you requested; that's the only change. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noice! Let's ship it
I agree with your assessment that end-2-end tests would be valuable. Do you think that it's worth tracking as a ticket in Jira?
I sure do |
Also fixes pluralization in the Listr status messages.
All errors thrown will cause Listr to look strange. I was unable to quickly diagnose where the error originates. It exists in prod also so I didn't try too hard to fix it.
TODO: