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

Use pretty name for notification type field and corrected missing severity #2230

Merged
merged 5 commits into from
Jul 5, 2024

Conversation

milan-deepfence
Copy link
Contributor

No description provided.

@milan-deepfence milan-deepfence requested a review from manV as a code owner July 1, 2024 05:12
@@ -90,7 +90,10 @@ export const isJiraIntegration = (integrationType: string) => {
};

export const isCloudComplianceNotification = (notificationType: string) => {
return notificationType && notificationType === 'CloudCompliance';
return (
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you double check? this condition should be like notificationType && (notificationType === 'CloudCompliance' || notificationType.toLowerCase() === 'cloud_compliance')

severity_or_check_type: (severitiesOrCheckTypes as string[]).map((sev) =>
sev.toLowerCase(),
) as UtilsReportFiltersSeverityOrCheckTypeEnum,
severity_or_check_type:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please double check this change

@milan-deepfence milan-deepfence merged commit 9bab213 into main Jul 5, 2024
4 of 5 checks passed
@milan-deepfence milan-deepfence deleted the ui-fix-notification branch July 5, 2024 12:12
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