SQL Queries for admins in Discourse
Go to file
Krzysztof Kotlarek 8cc2d4e4e4
FIX: flaky fix_query_id_spec because id conflict (#73)
This rake task is responsible for fixing broken ids - move them back to the original values - ones before migration to a separate table.

Rake task can only fix queries with unique names.

In the test, we are creating duplicated queries and using `original_id` 4. Spec is ensuring that after rake tasks valuation, queries id is different than `4`

However, spec run in random order may create a query with id 4 and in that case, the spec would fail.

Therefore, when we create queries for test purpose, we should control what ids they are given to avoid conflict.
2020-10-13 12:31:51 +11:00
.github/workflows DEV: Update CI workflows 2020-10-12 08:16:43 +00:00
app Make rubocop happy. 2020-08-27 09:19:59 +08:00
assets UX: Make group report index styling more consistent with core (#72) 2020-10-09 13:22:16 +11:00
config Update translations 2020-10-06 15:20:13 +02:00
db/migrate FIX: Store query groups in a temp table when fixing ids. (#68) 2020-09-28 12:23:53 -03:00
lib FIX: Store query groups in a temp table when fixing ids. (#68) 2020-09-28 12:23:53 -03:00
spec FIX: flaky fix_query_id_spec because id conflict (#73) 2020-10-13 12:31:51 +11:00
.discourse-compatibility FIX: Correct the .discourse-compatibility syntax (#71) 2020-10-07 13:01:35 +02:00
.eslintrc DEV: apply coding standards (#66) 2020-09-04 13:23:11 +02:00
.gitignore DEV: apply coding standards (#66) 2020-09-04 13:23:11 +02:00
.jshintrc Initial commit as a clone of discourse-tagging 2015-06-25 09:25:15 -07:00
.rubocop.yml DEV: Move to rubocop-discourse. 2020-05-06 18:11:07 +02:00
.template-lintrc.js DEV: apply coding standards (#66) 2020-09-04 13:23:11 +02:00
.travis.yml Add .travis.yml from discourse-plugin-ci 2018-10-31 14:57:53 +05:30
Gemfile DEV: Add RubyGems as source 2020-09-25 11:46:42 -05:00
Gemfile.lock DEV: Switch from Transifex to Crowdin 2020-07-16 14:00:47 +02:00
LICENSE Initial commit as a clone of discourse-tagging 2015-06-25 09:25:15 -07:00
README.md Update README.md 2018-08-14 15:59:59 +10:00
package.json DEV: linting 2020-09-22 17:11:41 +02:00
plugin.rb FIX: UserAction table did not have enum help (#62) 2020-10-07 12:58:14 +11:00
translator.yml DEV: Switch from Transifex to Crowdin 2020-07-16 14:00:47 +02:00
yarn.lock DEV: linting 2020-09-22 17:11:41 +02:00

README.md

discourse-data-explorer

This plugin allows admins to run SQL queries against the live Discourse database, including parameterized queries and formatting for several common column types.

Details at: https://meta.discourse.org/t/data-explorer-plugin/32566