Gerhard Schlager
80c9fa4dca
FIX: Load translation overrides for more than one locale
2016-02-22 22:48:56 +01:00
Sam
bbbb09a6fb
FEATURE: start tracking information about migrations that run
...
This commit adds a new tracking table that lets us know
- When a migration ran
- What version Discourse was at
- How long it took
- What version Rails was at
The built in tracking in Rails is very limited, does not track this info
2016-02-17 18:08:25 +11:00
Guo Xiang Tan
b8193e8e67
Remove Arel patch that has been merged upstream.
2016-01-22 12:24:36 +08:00
Robin Ward
d1ebb9d0b5
FIX: I18n Fallbacks were not applying correctly
2015-12-23 12:09:18 -05:00
Sam
b8a47a1129
FIX: if a string was missing catch the throw
...
if overrides were in play and we tried to translate a
missing string we would throw an exception
2015-12-09 17:10:51 +11:00
Robin Ward
de88be2fbc
Support for "Only show overridden" in site text customization
2015-11-30 15:25:08 -05:00
Robin Ward
5e93140f85
FEATURE: Can override any translation via an admin interface
2015-11-27 11:35:19 -05:00
Robin Ward
434deb1bd3
SECURITY: Backported XSS fixes from Handlebars
2015-11-24 16:08:08 -05:00
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
Sam
7d9fd350d3
dup is critical cause people are mucking with stuff that comes out of the cache
2013-04-26 16:18:55 +10:00
Sam
27edebfaef
This patch probably belongs in AR discussing with rails team
2013-04-24 14:40:55 +10:00
Sam
737bb96737
translation accelerator
2013-04-24 14:40:09 +10:00
Sam
c9ed7100b1
bug fix
2013-04-24 12:26:39 +10:00
Sam
0b76166ad1
inflector backport
2013-04-24 12:02:36 +10:00
Sam
47fb99198a
path to asset is insanely slow cause it is pluralizing the word "javascript" over and over and over and over again.
2013-04-09 11:54:00 +10:00
Robin Ward
1f0b28b069
Apply security fixes as a monkey^M^M^M^M^M^Mfreedom patch
2013-03-19 16:59:18 -04:00
Sam
fcc6aac008
hacked dates so jeff sees no more 1mons everywhere.
2013-03-13 00:05:21 -07:00
Régis Hanol
239cbd2d58
enforce coding convention
...
replaced every `and` by `&&` and every `or` by `||`
2013-03-05 01:42:44 +01:00
Gosha Arinich
cafc75b238
remove trailing whitespaces ❤️
2013-02-26 07:31:35 +03:00
Robin Ward
674c861eaf
Adjust deadlock trap to match postgres format.
2013-02-15 11:48:38 -05:00
Robin Ward
57049b55a2
Little things:
...
- Retries on deadlock when calculating average time
- Removes Warning: When specifying html format for errors
- Doesn't use manual SQL to update user's ip address
2013-02-11 15:47:28 -05:00
Robin Ward
21b5628528
Initial release of Discourse
2013-02-05 14:16:51 -05:00