discourse/app/assets/stylesheets
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
..
common FEATURE: Badge query validation, preview results, and EXPLAIN 2014-08-31 11:25:44 -07:00
desktop FIX: banner topic's max-width & max-height on both mobile & desktop 2014-08-28 16:15:48 +02:00
mobile FIX: banner topic's max-width & max-height on both mobile & desktop 2014-08-28 16:15:48 +02:00
vendor removing text-transforms (interferes with translation) 2014-07-29 23:48:41 -04:00
admin.css Restructure the app/assets/stylesheets directory 2013-08-28 13:58:44 -04:00
common.scss FIX: Allow buttons to be hidden. Fixes persistent uploading progress on 2014-07-25 15:09:15 -04:00
desktop.scss UX: When clicking an activity date, pop up a little menu with options to 2014-08-15 16:39:57 -04:00
embed.css.scss embedded quote colors were wrong, THANKS OBAMA 2014-07-12 01:31:26 -07:00
mobile.scss Add 10px margin for buttons in mobile 2014-08-23 10:41:48 +10:00