Skip to content

fix: WIP ignore Issue View Options when CCI disabled [IDE-899] #820

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

Closed
wants to merge 3 commits into from

Conversation

rrama
Copy link
Contributor

@rrama rrama commented Apr 3, 2025

Description

Before the IDE's IVOs would still be applied even if Code Consistent Ignores was not enabled in the org.
Now all issues will be returned if CCI is not enabled regardless of the IDE's settings.

Also this now uses the new GAF API for fetching feature flags.
We can figure out the configuration caching another day, for now it calls the API 5 times during the scan to fetch the feature flag.

Checklist

  • Tests added and all succeed
  • Linted
  • README.md updated, if user-facing
  • License file updated, if new 3rd-party dependency is introduced
  • N/A

rrama added 3 commits March 28, 2025 09:09
Before the IDE's IVOs would still be applied even if Code Consistent Ignores was not enabled in the org.
Now all issues will be returned if CCI is not enabled regardless of the IDE's settings.
Switch fully to using GAF for fetching feature flag statuses.
Plus update tests for using GAF's API.
@rrama rrama requested a review from a team as a code owner April 3, 2025 16:00
@rrama rrama marked this pull request as draft April 3, 2025 16:00
ff := snyk_api.FeatureFlagType(ffStr)
ffResponse, err := cmd.apiClient.FeatureFlagStatus(ff)
// No need for language server to enforce which feature flags exist or not.
enabled := config.CurrentConfig().Engine().GetConfiguration().GetBool(ffStr)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Doesn't work as it isn't the GAF internal name for the feature flag...

@rrama
Copy link
Contributor Author

rrama commented Apr 8, 2025

@rrama rrama closed this Apr 8, 2025
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.

1 participant