Skip to content

Commit

Permalink
Cert Location Setting and Recently Used Strings (#39)
Browse files Browse the repository at this point in the history
The certificate button for SNI auth now looks only at one location (either CurrentUser or LocalMachine) based on field in the Settings dialog.
The 10 most recently used cluster, database, and app ids are now stored in the user settings file and the list is updated each time a valid comparison is completed. Users can ignore this feature by continuing to type in their own strings or they can use the drop downs to populate a particular field.
---------

Co-authored-by: Ben Martens <benmar@microsoft.com>
  • Loading branch information
benmartens and Ben Martens authored Apr 23, 2024
1 parent b4b1ccb commit 481097c
Show file tree
Hide file tree
Showing 11 changed files with 380 additions and 70 deletions.
3 changes: 3 additions & 0 deletions SyncKusto/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
<setting name="UseLegacyCslExtension" serializeAs="String">
<value>True</value>
</setting>
<setting name="CertificateLocation" serializeAs="String">
<value>CurrentUser</value>
</setting>
</SyncKusto.Properties.Settings>
</userSettings>
</configuration>
2 changes: 1 addition & 1 deletion SyncKusto/MainForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions SyncKusto/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,16 @@ IDatabaseSchema TryGetSchema(Func<Either<IOperationError, DatabaseSchema>> schem

spcSource.ReportProgress(string.Empty);
spcTarget.ReportProgress(string.Empty);

// Save the cluster and databases used in recent history to populate the combo boxes for
// next time and then reload them both. (Note that combining save an reload into a
// single operation would mean that the source recent history list wouldn't contain
// whatever was just used in the target schema so we keep them as separate steps.)
spcSource.SaveRecentValues();
spcTarget.SaveRecentValues();
spcSource.ReloadRecentValues();
spcTarget.ReloadRecentValues();

// Enable the update button now that a comparison has been generated.
btnUpdate.Enabled = true;
}
Expand Down
45 changes: 45 additions & 0 deletions SyncKusto/Properties/Settings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions SyncKusto/Properties/Settings.settings
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,17 @@
<Setting Name="UseLegacyCslExtension" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">True</Value>
</Setting>
<Setting Name="CertificateLocation" Type="System.String" Scope="User">
<Value Profile="(Default)">CurrentUser</Value>
</Setting>
<Setting Name="RecentClusters" Type="System.Collections.Specialized.StringCollection" Scope="User">
<Value Profile="(Default)" />
</Setting>
<Setting Name="RecentDatabases" Type="System.Collections.Specialized.StringCollection" Scope="User">
<Value Profile="(Default)" />
</Setting>
<Setting Name="RecentAppIds" Type="System.Collections.Specialized.StringCollection" Scope="User">
<Value Profile="(Default)" />
</Setting>
</Settings>
</SettingsFile>
90 changes: 45 additions & 45 deletions SyncKusto/SchemaPickerControl.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 481097c

Please sign in to comment.