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

SLVS-1563 Raise CurrentConfigurationScopeChanged when configuration scope changed #5783

Conversation

gabriela-trutan-sonarsource
Copy link
Contributor

@gabriela-trutan-sonarsource gabriela-trutan-sonarsource commented Oct 29, 2024

SLVS-1563

This is a draft, because it targets the PR, which is needed for the tests. It can still be reviewed.

@hashicorp-vault-sonar-prod hashicorp-vault-sonar-prod bot changed the title Raise CurrentConfigurationScopeChanged when configuration scope changed SLVS-1563 Raise CurrentConfigurationScopeChanged when configuration scope changed Oct 29, 2024
@gabriela-trutan-sonarsource gabriela-trutan-sonarsource marked this pull request as draft October 29, 2024 09:25
Base automatically changed from gt/config-scope-tracker-tests to feature/dotnet-analyzer-repackaging October 29, 2024 10:28
@gabriela-trutan-sonarsource gabriela-trutan-sonarsource force-pushed the gt/add-config-scope-updated-event branch from ee2ef1e to 01b675d Compare October 29, 2024 14:13
@gabriela-trutan-sonarsource gabriela-trutan-sonarsource marked this pull request as ready for review October 29, 2024 14:14
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks good, except that raising the event under lock can be problematic. I think we need to move it outsider the synchronization blocks. But if we do that, we shouldn't have the configscope value in the event parameter to prevent race conditions (callers will need to call IActiveConfigScopeTracker.Current to get the up to date value)

Copy link

@gabriela-trutan-sonarsource gabriela-trutan-sonarsource merged commit 9c8de05 into feature/dotnet-analyzer-repackaging Oct 30, 2024
4 checks passed
@gabriela-trutan-sonarsource gabriela-trutan-sonarsource deleted the gt/add-config-scope-updated-event branch October 30, 2024 14:24
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.

2 participants