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 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

bug Multiple mutations
主要语言
C#
星标
1.5k
派生
372
平均合并
3 天 22 小时
30 天内合并 PR
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)

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先复现一个涉及 N:1 或 1:1 关系的批量创建操作,其中相关实体具有严格的读取策略。跟踪当该策略阻止返回插入结果时如何处理该结果;完成标准是该操作不再引发报告的异常,并且读取策略仍然得到执行。

由索引模型根据 Issue 内容生成。

评估

技术栈
csharp
领域
api, authorization, databases
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。