Skip to content

Conversation

@caol-ila
Copy link
Contributor

@caol-ila caol-ila commented Jan 7, 2025

This PR adds the option to configure hot cache, and the modification kinds for caching policies and permissions for follower clusters

Copilot AI review requested due to automatic review settings January 7, 2025 15:07
@caol-ila caol-ila merged commit 19bab0e into main Jan 7, 2025
@caol-ila caol-ila deleted the caol-ila-follower-configs branch January 7, 2025 15:27
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 5 out of 11 changed files in this pull request and generated 2 comments.

Files not reviewed (6)
  • KustoSchemaTools/Parser/KustoWriter/DefaultDatabaseWriter.cs: Evaluated as low risk
  • KustoSchemaTools/Model/Database.cs: Evaluated as low risk
  • KustoSchemaTools/Changes/DatabaseChanges.cs: Evaluated as low risk
  • KustoSchemaTools/KustoSchemaHandler.cs: Evaluated as low risk
  • KustoSchemaTools/Model/FollowerCache.cs: Evaluated as low risk
  • KustoSchemaTools/Model/FollowerPermissions.cs: Evaluated as low risk
Comments suppressed due to low confidence (1)

KustoSchemaTools/Changes/FollowerChange.cs:12

  • [nitpick] The property EntityType should be marked as readonly to prevent unintended modifications.
public string EntityType { get; set; }

Tip: If you use Visual Studio Code, you can request a review from Copilot before you push from the "Source Control" tab. Learn more

public static FollowerDatabase LoadFollower(string databaseName, KustoClient client)
{
var follower = new FollowerDatabase { DatabaseName = databaseName };
var metdaData = client.Client.ExecuteQuery(string.Format(FollowerMetadataQuery,databaseName)).As<FollowerMetadata>().First();
Copy link

Copilot AI Jan 7, 2025

Choose a reason for hiding this comment

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

The variable name 'metdaData' is misspelled. It should be 'metadata'.

Suggested change
var metdaData = client.Client.ExecuteQuery(string.Format(FollowerMetadataQuery,databaseName)).As<FollowerMetadata>().First();
var metadata = client.Client.ExecuteQuery(string.Format(FollowerMetadataQuery,databaseName)).As<FollowerMetadata>().First();

Copilot uses AI. Check for mistakes.
{
public string DatabaseName { get; set; }
public FollowerCache Cache { get; set; } = new FollowerCache();
// TODO: No logic to load data / roll out changes implemented yet!
Copy link

Copilot AI Jan 7, 2025

Choose a reason for hiding this comment

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

The TODO comment indicates that the logic to load data and roll out changes is not yet implemented. This should be addressed before merging.

Copilot uses AI. Check for mistakes.
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.

3 participants