Joffrey JAFFEUX
0d3d2c43a0
DEV: s/\$redis/Discourse\.redis ( #8431 )
...
This commit also adds a rubocop rule to prevent global variables.
2019-12-03 10:05:53 +01:00
Krzysztof Kotlarek
427d54b2b0
DEV: Upgrading Discourse to Zeitwerk ( #8098 )
...
Zeitwerk simplifies working with dependencies in dev and makes it easier reloading class chains.
We no longer need to use Rails "require_dependency" anywhere and instead can just use standard
Ruby patterns to require files.
This is a far reaching change and we expect some followups here.
2019-10-02 14:01:53 +10:00
Sam Saffron
30990006a9
DEV: enable frozen string literal on all files
...
This reduces chances of errors where consumers of strings mutate inputs
and reduces memory usage of the app.
Test suite passes now, but there may be some stuff left, so we will run
a few sites on a branch prior to merging
2019-05-13 09:31:32 +08:00
Guo Xiang Tan
152238b4cf
DEV: Prefer `public_send` over `send`.
2019-05-07 09:33:21 +08:00
Guo Xiang Tan
f26804394a
DEV: Remove the use of stubs on `Rails.logger` in our test suite.
2018-10-10 09:34:50 +08:00
Bianca Nenciu
1fb1f4c790
FIX: Make error in Discourse Hub more descriptive. ( #6438 )
2018-10-09 22:05:31 +08:00
Neil Lalonde
4b6381367e
add support for Excon connection options in hub requests
2018-08-30 15:57:11 -04:00
Sam
deb79a8fff
DEV: private means nothing for class methods
2017-11-01 16:43:19 +11:00
Guo Xiang Tan
4ba5e678d8
Require dependencies to enable live reload in dev for Sidekiq.
2017-10-06 11:39:00 +08:00
Guo Xiang Tan
5012d46cbd
Add rubocop to our build. ( #5004 )
2017-07-28 10:20:09 +09:00
Neil Lalonde
1b3501b39b
FIX: discourse hub calls
2017-06-20 17:15:59 -04:00
Guo Xiang Tan
8dbe2c3ec4
FIX: Incorrect way to use Excon in `DiscourseHub`.
2017-06-20 08:32:45 +09:00
Guo Xiang Tan
48fb19d9e4
Fix hash style.
2017-06-19 07:51:06 +09:00
Guo Xiang Tan
3d1a7a02f7
Fix typo.
2017-06-19 07:49:32 +09:00
Alberto Aguirre
170a554747
FIX: version check
...
api.discourse.org server apparently does not like GET
requests that have a port number in the headers Host entry
Additionally fix the actual GET query; it should use query
parameters not a body.
2017-06-18 04:56:15 -05:00
Guo Xiang Tan
d82dbd565b
FIX: Remove dependency on `rest-client`.
2017-06-16 09:42:41 +09:00
Arpit Jalan
f3cd5f61c5
FEATURE: Send anonymized usage statistics to Discourse if Discourse Hub can't reach the site
2017-03-28 09:07:23 +05:30
Kurtis Rainbolt-Greene
393f49f224
Allow for a custom hub server
2017-01-06 14:54:38 -08:00
Neil Lalonde
53a463d7c1
Hub must be called with https
2016-03-02 17:51:13 -05:00
Neil Lalonde
19cba7bb0f
Version checks include the branch
2014-09-09 17:35:51 -04:00
Akshay
b4e38e5646
updated checks of environment with Rails.env by Rails.env methods
2014-08-18 15:36:47 +05:30
Neil Lalonde
acfe81e61f
FIX: add referer to version_check request
2014-08-14 17:30:05 -04:00
Jeff Atwood
f15d106eb9
remove all version stats
2014-08-11 12:42:03 -07:00
Neil Lalonde
939e8505a9
Remove hub username integration
2014-07-16 12:25:24 -04:00
Sam
42bf010f8a
Add more stats to version check
2014-05-12 09:06:43 +10:00
Neil Lalonde
9ca516e58d
Rename nickname to username in the code. Use new hub routes. (Old routes still exist as aliases for old Discourse instances.)
2014-03-12 12:39:36 -04:00
Neil Lalonde
bc8cd043ad
Send the locale of your site to the Discourse Hub
2013-11-22 15:30:47 -05:00
Neil Lalonde
981d8f6aea
Signup form: prefill username if Discourse Hub has a match for the email address. Also, fix some bad specs in username_checker_service_spec that were passing...
2013-11-19 14:15:28 -05:00
Neil Lalonde
bded4b26fa
Ask admins to fill in site_description on the dashboard, and send it to the hub
2013-09-11 16:32:49 -04:00
Sam
61281a3c81
invite only forums had very wonky logic, invited users were not being activated, invite_only forums were still registering users
2013-08-28 17:18:31 +10:00
Einar Jonsson
9085cec232
Move json hash from users controller to NicknameUnavailable
2013-08-26 15:00:11 +00:00
Neil Lalonde
2c1326f89b
Send login_required to discourse hub
2013-07-30 17:52:47 -04:00
Neil Lalonde
ed1b0ed0f1
Send user_count and a better url for your forum with the version check request
2013-05-27 16:30:11 -04:00
Neil Lalonde
e864e4141d
Fix topic_count in version check request
2013-04-25 17:19:06 -04:00
Neil Lalonde
2310851ad2
Send topic_count with version check requests
2013-04-24 14:13:20 -04:00
Neil Lalonde
e6ad51adce
Send contact_email along with version check
2013-04-24 12:55:01 -04:00
Neil Lalonde
c6ab9fec9d
Unregister forum membership at Discourse Hub when deleting a user
2013-04-15 14:52:07 -04:00
Neil Lalonde
016634d1d9
Don't memoize a SiteSetting in the DiscourseHub module because that breaks multisite support
2013-03-05 13:53:23 -05:00
Neil Lalonde
5c986be753
Send forum title and hostname along with version check
2013-03-01 16:02:06 -05:00
Neil Lalonde
c0371ff427
Add version checking that shows on the admin dashboard
2013-02-19 15:20:49 -05:00
Neil Lalonde
39eab7c425
Replace mentions of mothership with discourse_hub
2013-02-14 12:57:26 -05:00