loopbackio / loopbackio/loopback-next

Cant smoothly extend RestApplication without being stuck with RestComponent as well.

オープン
#8,090 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

feature REST
主要言語
TypeScript
スター
5.1k
フォーク
1.1k
平均マージ
2日 21時間
マージ済み PR(30日)
27

説明

https://github.com/loopbackio/loopback-next/blob/2661354cb67560be32558f118fbd9164167c8d86/packages/rest/src/rest.application.ts#L94

Wanting to extend RestApplication to override one or another method and I'd also like to extend RestComponent and override a thing or two. Not really seeing a way to do it with the way this is coded. There are a bunch of patterns that could rectify this. Instead I'm having to entirely copy the RestApplication class to achieve this.

Noting. Will add more detail shortly. :)

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

調査の方向性

issue でリンクされている場所である、94 行目付近の packages/rest/src/rest.application.ts から始めます。RestApplication と RestComponent に対して望まれる独立した拡張の動作を明確にし、次にこれらのクラスを対象とするプロジェクトのテストを特定します。実装完了時には、RestApplication クラス全体をコピーする代わりに、サポートされた方法を提供する必要があります。

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

評価

技術スタック
typescript
領域
api, backend-api-design
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

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

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