# 预设数据探索器“已分配”查询需要更新

**URL:** <https://meta.discourse.org/t/pre-seeded-data-explorer-assigned-queries-need-updating/203014>\
**Category:** Bug\
**Created:** [2021年九月6日 09:15 UTC](https://meta.discourse.org/t/pre-seeded-data-explorer-assigned-queries-need-updating/203014 "2021-09-06T09:15:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![horvathd](https://avatars.discourse-cdn.com/v4/letter/h/b5ac83/32.png) [@horvathd](https://meta.discourse.org/u/horvathd)\
**Post date:** [2021年九月6日 09:15 UTC](https://meta.discourse.org/t/pre-seeded-data-explorer-assigned-queries-need-updating/203014/1 "2021-09-06T09:15:45Z")

</div>

各位 Discourse 开发者好！

最近我注意到，_[Data Explorer](https://meta.discourse.org/t/32566?silent=true)_ 插件的默认查询“用户分配的议题列表”和“每个用户分配的议题总数”（可能还有其他查询）停止更新了。

我追踪到问题的根源在于 _Assign_ 插件的一次更新，该更新将分配记录移到了数据库中一个专用的表里。

我已经能够编写自己的查询来获取当前已分配议题的状态。但是，即使我编辑了默认查询，它们生成的结果仍然和以前一样。

能否根据 _Assign_ 插件的变更更新这些查询呢？

谢谢！

祝好，  
David

---

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [2021年九月8日 21:19 UTC](https://meta.discourse.org/t/pre-seeded-data-explorer-assigned-queries-need-updating/203014/2 "2021-09-08T21:19:04Z")

</div>

感谢您向我们反馈！以下与作业相关的数据探索器查询需要更新，改为使用 `assignments` 表，而非旧的 `topic_custom_fields`：

- 用户已分配的主题列表
- 每个用户分配的主题总数

---

<div class="post-metadata">

**Author:** ![kris.kotlarek](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kris.kotlarek/32/176919_2.png) [@kris.kotlarek](https://meta.discourse.org/u/kris.kotlarek)\
**Post date:** [2021年九月10日 04:51 UTC](https://meta.discourse.org/t/pre-seeded-data-explorer-assigned-queries-need-updating/203014/5 "2021-09-10T04:51:18Z")

</div>

感谢您发现这个错误。

该问题已在最新的 discourse-data-explorer 中修复：

> <https://github.com/discourse/discourse-data-explorer/pull/138>
>
> In July, we introduced new Assignment table to discourse-assign plugin (https://…github.com/discourse/discourse-assign/pull/169)
> 
> Assignment explorer queries had to be updated
> 
> Meta: https://meta.discourse.org/t/pre-seeded-data-explorer-assigned-queries-need-updating/203014

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2021年九月10日 06:55 UTC](https://meta.discourse.org/t/pre-seeded-data-explorer-assigned-queries-need-updating/203014/6 "2021-09-10T06:55:34Z")

</div>


