discourse/config
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
..
cloud/cloud66 Better way to retry curl 2014-08-11 16:30:26 +05:30
environments FIX: developer emails not working on ruby 2.0 2014-08-30 09:07:30 +10:00
initializers FIX: authorized callback deprecated 2014-08-22 11:05:20 +10:00
locales FEATURE: Badge query validation, preview results, and EXPLAIN 2014-08-31 11:25:44 -07:00
apache2.conf.sample Add a few extra ProxyPass calls 2013-12-23 13:15:39 +02:00
application.rb add permalinks route constraint 2014-08-29 11:28:16 -04:00
boot.rb
cdn.yml.sample
database.yml fixed a spelling benchamarking -> benchmarking 2014-08-14 10:16:57 +05:30
deploy.rb.sample Replace Clockwork with Sidetiq 2013-08-14 21:39:40 +02:00
discourse.config.sample Typo fix 2014-03-03 11:19:17 -05:00
discourse.pill.sample Improve bluepill sample config. 2014-01-31 16:09:35 -05:00
discourse_defaults.conf FEATURE: allow version emails to be disabled globally 2014-08-23 10:02:32 +10:00
discourse_quickstart.conf CHANGE: Mini Profiler only enabled for developers in prd 2014-07-17 08:34:41 +10:00
environment.rb
logrotate.conf Replace Clockwork with Sidetiq 2013-08-14 21:39:40 +02:00
multisite.yml.production-sample
nginx.global.conf Address @Supermathie's concerns in PR1430 2013-09-30 16:28:22 -04:00
nginx.sample.conf FIX: cache avatars in NGINX 2014-07-15 10:30:43 +10:00
projections.json VIM helper 2014-03-19 12:08:00 +11:00
puma.rb Update puma.rb fixed: num_worker(S) 2014-02-13 11:08:27 +07:00
redis.yml get rid of cache db, not needed 2014-01-06 12:24:11 +11:00
routes.rb add permalinks route constraint 2014-08-29 11:28:16 -04:00
site_settings.yml FEATURE: prevent 0 length setting in message len 2014-08-29 13:20:23 -07:00
spring.rb BUGFIX: Correct after_fork semantics 2014-03-31 12:34:13 +11:00
thin.yml.sample
unicorn.conf.rb FEATURE: unicorn sidekiq will restart sidekiq on complete failure. 2014-04-23 13:13:18 +10:00
unicorn_launcher reopen logs on usr1 2014-08-25 10:49:13 +10:00
unicorn_upstart.conf added upstart script for Discourse 2013-10-13 10:16:53 +11:00