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-1721 Fix "Use shared configuration" button not shown after unbind #5907

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

gabriela-trutan-sonarsource
Copy link
Contributor

@gabriela-trutan-sonarsource gabriela-trutan-sonarsource commented Dec 18, 2024

…d by making sure that the SharedBindingConfigModel is initialized inside InitializeDataAsync even when project is bound.

The problem was that, after unbinding the IsUseSharedBindingButtonVisible was returning false due to the fact that the SharedBindingConfigModel was null. If the property is filled instead should not make any difference in the logic of the dialog
@hashicorp-vault-sonar-prod hashicorp-vault-sonar-prod bot changed the title SLVS-1721 Fix "Use shared configuration" button not shown after unbind SLVS-1721 Fix "Use shared configuration" button not shown after unbind Dec 18, 2024
Copy link
Contributor

@vnaskos-sonar vnaskos-sonar left a comment

Choose a reason for hiding this comment

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

The issue is no longer reproducible after #5906 . However, the IsUseSharedBindingButtonVisible tests are still useful!

Comment on lines +144 to +147
var detectSharedBinding = new TaskToPerformParams<AdapterResponse>(CheckForSharedBindingAsync, UiResources.CheckingForSharedBindingText,
UiResources.CheckingForSharedBindingFailedText)
{ AfterProgressUpdated = OnProgressUpdated };
await ProgressReporter.ExecuteTaskWithProgressAsync(detectSharedBinding);
Copy link
Contributor

Choose a reason for hiding this comment

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

The issue seems to be fixed by #5906 This change can be reverted.

Copy link
Contributor

Choose a reason for hiding this comment

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

My bad, I started with an unbound project which is not the same.

Copy link
Contributor

@vnaskos-sonar vnaskos-sonar left a comment

Choose a reason for hiding this comment

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

👍

@vnaskos-sonar vnaskos-sonar merged commit 95fd91c into feature/unbind Dec 18, 2024
9 checks passed
@vnaskos-sonar vnaskos-sonar deleted the gt/shared-config-btn branch December 18, 2024 14: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.

2 participants