-
Notifications
You must be signed in to change notification settings - Fork 66
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
serviceconnector: Add children to validate activity log #1557
Conversation
contextValue: `validateResult-${detail.name}`, | ||
label: nonNullValue(detail.name), | ||
iconPath: new ThemeIcon('error', new ThemeColor('testing.iconFailed')) | ||
})); | ||
throw new Error(detail.description); |
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.
Although one validation failed, I think it's best to still show all other failed/passed validations as activity children. Maybe throw the error after all the children are added?
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.
The portal currently only shows the one failure if the validation errors but I think it would be better to show all the checks.
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.
Actually tested this out and for some reason when there is an error the validation result only contains the failed check. So moving the error after all the children doesn't change anything.
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'm not exactly sure why that happens. But that's fine
linkerName?: string; | ||
|
||
//Validation | ||
validationResult?: ValidationResultItem[] |
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.
Where is this set or used?
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.
Was using it in a previous implementation but will remove since it is no longer used.
Here is how the validation success state looks:
Here is how the error state looks: