Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Adds filter to target specific cluster connections#95

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
sdseaton wants to merge2 commits intomain
base:main
Choose a base branch
Loading
fromfilter_connections

Conversation

@sdseaton
Copy link
Contributor

  • Adds attribute to Cluster model to indicate if cluster is active.
  • Adds filter option to KustoSchemaHandler Tasks to allow targeting specific cluster connections if a list of included connections is provided.

CopilotAI review requested due to automatic review settingsApril 4, 2025 13:48
Copy link
Contributor

CopilotAI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds filtering functionality to target specific cluster connections by introducing a new boolean attribute in the Cluster model and a filtering method in the KustoSchemaHandler.

  • Adds an IsActive property to the Cluster model to denote active clusters.
  • Implements the FilterClusters method in KustoSchemaHandler to filter connections based on activity status or an explicit list of included connections.
  • Updates methods GenerateDiffMarkdown, Import, and Apply to utilize the new filtering logic.

Reviewed Changes

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

FileDescription
KustoSchemaTools/Model/Cluster.csIntroduces a new property IsActive to mark clusters as active.
KustoSchemaTools/KustoSchemaHandler.csAdds FilterClusters method and updates existing methods to filter connections.
Comments suppressed due to low confidence (1)

KustoSchemaTools/KustoSchemaHandler.cs:28

  • Consider adding test cases to verify the behavior of FilterClusters with various inputs, including cases with a null or empty includedConnections list and with explicit connection names.
public Clusters FilterClusters(Clusters clusters, List<string>? includedConnections)

Tip: Copilot code review supports C#, Go, Java, JavaScript, Markdown, Python, Ruby and TypeScript, with more languages coming soon.Learn more

@sdseatonsdseaton changed the titleAdds filter to target specific cluster connectonsAdds filter to target specific cluster connectionsApr 9, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

Copilot code reviewCopilotCopilot left review comments

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@sdseaton

[8]ページ先頭

©2009-2025 Movatter.jp