-
Notifications
You must be signed in to change notification settings - Fork 30
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: fetch feature flag for Code Consistent Ignores [IDE-274] #455
Merged
Merged
Changes from 10 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
8b53b61
feat: add Snyk Code feature flag to settings and configuration
cat2608 068628d
feat: scaffolding Code panel rendering based on FF
cat2608 23fbe8e
fix: remove unnecessary view for migration
cat2608 657afaf
feat: add `details` field to `CodeIssueData`
cat2608 6716400
feat: add new webview provider for feature flag-driven panel
cat2608 187b456
feat: handle feature flag in config file to react to changes in the orgs
cat2608 b4dbf12
chore: revert providers initialisation order
cat2608 fb03aa5
revert: addition feature preview in settings and configuration
cat2608 042d086
refactor: remove unnecessary `CodeDetailPanelProvider`
cat2608 e008f35
Merge remote-tracking branch 'origin/main' into feat/add-ff-for-code-…
cat2608 c063763
fix: remove unnecessary var declaration
cat2608 cf8ff1a
refactor: move feature flag fetching to `ConfigurationWatcher`
cat2608 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export const FEATURE_FLAGS = { | ||
consistentIgnores: 'snykCodeConsistentIgnores', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Could we not make this call for
ADVANCED_ORGANIZATION
so we don't need to add a new configuration key? We basically want to update the feature flag whenever the org changes right?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 check is for the settings page.
Is there another way to listen for a organisation change?
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.
I'm saying that I think
ADVANCED_ORGANIZATION
is already meant to represent a change for that panel: https://github.com/snyk/vscode-extension/blob/main/src/snyk/common/constants/settings.ts#L19. It looks like we're not listening to this inonChangeConfiguration
though, for some weird reason.What is the difference between
ADVANCED_ORGANIZATION_SETTING
andADVANCED_ORGANIZATION
?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.
Oh! I'm sorry! You were saying that I duplicated a variable!
You are right! I didn't realise I duplicated
snyk-advanced.organization
.There is no difference, I made a mistake declaring a variable that already exists.
Deleting it now, thank you.