discourse/config/locales
riking 1833b43ae2 FEATURE: Badge query validation, preview results, and EXPLAIN
Upon saving a badge or requesting a badge result preview,
BadgeGranter.contract_checks! will examine the provided badge SQL for
some contractual obligations - namely, the returned columns and use of
trigger parameters.

Saving the badge is wrapped in a transaction to make this easier, by
raising ActiveRecord::Rollback on a detected violation.

On the client, a modal view is added for the badge query sample run
results, named admin-badge-preview.
The preview action is moved up to the route.
The save action, on failure, triggers a 'saveError' action (also in the
route).

The preview action gains a new parameter, 'explain', which will give the
output of an EXPLAIN query for the badge sql, which can be used by forum
admins to estimate the cost of their badge queries.
The preview link is replaced by two links, one which omits (false) and
includes (true) the EXPLAIN query.

The Badge.save() method is amended to propogate errors.

Badge::Trigger gets some utility methods for use in the
BadgeGranter.contract_checks! method.

Additionally, extra checks outside of BadgeGranter.contract_checks! are
added in the preview() method, to cover cases of null granted_at
columns.

An uninitialized variable path is removed in the backfill() method.

TODO - it would be nice to be able to get the actual names of all
columns the provided query returns, so we could give more errors
2014-08-31 11:25:44 -07:00
..
client.cs.yml Update Translations 2014-08-26 23:07:10 +05:30
client.da.yml Update Translations 2014-08-28 08:52:11 +05:30
client.de.yml Update Translations 2014-08-28 08:52:11 +05:30
client.en.yml FEATURE: Badge query validation, preview results, and EXPLAIN 2014-08-31 11:25:44 -07:00
client.es.yml Update Translations 2014-08-28 08:52:11 +05:30
client.fi.yml Update Translations 2014-08-28 08:52:11 +05:30
client.fr.yml Update Translations 2014-08-28 08:52:11 +05:30
client.he.yml Update Translations 2014-08-28 08:52:11 +05:30
client.id.yml Update Translation 2014-08-15 23:32:14 +05:30
client.it.yml Update Translations 2014-08-28 08:52:11 +05:30
client.ja.yml Update Translations 2014-08-28 08:52:11 +05:30
client.ko.yml Update Translations 2014-08-28 08:52:11 +05:30
client.nb_NO.yml Update Translations 2014-08-26 23:07:10 +05:30
client.nl.yml Update Translations 2014-08-28 08:52:11 +05:30
client.pl_PL.yml Update Translations 2014-08-28 08:52:11 +05:30
client.pt_BR.yml Update Translations 2014-08-28 08:52:11 +05:30
client.pt.yml Update Translations 2014-08-28 08:52:11 +05:30
client.ru.yml Update Translations 2014-08-28 08:52:11 +05:30
client.sv.yml Update Translations 2014-08-26 23:07:10 +05:30
client.uk.yml Update Translations 2014-08-26 23:07:10 +05:30
client.zh_CN.yml Update Translations 2014-08-28 08:52:11 +05:30
client.zh_TW.yml Update Translations 2014-08-28 08:52:11 +05:30
plurals.rb Update RU pluralization to use 3 keys: one, few, other (as by Transifex) 2014-08-23 15:28:14 +03:00
server.cs.yml Update Translations 2014-08-21 23:44:58 +05:30
server.da.yml Update Translations 2014-08-26 23:07:10 +05:30
server.de.yml Update Translations 2014-08-28 08:52:11 +05:30
server.en.yml minor copy updates 2014-08-31 04:46:20 -07:00
server.es.yml Update Translations 2014-08-28 08:52:11 +05:30
server.fi.yml Update Translations 2014-08-28 08:52:11 +05:30
server.fr.yml Update Translations 2014-08-28 08:52:11 +05:30
server.he.yml Update Translations 2014-08-28 08:52:11 +05:30
server.id.yml Update Translations 2014-08-09 02:04:01 +05:30
server.it.yml Update Translations 2014-08-28 08:52:11 +05:30
server.ja.yml Update Translations 2014-08-18 20:47:59 +05:30
server.ko.yml Update Translations 2014-08-26 23:07:10 +05:30
server.nl.yml Update Translations 2014-08-28 08:52:11 +05:30
server.pl_PL.yml Update Translations 2014-08-28 08:52:11 +05:30
server.pt_BR.yml Update Translations 2014-08-28 08:52:11 +05:30
server.pt.yml Update Translations 2014-08-18 20:47:59 +05:30
server.ru.yml Update Translations 2014-08-28 08:52:11 +05:30
server.sv.yml Update Translations 2014-08-18 20:47:59 +05:30
server.uk.yml Update Translations 2014-08-28 08:52:11 +05:30
server.zh_CN.yml Update Translations 2014-08-28 08:52:11 +05:30
server.zh_TW.yml Update Translations 2014-08-28 08:52:11 +05:30
transliterate.ru.yml add Transifex link to header of translation files 2014-03-04 14:35:23 -08:00