loopbackio / loopbackio/loopback-datasource-juggler
Use operation hooks instead of deprecated model hooks
まだ誰も着手していません。
- 主要言語
- JavaScript
- スター
- 282
- フォーク
- 366
- 平均マージ
- 17時間 4分
- マージ済み PR(30日)
- 10
説明
See the discussion in #824. We were not able to remove deprecated model hooks because embedded relations are still relying on them.
There is a feature for
inst.triggerParentin embedsMany that needs more consideration and possibly a rewrite for embedded relations to continue work. It is for updating the parent model if any changes are made to the relation. This part needs a redesign and rewrite to consider the different cases and to make it all consistent.
We should rewrite inst.triggerParent to not depend on deprecated hooks, for example using the approach outlined in https://github.com/strongloop/loopback-datasource-juggler/commit/d0cc791bc65e5ee7d2447698539da1d1ca0591ee
cc @jannyHou @Amir-61 @superkhau
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
#824 の議論から始め、inst.triggerParent 周辺の埋め込みリレーションのパスを調査してください。現在の動作を commit d0cc791bc65e5ee7d2447698539da1d1ca0591ee のアプローチと比較してください。埋め込みリレーションが deprecated な model hooks に依存せず、引き続き一貫して親を更新できれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript
- 領域
- database
- issue の種類
- リファクタリング
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100