Граф коммитов

112 Коммитов

Автор SHA1 Сообщение Дата
Brian Beggs f959e2ecec Upgrade Mongoid to 5.x release 2015-12-04 11:35:33 -05:00
Greg Price bbd83e3cd2 Remove unused endpoints 2014-08-29 16:52:03 -04:00
jsa ead2f5e399 use a single index in elasticsearch for both document types.
WARNING: Must rebuild search index!

Starting with this change, the name of the search index used by the
service has changed.  The new search index must be created before
deploying this version of the application.  There are two ways of doing
this:

* Offline (recommended)
Follow [these instructions](https://github.com/edx/cs_comments_service/wiki/Search-Indexes#offline-procedure) to perform an offline rebuild.

* Online
1. Deploy this code to a host which is not serving HTTP requests, and
run `rake search:rebuild`
2. When the rebuild finishes, deploy the updated code on live servers.
3. run `rake search:catchup[MINUTES]` where minutes is the amount of
time it took to run rebuild in step 1.
4. run `rake search:prune`
2014-05-28 15:26:16 -04:00
jsa 6beafbc9a3 don't check meaningless "ok" field in output from Tire config endpoint
its value is always true regardless of cluster health, and it is removed
in ES v1.x.
2014-05-01 10:50:18 -04:00
jsa 46ee5db8ce separate heartbeat and selftest endpoints, and update specs.
* don't require api key for heartbeat, nor expose tracebacks.
* add tests for heartbeat.
* fix test with hard tabs.

JIRA: FOR-96
2014-04-02 09:05:45 -04:00
jsa 10d632a2a2 add heartbeat endpoint 2014-03-20 16:00:17 -04:00
Greg Price eeb9010e2f Respect Accept-Language when getting strings 2014-02-12 10:29:10 -05:00
jsa e8e778f49d use yajl for json serialization 2013-12-18 18:40:38 -05:00
jimabramson 5c5a5a6c7a deprecate unused tagging feature 2013-12-17 17:59:18 -05:00
jimabramson f8fb343aa2 set up i18n
* add i18n gem
* configure default_locale (en-US)
* externalize strings
* configure locale fallbacks
* add tests
2013-12-17 17:58:53 -05:00
Jim Abramson 3e73cf880c Merge pull request #69 from edx/feature/jsa/more-newrelic
adjust new relic method tracing.
2013-11-06 12:15:07 -08:00
Greg Price 1343ca1ef5 Fix Content-Type header
The default Content-Type is text/html, but all of our endpoints return
JSON, so Content-Type is now correctly set to application/json.
2013-11-06 14:36:29 -05:00
jimabramson b9277ab7ed adjust new relic method tracing.
(also provide a switch for query-level debugging output from moped.)
2013-11-05 16:39:56 -05:00
jimabramson 8cec6a3648 log some identity-map-related stats, if enabled 2013-10-29 18:09:33 -04:00
Greg Price cf39aabdd1 Allow authentication by HTTP header
Previously, authentication could only be done using a URL parameter,
which appears in various logs. Now, clients can authenticate using a
more appropriate HTTP header.
2013-10-11 11:55:42 -04:00
jimabramson 7299378c5e refactor to generate thread list views more efficiently.
additionally, remove unused caching features and update mongo indexing.
2013-10-07 14:19:49 -04:00
jimabramson 2f2ab294cb add simple filtering on inbound content based on a collection of forbidden content bodies 2013-09-13 15:19:33 -04:00
Kevin Chugh 1f5684a7a1 restore notifications api post-merge-rollback 2013-07-31 14:55:09 -04:00
jimabramson 55f70cb949 Revert "Merge pull request #41 from edx/feature/kevin/deep_search"
This reverts commit d692c082ab, reversing
changes made to c2a5325644.
2013-07-22 16:46:18 -04:00
Kevin Chugh d692c082ab Merge pull request #41 from edx/feature/kevin/deep_search
Feature/kevin/deep search
2013-07-18 11:30:17 -07:00
Kevin Chugh 05f285a934 limit the number of comments searched, prepare for ES and Tire upgrade to allow indexing comments comment_thread_id 2013-07-11 06:25:12 -04:00
e0d f0fa00dfb8 changing loading strategy to use env variable. 2013-07-09 12:26:00 -04:00
e0d cef1a45dc8 enabling profiling for the load test environment 2013-07-09 11:45:44 -04:00
Kevin Chugh 7fc690b5ef fix bad timings 2013-07-02 20:20:21 -04:00
Your Name 96ab170bca deep search performance testing working with duct tape to avoid 401 error in development 2013-07-02 19:11:52 -04:00
Arjun Singh 6074efe72b Merge hotfix/speedups_5_12_new 2013-05-22 13:38:12 -07:00
Arjun Singh c2bbd12703 Disable observers temporarily. 2013-05-12 16:07:48 -07:00
Arjun Singh 449f7a426a Enable the identity map. 2013-05-12 16:07:38 -07:00
Kevin Chugh 6a27f7aa99 fix mega merge conflicts 2013-03-29 07:33:04 -04:00
Your Name 7ecb849db4 candidate without inline 2013-03-13 18:46:20 -04:00
Your Name b860ebdbfe candidate without inline 2013-03-13 18:40:21 -04:00
e0d 166685bd65 adding new relic for edge environments 2013-01-31 15:04:20 -05:00
Your Name a9fcc4ea6e updated paths 2012-11-20 16:59:58 -05:00
David Ormsbee 6d1be93d99 include loadtest environment for loading newrelic_rpm 2012-09-03 15:19:01 -04:00
David Ormsbee 330f252f70 Convert to Heroku config 2012-09-03 14:57:30 -04:00
Rocky Duan c03b27bc0a forgot to commit... 2012-08-21 17:23:47 -07:00
Rocky Duan 0060851a5b add shared key authentication 2012-08-21 13:22:27 -07:00
Rocky Duan 818fa57311 caching & benchmark for search query 2012-08-17 13:34:53 -07:00
Rocky Duan 20a5fa915e removed unnecessary code 2012-08-16 23:13:44 +04:00
Rocky Duan 376aa1dc67 weird 2012-08-15 22:35:38 -07:00
Rocky Duan e32f8e54bf fixed spec 2012-08-15 12:40:11 -07:00
Rocky Duan ceaf5c0cc3 modified search 2012-08-15 11:32:28 -07:00
Rocky Duan d62ac7eb76 split api into separate files 2012-08-14 18:32:59 -07:00
Rocky Duan aaded49d19 add course-specific user information 2012-08-14 16:00:36 -07:00
Rocky Duan 77bfef7a1e trending tag query 2012-08-07 16:42:04 -04:00
Rocky Duan c6dd1a8a85 recent activity search 2012-08-07 16:24:28 -04:00
Rocky Duan 11ff55bb5f more_like_this feature for threads 2012-08-07 11:35:34 -04:00
Rocky Duan e547192367 turn to last page when page exceeds max page 2012-08-07 01:52:22 -04:00
Rocky Duan 5615c7260f sort by last activity 2012-08-06 22:25:43 -04:00
Rocky Duan 0873091811 Merge branch 'elasticsearch' 2012-08-06 17:15:21 -04:00