adopted-ember-addons / adopted-ember-addons/ember-data-model-fragments

Polymorphic fragmentArray and typeKey

未关闭
#468 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
367
派生
108
PR 合并指标
30 天内没有已合并 PR

描述

Hi

I used to be able to do this on a polymorphic model to get to the typekey given as argument in the model definition

```
const typeKey = this.contactModel.get('options.typeKey');
```

Currently (6.0.1) these event options is undefined. Did ember data remove that? I'm still using ember and ember-data 3.28.12

```
@fragmentArray('fragment/contact/contactcomponent', {
polymorphic: true,
typeKey: 'componentType',
...
```

贡献指南

打开贡献指南

调研方向

The issue names fragmentArray with polymorphic: true and typeKey: 'componentType', but no source file or test. Start by reproducing the missing options.typeKey behavior in the reported Ember Data 3.28.12 and 6.0.1 setups, then trace fragmentArray's option handling. Done means the typeKey is available as expected, with a regression test covering the polymorphic model.

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

评估

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

把新 issue 发到你的邮箱

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