# Где можно увидеть код для Dashboard Reports?

**URL:** https://meta.discourse.org/t/where-can-i-see-the-code-for-dashboard-reports/236986
**Category:** Data & reporting
**Tags:** dashboard-reports
**Created:** [22.Август.2022 08:41:19 UTC](https://meta.discourse.org/t/where-can-i-see-the-code-for-dashboard-reports/236986 "2022-08-22T08:41:19Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Nesha](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nesha/32/268340_2.png) [@Nesha](https://meta.discourse.org/u/Nesha)
#### Post date: [22.Август.2022 08:41:19 UTC](https://meta.discourse.org/t/where-can-i-see-the-code-for-dashboard-reports/236986/1 "2022-08-22T08:41:19Z")

</div>

Мы очень любим плагин [Data Explorer](https://meta.discourse.org/t/32566?silent=true)! Уже составили несколько конкретных запросов для поиска чувствительных слов и фраз.

Но нам интересно, можно ли увидеть SQL-код стандартных отчётов, доступных на панели управления Discourse? Это позволило бы нам многому научиться и начать создавать собственные отчёты.

Спасибо.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [23.Август.2022 20:34:33 UTC](https://meta.discourse.org/t/where-can-i-see-the-code-for-dashboard-reports/236986/5 "2022-08-23T20:34:33Z")

</div>

> [@Nebojsa Andrejic statsnz](#):
>
> Но мы задаемся вопросом: возможно ли увидеть SQL-запросы, стоящие за стандартными отчётами, доступными в панели управления Discourse?

Думаю, их можно найти здесь: [https://github.com/discourse/discourse/tree/main/app/models/concerns/reports](https://github.com/discourse/discourse/tree/main/app/models/concerns/reports), хотя они могут быть не так легко читаемы, как некоторые из тех, что обсуждались в темах #data-explorer. 🙂

В этой теме тоже есть несколько хороших приёмов для автоматизации в [Data Explorer](https://meta.discourse.org/t/32566?silent=true), которые можно использовать, чтобы сделать результаты более интерактивными:

> [@IDs in Data Explorer](https://meta.discourse.org/t/ids-in-data-explorer/224775/3):
>
> There are actually quite a few other little tricks to beautifying your results in the Discourse UI. This old file shows some examples: I’ll integrate this into the main [Data Explorer](https://meta.discourse.org/t/32566?silent=true) topic at some point when I have a spare moment.

Если у вас есть конкретные запросы, которые вы пытаетесь создать, не стесняйтесь открыть новую тему и «думать вслух» — мы всегда ищем новые примеры, которые сможем добавить в наш общий пул сообщества. 🙂 👍

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [24.Сентябрь.2022 21:34:28 UTC](https://meta.discourse.org/t/where-can-i-see-the-code-for-dashboard-reports/236986/6 "2022-09-24T21:34:28Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
