Use Octokit.GraphQL instead of Octokit for the performance aspects
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
調査の方向性
NativeAOTDependencyHelper.Core/Sources/GitHubIssueSearchDataSource.cs の 63~66 行付近から始め、Octokit が GitHub の issue をどのようにクエリしているかを調べます。その呼び出しを提供された Octokit.GraphQL の例と比較し、issue 数の動作が同等のままであること、また結果のクエリが必要なデータだけを要求していることを確認します。
索引モデルが issue の本文から書いたものです。
説明
According to the GitHubIssueSearchDataSource class, it possibly queries hundreds of issues using Octokit.NET.
However, GitHub API v3 (or Octokit or REST API) is not recommended where GitHub API v4 (or Octokit.GraphQL or GraphLQ API) is available since it queries the whole information at the API endpoint even if you don't request.
https://github.com/octokit/octokit.graphql.net
> dotnet add package Octokit.GraphQL
This GraphQL source does a query for a word AOT in the title of issues on CommunityToolkit/Windows.
Try run this in https://docs.github.com/en/graphql/overview/explorer
query
{
search(
query: "repo:CommunityToolkit/Windows is:issue in:title AOT",
type: ISSUE,
first: 1)
{
issueCount
}
}
var connection = new Connection(new ProductHeaderValue("NativeAOTDependencyHelper"), "ACCESS_TOKEN");
var query = new Query()
.Search("repo:microsoft/terminal is:issue in:title AOT", SearchType.Issue, first: 1)
.Select(search => new
{
// No other data is queried or returned
search.IssueCount,
});
var response = await connection.Run(query);
var issueCount = response.IssueCount;
This is equivalent to:
https://github.com/search?q=repo%3ACommunityToolkit%2FWindows+is%3Aissue+in%3Atitle+AOT&type=issues
if you'd like to change the URL for users to visit:
https://github.com/microsoft/NativeAOTDependencyHelper/blob/ee7c92ada9c4e7ef6c91e9f5807bf99d462952e0/NativeAOTDependencyHelper.Core/Sources/GitHubIssueSearchDataSource.cs#L63
- 主要言語
- C#
- スター
- 45
- フォーク
- 6
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoft/NativeAOTDependencyHelper のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
JsonExceptionオープン
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
microsoft/NativeAOTDependencyHelper#10 · コメント 2 件 ·
-
Add SLNX Supportオープン
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
microsoft/NativeAOTDependencyHelper#9 · リアクション 1 件 ·
microsoft/NativeAOTDependencyHelper の issue をすべて見る
似ている issue
-
agentic-workflows area/Docs partner/agentic-workflows
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
microsoft/fluentui-blazor#5364 ·
メンテナーはふだん 1 日以内に返信
-
.NET triage
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
microsoft/agent-framework#8811 ·
メンテナーはふだん 1 日以内に返信
-
.NET Docs
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
getsentry/sentry-dotnet#5637 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
QuantConnect/Lean#9842 ·
メンテナーはふだん 1 日以内に返信