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