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

feat: add net new issues setting to settings page [IDE-598] #589

Merged
merged 14 commits into from
Sep 6, 2024

Conversation

acke
Copy link
Contributor

@acke acke commented Aug 30, 2024

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.

image

Checklist

  • Tests added and all succeed
  • Linted
  • CHANGELOG.md updated
  • README.md updated, if user-facing

Screenshots / GIFs

Visuals that may help the reviewer. Please add screenshots for any UI change. GIFs are most welcome!

@acke acke force-pushed the feat/add_delta_dropbox branch from e2eef2c to 8a482cb Compare August 30, 2024 12:38
@acke acke marked this pull request as ready for review September 2, 2024 07:25
@acke acke requested a review from a team as a code owner September 2, 2024 07:25
@acke acke force-pushed the feat/add_delta_dropbox branch from 88d09bb to cd86f7f Compare September 2, 2024 10:05
CHANGELOG.md Outdated Show resolved Hide resolved
@acke acke force-pushed the feat/add_delta_dropbox branch from cd86f7f to 0b97f76 Compare September 3, 2024 08:17
@cat2608 cat2608 changed the title feat: add net new issues setting to settings page feat: add net new issues setting to settings page [IDE-598] Sep 3, 2024
@@ -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")
Copy link
Collaborator

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

Copy link
Contributor Author

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
Copy link
Collaborator

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

Copy link
Contributor Author

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(),
Copy link
Collaborator

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed!

@acke acke merged commit a530ebb into master Sep 6, 2024
9 checks passed
@acke acke deleted the feat/add_delta_dropbox branch September 6, 2024 08:25
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.

3 participants