-
Notifications
You must be signed in to change notification settings - Fork 314
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
feat(model): Add the property Issue.affectedPath
#7963
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,7 @@ | |
|
||
package org.ossreviewtoolkit.model | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude | ||
import com.fasterxml.jackson.core.JsonGenerator | ||
import com.fasterxml.jackson.databind.SerializerProvider | ||
import com.fasterxml.jackson.databind.annotation.JsonSerialize | ||
|
@@ -53,7 +54,13 @@ data class Issue( | |
/** | ||
* The issue's severity. | ||
*/ | ||
val severity: Severity = Severity.ERROR | ||
val severity: Severity = Severity.ERROR, | ||
|
||
/** | ||
* The affected file or directory the issue is limited to, if any. | ||
*/ | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
val affectedPath: String? = null | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not so happy with the name. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Well, I'm reading it differently, like "What thing was affected by the timeout? The file, because it's contents were not properly scanned."
As mentioned on Slack I was against There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I remove myself / my preference from this discussion and will implement what you guys agree @mnonnenmacher @sschuberth. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If both of you are happy with the current name please just go ahead. |
||
) { | ||
override fun toString(): String { | ||
val time = if (timestamp == Instant.EPOCH) "Unknown time" else timestamp.toString() | ||
|
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.
Maybe "the issue is related to" or "that causes the issue"?