Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

JavaScript: support optional byKeyUrl

オープン
#417 コメント 5 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
csharp, javascript
領域
api, backend

調査の方向性

まず、issueで参照されている既存のByKeyメソッドとLoadUrlの処理から始め、次にコンテキストを把握するため、説明にリンクされている以前のpull requestを確認してください。デフォルトの動作を変更せずに、オプションのByKeyUrlをどこで読み取り、使用するかを判断し、既存のLoadUrlパスを変更しないまま、分離されたURLが機能することを検証してください。

索引モデルが issue の本文から書いたものです。

説明

enhancement has-workaround

Aleksey

Further to my PR and previous issue https://github.com/DevExpress/DevExtreme.AspNet.Data/pull/150...

Having a separate byKeyUrl would be useful. The case you gave as achieving this result actually does not work in the case which necessitated me implementing this function.

The most common case I have for this is to do with users. I have several methods that return a subset of the user base. For example OrderApprovalUsers which is a subset of Users returned by users/GetOrderApprovalUsers.

When an Order is raised, the current list of approved users is returned for the selectbox, a user is selected e.g. user id 99. Lets say later that user leaves the business, or their authority is revoked - they are no longer returned by the users/GetOrderApprovalUsers controller method. As a result, no call to users/GetOrderApprovalUsers with userid:99 will ever return a value.

This means whenever I display this record, the ApprovedBy field is blank - even though I have data to complete it.

If however a separate byKeyUrl such as I have implemented can be specified, then the selectbox can call users/GetUserById?UserId=99 without impacting any other functionality. By default, the ByKey method uses the LoadUrl anyway, so all that is required is an additional property ByKeyUrl that is only actually used if it is specified. It is a very small change with a very powerful additional functionality.

Would you please reconsider?

主要言語
C#
スター
165
フォーク
140
平均マージ
12時間 48分
マージ済み PR(30日)
3

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

DevExpress/DevExtreme.AspNet.Data のほかの issue

DevExpress/DevExtreme.AspNet.Data の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。