8cc2d4e4e4
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. |
||
---|---|---|
.github/workflows | ||
app | ||
assets | ||
config | ||
db/migrate | ||
lib | ||
spec | ||
.discourse-compatibility | ||
.eslintrc | ||
.gitignore | ||
.jshintrc | ||
.rubocop.yml | ||
.template-lintrc.js | ||
.travis.yml | ||
Gemfile | ||
Gemfile.lock | ||
LICENSE | ||
README.md | ||
package.json | ||
plugin.rb | ||
translator.yml | ||
yarn.lock |
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