Robin Ward
1506eba28d
Support for overriding client side translation keys
2015-11-20 17:14:01 -05:00
Robin Ward
e168c5fde3
PERF: Much more performant, multisite aware I18n overrides
2015-11-19 16:36:59 -05:00
Robin Ward
7f4ca91e06
FIX: I18n overrides should be multisite aware
2015-11-18 16:05:53 -05:00
Robin Ward
3720783c1b
Refactor to our own Discourse I18n backend
...
This removes some monkey patches and makes testing easier.
It will also support database backed I18n changes.
2015-11-13 16:35:02 -05:00
Sam
805120fc95
FEATURE: add connnection reaping based on maximum age
...
This feature ensures connections to the db are always attempted to be closed
after 600 seconds of idle time.
2015-10-17 11:29:16 +11:00
Gerhard Schlager
454a628d58
Add tests for I18n.exists? freedom patch
2015-09-23 20:41:51 +02:00
Gerhard Schlager
825be30844
FIX: I18n.exists? should use locale fallbacks
2015-09-19 23:33:11 +02:00
Régis Hanol
1b44924cb0
replace 'open_uri_redirections' gem with a single freedom_patches file
2015-08-18 14:56:36 +02:00
Sam
1f044350f6
stop running exec_sql through active record
...
this avoids double logging
2015-08-14 10:01:38 +10:00
Kane York
ecfa17b5a7
FEATURE: Localization fallbacks (server-side)
...
The FallbackLocaleList object tells I18n::Backend::Fallbacks what order the
languages should be attempted in. Because of the translate_accelerator patch,
the SiteSetting.default_locale is *not* guaranteed to be fully loaded after the
server starts, so a call to ensure_loaded! is added after the locale is set for
the current user.
The declarations of config.i18n.fallbacks = true in the environment files were
actually garbage, because the I18n.default_locale was
SiteSetting.default_locale, so there was nothing to fall back to. *derp*
2015-07-15 10:17:36 -07:00
riking
428ff097f1
Add some documentation to fast_pluck.rb
2015-05-14 21:15:33 -07:00
Sam
51d82fc25d
PERF: Active Record #pluck is twice faster
...
PERF: SqlBuilder bypasses AR converters and uses PG directly
2015-05-13 16:46:17 +10:00
Robin Ward
d9e5302a16
FIX: HTMLBars compilation was broken in production mode
2015-05-11 11:20:46 -04:00
Arthur Neves
439d0d2e37
Check Rails.version instead of ENV
...
Like that we can have code that works on multiple Rails versions, and we
dont need to mix a new method on Kernel.
Also, this makes easier to have multiple versions.
For instance, before master was 4.2, which is not the case anymore, so
on the code we should check versions and not Environment variables
2015-04-28 22:27:47 -04:00
Robin Ward
5b3f99aa50
Don't blow up if Redis switches to READONLY
2015-04-24 14:37:16 -04:00
Sam
9191fbe9fb
Upgrade ruby racer so we can remove our freedom patch
2015-04-15 09:21:52 +10:00
Sam
d390603274
PERF: Fix memory leak
...
We used to leak some memory every time you cook a post
see: https://github.com/cowboyd/therubyracer/pull/336
2015-04-01 13:30:55 +11:00
Sam
830ce05fe6
PERF: simplify and shrink the translation cache
...
FIX: leaking objects into the translation cache causing sidekiq to grow
2015-03-30 16:31:36 +11:00
Sam
3c6aede1aa
using wrong var here
2015-02-12 14:40:07 +11:00
Sam
a5f46c98c1
PERF: only load locale files we are using
...
We used to load up all translations in all languages
2015-02-12 12:08:14 +11:00
Sam
8be2cb061e
barber upgrade, get assets precompile working on 1.9
2014-12-17 09:31:41 -05:00
Robin Ward
5659b93c71
Many fixes for Ember 1.9.0
2014-12-17 09:31:40 -05:00
Godfrey Chan
4d188ca5b0
Added back the last_use
timestamp to the AbstractAdapter
...
This was removed in 9e457a8654
2014-11-10 01:05:47 -08:00
Sam
222f9fee38
need to figure out encoding before forcing.
2014-10-30 17:49:44 +11:00
Sam
5729e7df6f
PERF: use raw rendering for topic list
...
rename my handlebars helper to "raw",
create ember compat handlebars to handle rendering
patch ember rails to use the correct precompiler
2014-10-29 15:24:51 +11:00
Sam
f2957b126e
add more diagnostics to encoding issues
2014-10-03 19:45:42 +10:00
Sam
090dc80f8a
FIX: work around random encoding errors
...
(symptom is that site is blank see: https://meta.discourse.org/t/actionview-template-error-incompatible-character-encodings-utf-8-and-ascii-8bit/19970 )
2014-10-03 10:41:52 +10:00
Sam
9fc7c145b3
FEATURE: added method for draining idle connections
2014-08-11 15:13:37 +10:00
Neil Lalonde
a4a90475cf
FIX: scrub freedom_patch should take the optional replacement_char argument. Mysql2::Error uses it. mysql2 is used by some import scripts.
2014-07-03 11:11:21 -04:00
Vikhyat Korrapati
89b9f9e2cb
Fix badge serialization issue.
2014-04-11 07:33:17 +05:30
Régis Hanol
17f75bbe92
BUGFIX: fallback to en translation when interpolation is missing
2014-02-26 18:42:16 +01:00
Sam
a28a0bbeeb
PERF: stop messing with strings that come back from I18n.t
...
allows better caching
2014-02-18 14:10:03 +11:00
Stephan Kaag
f12925887c
Drop Rails3 support
2014-02-17 19:42:08 +01:00
Sam
e1f293ad66
FEATURE: new scheduler
...
Removed sidetiq, introduced new scheduler
- add basic UI
- add schedule discover
- add scheduling in initializer
2014-02-06 10:26:16 +11:00
Robin Ward
1aee217a61
FIX: sidekiq 100% CPU usage due to ice_cube
2014-01-10 11:43:51 -05:00
Godfrey Chan
f9110ad4cb
No more with_default_scope
on Rails master, see 94924dc32b
2013-12-30 14:36:51 -08:00
Sam
9738c4ff48
FEATURE: backport a minimal String#scrub
...
BUGFIX: invalid byte sequence in email would explode all processing
2013-12-30 14:05:25 +11:00
Robin Ward
3d6d7c8abe
SiteSetting to hide regular names from users
2013-10-30 15:45:34 -04:00
Sam
3565f4c8cf
correct monkey patch, disable it from rails4 mode (that has a proper implementation)
2013-10-24 13:35:21 +11:00
Sam
ff957a7b37
rails 4 deprecation fixes
2013-10-24 13:02:25 +11:00
Sam
a3128665cf
make it more idiomatic
2013-10-02 12:23:16 +10:00
Sam
5f8851cb44
Avoid superfluous transaction when saving drafts
2013-10-02 12:17:27 +10:00
Sam
691377b5af
remove patches that have been upstreamed
...
clean up rails4 checks so they are consistent
2013-09-12 15:39:02 +10:00
Sam
edf6f3012d
backport fix for rails
2013-09-10 14:29:37 +10:00
Sam
b61d5c4092
freedom patches for fixes submitted to rack
2013-09-09 20:35:21 +10:00
Sam
7b62f9ccd7
more fixes for rails 4
2013-09-03 19:11:55 +10:00
Sam
5dd199df26
bench fix and new arel patches for rails 4
2013-09-03 18:58:56 +10:00
Navin
2e700dd26d
Patch ActiveRecord::Relation#references and clean up
2013-08-16 14:53:40 +02:00
Sam
e7e00601c6
ok, we now dual boot rails 4 and rails 3 ... to run in rails 4 mode: RAILS4=1 bundle exec thin start
2013-07-21 10:56:48 +10:00
Sam
8f46653345
refactor
2013-05-17 09:03:52 +10:00