loopbackio / loopbackio/loopback-datasource-juggler

Use operation hooks instead of deprecated model hooks

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

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

major
主要言語
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.triggerParent in 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

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

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

はじめの一歩

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

調査の方向性

#824 の議論から始め、inst.triggerParent 周辺の埋め込みリレーションのパスを調査してください。現在の動作を commit d0cc791bc65e5ee7d2447698539da1d1ca0591ee のアプローチと比較してください。埋め込みリレーションが deprecated な model hooks に依存せず、引き続き一貫して親を更新できれば完了です。

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

評価

技術スタック
javascript
領域
database
issue の種類
リファクタリング
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

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

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