-
Notifications
You must be signed in to change notification settings - Fork 34
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: add net new issues setting to settings page [IDE-598] #589
Conversation
e2eef2c
to
8a482cb
Compare
src/main/kotlin/io/snyk/plugin/settings/SnykProjectSettingsConfigurable.kt
Outdated
Show resolved
Hide resolved
88d09bb
to
cd86f7f
Compare
src/main/kotlin/io/snyk/plugin/settings/SnykProjectSettingsConfigurable.kt
Outdated
Show resolved
Hide resolved
cd86f7f
to
0b97f76
Compare
@@ -459,6 +463,61 @@ class SnykSettingsDialog( | |||
), | |||
) | |||
|
|||
val netNewIssuesPanel = JPanel(UIGridLayoutManager(2, 4, JBUI.emptyInsets(), -1, -1)) | |||
//netNewIssuesPanel.border = IdeBorderFactory.createTitledBorder("All issues Vs Net new issues") |
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.
Please remove the commented text
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.
Fixed
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.
Done!
@@ -756,5 +816,7 @@ class SnykSettingsDialog( | |||
|
|||
fun getCliReleaseChannel(): String = cliReleaseChannelDropDown.selectedItem as String | |||
|
|||
fun isNetNewIssuesSelected(): String = netNewIssuesDropDown.selectedItem as String |
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.
shouldn't that be getNetNewIssuesSelection()
? Is..
are usually returnin boolean values.
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.
Fixed.
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.
Fixed!
@@ -405,6 +406,7 @@ class LanguageServerWrapper( | |||
integrationVersion = pluginInfo.integrationVersion, | |||
authenticationMethod = authMethod, | |||
enableSnykOSSQuickFixCodeActions = "true", | |||
enableDeltaFindings = ps.isDeltaFindingsEnabled(), |
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.
This line is unnecessary, as the default is already set when instantiating the settings class. As the default is exactly the same, this line is redundant.
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.
Fixed!
Description
This PR adds a new setting on the settings page that allows the user to choose to show All issues as scan results or just the Net new issues from a delta scan.
Checklist
Screenshots / GIFs
Visuals that may help the reviewer. Please add screenshots for any UI change. GIFs are most welcome!