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

[Environments] Increased timeout for configuration #3891

Merged
merged 8 commits into from
Oct 3, 2024
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions common/Environments/Styles/HorizontalCardStyles.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -239,12 +239,12 @@
<Setter Property="Padding" Value="20,8,15,8" />
</Style>

<Style
x:Key="CardBodyLaunchButtonStyle"
TargetType="Button">
<Setter Property="HorizontalAlignment" Value="Right" />
<Setter Property="VerticalAlignment" Value="Top" />
<Setter Property="Padding" Value="34,7,34,7" />
<Setter Property="CornerRadius" Value="{ThemeResource ControlCornerRadius}" />
<Style
x:Key="CardBodyLaunchButtonStyle"
TargetType="Button">
<Setter Property="HorizontalAlignment" Value="Right" />
<Setter Property="VerticalAlignment" Value="Top" />
<Setter Property="Padding" Value="34,7,34,7" />
<Setter Property="CornerRadius" Value="{ThemeResource ControlCornerRadius}" />
</Style>
</ResourceDictionary>
Original file line number Diff line number Diff line change
Expand Up @@ -409,10 +409,13 @@ public void SearchHandler(string query)

if (system is ComputeSystemViewModel computeSystemViewModel)
{
var providerName = computeSystemViewModel.ProviderDisplayName;
if (providerName != _selectedProvider)
if (_selectedProvider.ToString().Length > 0)
huzaifa-d marked this conversation as resolved.
Show resolved Hide resolved
{
return false;
var providerName = computeSystemViewModel.ProviderDisplayName;
if (providerName != _selectedProvider)
{
return false;
}
}

var systemName = computeSystemViewModel.ComputeSystem!.DisplayName.Value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -411,12 +411,12 @@ public IAsyncOperation<TaskFinishedState> Execute()
applyConfigurationOperation.ConfigurationSetStateChanged += OnApplyConfigurationOperationChanged;
applyConfigurationOperation.ActionRequired += OnActionRequired;

// We'll cancel the operation after 10 minutes. This is arbitrary for now and will need to be adjusted in the future.
// We'll cancel the operation after 30 minutes. This is arbitrary for now and will need to be adjusted in the future.
// but we'll need to give the user the ability to cancel the operation in the UI as well. This is just a safety net.
// More work is needed to give the user the ability to cancel the operation as the capability is not currently available.
// in the UI of Dev Home's Loading page.
var tokenSource = new CancellationTokenSource();
tokenSource.CancelAfter(TimeSpan.FromMinutes(10));
tokenSource.CancelAfter(TimeSpan.FromMinutes(30));

ApplyConfigurationAsyncOperation = applyConfigurationOperation.StartAsync();
var result = await ApplyConfigurationAsyncOperation.AsTask().WaitAsync(tokenSource.Token);
Expand Down
Loading