-
Notifications
You must be signed in to change notification settings - Fork 77
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
SLVS-1598 Use getEffectiveIssueDetails for issues with SLCore id instead of getEffectiveRuleDetails #5830
SLVS-1598 Use getEffectiveIssueDetails for issues with SLCore id instead of getEffectiveRuleDetails #5830
Conversation
…rableIssue from the corresponding error row from VS error list
…n issue from VS Error list.
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.
Some design comments, the logic looks fine
@@ -36,8 +34,7 @@ public record EffectiveRuleDetailsDto( | |||
VulnerabilityProbability? vulnerabilityProbability, | |||
[property: JsonConverter(typeof(EitherJsonConverter<RuleMonolithicDescriptionDto, RuleSplitDescriptionDto>))] | |||
Either<RuleMonolithicDescriptionDto, RuleSplitDescriptionDto> description, | |||
List<EffectiveRuleParamDto> @params); | |||
[JsonProperty("params")] List<EffectiveRuleParamDto> parameters) : IRuleDetails; |
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.
not sure if this looks better
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.
It is needed for the implemenation of the IRuleDetails.
The EffectiveIssueDetailsDto and EffectiveRuleDetailsDto are very similar, which is why this interface was introduced.
This also prevents code duplication of converting 99% similar Dtos to RuleInfo in the SLCoreRuleMetaDataProvider
Additionally, it is the same in the EffectiveIssueDetailsDto. I just made them consistent now
Quality Gate passedIssues Measures |
1fad501
into
feature/severity-modes
…ead of getEffectiveRuleDetails (#5830)
…ead of getEffectiveRuleDetails (#5830)
SLVS-1598