Azure / Azure/data-api-builder

Failure of read database policy for related entity in multiple create for N:1 and 1:1 relationships returns error

オープン
#2,196 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug Multiple mutations
主要言語
C#
スター
1.5k
フォーク
370
平均マージ
3日 22時間
マージ済み PR(30日)
9

説明

For N:1 and 1:1 relationships where the read policy prohibits returning the result of the insertion in the related entity, we get an exception:

![image](https://github.com/Azure/data-api-builder/assets/34566234/80a05ca2-f7da-4701-ba58-5e10341806e1)

In the config, the policy for read operation is defined as:

![image](https://github.com/Azure/data-api-builder/assets/34566234/5c395e1e-d4bf-446a-9739-47e59a650903)

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

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

調査の方向性

まず、関連エンティティに対する制限的な読み取りポリシーを伴う N:1 または 1:1 のリレーションシップを含む複数作成操作を再現します。ポリシーによって挿入結果の返却が妨げられたときに、その結果がどのように処理されるかを追跡します。完了条件は、操作が報告された例外を発生させなくなり、読み取りポリシーが引き続き適用されることです。

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

評価

技術スタック
csharp
領域
api, authorization, databases
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

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

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