-
Notifications
You must be signed in to change notification settings - Fork 12
Add configurations for follower clusters #90
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
Conversation
There was a problem hiding this 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(); |
Copilot
AI
Jan 7, 2025
There was a problem hiding this comment.
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'.
| var metdaData = client.Client.ExecuteQuery(string.Format(FollowerMetadataQuery,databaseName)).As<FollowerMetadata>().First(); | |
| var metadata = client.Client.ExecuteQuery(string.Format(FollowerMetadataQuery,databaseName)).As<FollowerMetadata>().First(); |
| { | ||
| public string DatabaseName { get; set; } | ||
| public FollowerCache Cache { get; set; } = new FollowerCache(); | ||
| // TODO: No logic to load data / roll out changes implemented yet! |
Copilot
AI
Jan 7, 2025
There was a problem hiding this comment.
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.
This PR adds the option to configure hot cache, and the modification kinds for caching policies and permissions for follower clusters