Skip to content
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

Merged
merged 5 commits into from
Aug 15, 2023

Conversation

motm32
Copy link
Contributor

@motm32 motm32 commented Aug 14, 2023

Here is how the validation success state looks:
image

Here is how the error state looks:
image

@motm32 motm32 requested a review from a team as a code owner August 14, 2023 23:55
contextValue: `validateResult-${detail.name}`,
label: nonNullValue(detail.name),
iconPath: new ThemeIcon('error', new ThemeColor('testing.iconFailed'))
}));
throw new Error(detail.description);
Copy link
Member

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?

Copy link
Contributor Author

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.

Copy link
Contributor Author

@motm32 motm32 Aug 15, 2023

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.

Copy link
Member

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[]
Copy link
Member

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?

Copy link
Contributor Author

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.

@motm32 motm32 merged commit a817727 into main Aug 15, 2023
4 checks passed
@motm32 motm32 deleted the meganmott/activityLog branch August 15, 2023 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants