rhymes
e27c9b77a3
Refactor Elasticsearch client access ( #6307 ) [deploy]
...
* Add Transport module to Search
* Test public methods only
* Add Search::Client with exception handling
* Remove Transport and request do
* Replace SearchClient with Search::Client
2020-02-28 11:38:37 -05:00
Alex
e40c28117b
Search ClassifiedListings backend code ( #6348 )
...
* Add search methods
* Add spec for new search methods
* Add QueryBuilder for ClassifiedListing
* Add QueryBuilder spec for ClassifiedListing
* Refact build_query in ClassifiedListings
* Refactor logic for filter and query conditions
* Refactor index_documents to helper_method
* Update elasticsearch helper for single objects
* Refactor specs from stubbing to record update
* Update search and specs for query_builder
* Refactor set_size
* Update Search::ClassifiedListing
- Add DEFAULT_PAGE constant
- ADD DEFAULT_PER_PAGE constant
- Add pagination
* Fix paging
* Add pagination specs
* Remove manual Array conversion for Array.wrap()
* Change guard clause to .key? for readability
2020-02-28 10:51:33 -05:00
Josh Puetz
4cb60958dd
Add page and article limit options ( #6349 ) [deploy]
2020-02-28 06:45:09 -06:00
Anna Buianova
df93e8d41e
Custom social preview template for tags ( #6290 ) [deploy]
...
* Custom social preview template for tags
* Added index on tags social_preview_template + small refactoring
* Add checks if index exists to tags migration
2020-02-27 17:56:21 -05:00
Anna Buianova
946a94e560
Removed misleading information about sponsorships renewal ( #6257 )
...
* Removed misleading information about sponsorships renewal
* Change the spec not to rely on sponsorship auto-renewal info
2020-02-27 17:55:12 -05:00
Anna Buianova
bef07a5834
Add nav_image and dark_nav_image fields to org settings form ( #6336 ) [deploy]
2020-02-27 17:33:52 -05:00
Michael Kohl
32e30c8844
Mailchimp resubscribe ( #6256 )
...
* Re-subscribe user to newsletter by setting MC status to pending
* Add guard clause and new spec
* Make trait name more explicit
* Fix guard clause and spec
2020-02-27 15:48:38 -05:00
Josh Puetz
df98591d6d
Fix flapping test ( #6346 ) [deploy]
2020-02-27 14:44:04 -06:00
Josh Puetz
47ec81cf14
Implement home page feed article ranking in Ruby ( #6320 ) [deploy]
...
* WIP - JS feed logic ported to Rails
* Port JS ranking logic to ruby
* PR feedback, sort call from stories vs feeds controller
* Optimize `score_followed_tags`
* Optimize article ranking
* remove unused RankedArticle struct
2020-02-27 12:06:24 -06:00
Alex
037b2fa432
Fix pagination on Search::ChatChannelMembership ( #6328 ) [deploy]
...
* Fix pagination logic
* Fix typo slig --> slug
* Add spec for returning empty Array vs nil
* Add spec for pagination
* Change expectation of test for empty Array
2020-02-27 09:56:05 -08:00
Mohamed ABDELLANI
da133bcbb5
Require body_markdown Be Present for Articles ( #5982 ) [deploy]
2020-02-27 11:44:17 -05:00
Vaidehi Joshi
3bc0f49861
Only send notifications that belong to an active broadcast ( #6319 ) [deploy]
...
* Use active in place of sent on internal broadcast routes
* Add and use active scope on broadcasts
* Update seeds + specs to use active broadcasts
* Add note about active broadcasts to /internal/broadcasts page
2020-02-27 08:02:45 -08:00
Molly Struve
cf94f76ccd
Notify slack when release phase fails ( #6300 ) [deploy]
2020-02-27 10:50:59 -05:00
Molly Struve
c64ca9750c
Default search by active chat channel memberships only ( #6325 ) [deploy]
2020-02-27 08:12:36 -05:00
Michael Kohl
ec8ee54559
Delete classified listings when deleting user ( #6258 )
2020-02-26 14:44:09 -05:00
Andy Zhao
ac58bbeeb9
Only show the ghost option if user has content ( #6313 )
2020-02-26 14:10:13 -05:00
rhymes
2fcdb9bcaa
Use DataUpdateScript.scripts_to_run? in development ( #6309 )
2020-02-26 13:34:16 -05:00
Jacob Herrington
4b47611764
Remove existing mods from potential mod list ( #6235 ) [deploy]
...
This is a request from Peter, and it should make searching for potential
admins a bit less tedious.
2020-02-26 12:14:28 -05:00
Anna Buianova
e59e523ace
Hide information about expired sponsorships from "partnerships" pages ( #6308 )
...
* Hide information about expired sponsorships from the tag and level sponsorships
* Removed initial notes from sponsorships specs
2020-02-26 11:26:39 -05:00
Michael Kohl
6ad74517d7
[deploy] Remove github_repos from public API ( #6304 )
2020-02-26 11:23:39 -05:00
Molly Struve
8f0bfa5e08
Implement Search for Chat Channels with Elasticsearch ( #6282 ) [deploy]
2020-02-26 11:06:38 -05:00
Fernando Valverde
5bb9890c09
Adds administrate gem CSS & JS assets to Sprockets Manifest ( #6291 ) [deploy]
...
* Adds administrate gem application.css & applicatiion.js to Sprockets manifest
* Adds admin tests
2020-02-26 09:21:09 -06:00
Mac Siri
6d4925a17d
Ignore referer on /report-abuse if it's SW.js ( #6295 ) [deploy]
2020-02-26 10:18:22 -05:00
rhymes
145d5e610e
Use scopes for Follow instead of where all the time ( #6149 ) [deploy]
2020-02-25 19:29:52 -05:00
Juanito Fatas
cc09ed7cd1
Do not escape underscored username in code or codeblocks ( #5785 ) [deploy]
...
It only runs when markdown has underscored usernames.
Skip escaping underscore when content is in code or codeblock. It works by
going through all lines of a markdown content. Find underscored username.
Escape if we are not in the codeblock.
The (?<!) is negative lookbehind which rules out the case
when a underscored username is present in code, e.g., `@_dev_` will not be escaped.
2020-02-25 17:30:08 -05:00
Alex
4b5bee0ac9
Remove old model specific search index workers ( #6297 ) [deploy]
2020-02-25 16:49:56 -05:00
Anna Buianova
057b1c7664
Fix Sponsorship validations to take expiration date into an account ( #6276 )
...
* Fix Sponsorship validations to take expiration date into an account
* Use prettier times in sponsorship specs
2020-02-25 16:41:28 -05:00
Alex
9889a49838
Fix index_to_elasticsearch_worker_spec ( #6294 ) [deploy]
2020-02-25 11:57:38 -08:00
Alex
da259107bd
Refactor logic to index to Elasticsearch ( #6286 ) [deploy]
...
* Refactor logic to index to Elasticsearch
* Rename worker argument to object_class
* Change to .constantize for better error messaging
2020-02-25 11:06:42 -08:00
Alex
8f7d7cabbb
Add DataDog monitors ( #6188 )
...
* Record invalid_uri in CacheBuster to Datadog
* Add Stripe DataDog tracking
* Update Datadog
* Change DataDog to Datadog
* Fix specs
* Add tags to stripe.errors
* Update Stripe tags in controller for Datadog
* Fix typo
* Update Datadog tags to distinguish card
* Add path tag
2020-02-25 11:06:25 -08:00
rhymes
58f91d2b16
Centralize search error handling ( #6227 ) [deploy]
2020-02-25 14:03:49 -05:00
Spencer
010c61a44a
Allow comments without a commentable to be edited and destroyed ( #5945 )
2020-02-25 13:45:50 -05:00
rhymes
33a11adca8
Various optimizations ( #6249 ) [deploy]
...
* Pluck over map
* Explain why map makes sense there
* Refactor reactions controller a bit and iterate only once
* Use group by instead of N counting queries
* More positive
* Simplify BufferedArticlesController
* Less queries for MailchimpBot
* Use Rails instead of SQL
* Build comment_ids only when needed
2020-02-25 13:42:24 -05:00
rhymes
cf11268949
Add logging to data scripts runner ( #6201 )
2020-02-25 13:41:43 -05:00
rhymes
fd1c13c7b6
API listings: improve caching ( #6247 )
2020-02-25 09:24:19 -05:00
Gonzalo Ricco
0b03240e5b
Add rescue InvalidURIError in mastodon_url validation ( #6174 ) [deploy]
2020-02-24 19:13:40 -05:00
Matej Minárik
89dd843a50
Fix Flaky Comment Spec ( #6250 )
2020-02-24 18:48:45 -05:00
Matej Minárik
e9a0efbbf2
Fix broken StoriesController#show article with bad chars ( #6248 ) [deploy]
2020-02-24 13:41:06 -05:00
rhymes
168f5c597c
Bump Twitter to 7.0 and refactor TwitterBot ( #6246 ) [deploy]
2020-02-24 08:34:41 -05:00
rhymes
aa5f4b8d85
Remove leftover Stripe subscriptions code ( #6243 )
2020-02-24 08:33:36 -05:00
Josh Puetz
98a2aaf0ce
Cloudify article main images in feed ( #6233 ) [deploy]
...
* Cloudify article main images
* Removed commented line
2020-02-21 15:42:34 -06:00
Michael Kohl
d13cbbb3c1
Change authorization to signed in users ( #6136 ) [deploy]
2020-02-21 13:53:30 -05:00
rhymes
8c7aa2e494
Rename DataDog to Datadog ( #6226 )
2020-02-21 12:00:30 -05:00
Molly Struve
5f50561d82
Backend ChatChannelMembership Search using Elasticsearch ( #6217 ) [deploy]
2020-02-21 10:25:38 -05:00
Michael Kohl
c9b641928f
Clean up chat channels when deleting users ( #6225 )
2020-02-21 09:59:22 -05:00
rhymes
207621f739
Ignore User.organization_id ( #6203 )
...
* Ignore User.organization_id
* Fix specs that are still using organization_id
2020-02-21 09:51:49 -05:00
Josh Puetz
e836ccb94f
Fix nil organizations in home page feed endpoint ( #6223 ) [deploy]
...
* wip
* Fix up test
* Reverted accidental change to seeds.rb
Co-authored-by: Nick Taylor <nick@iamdeveloper.com>
2020-02-21 08:36:15 -06:00
Molly Struve
318ee32cdd
Add worker for removing Elasticsearch docs ( #6213 ) [deploy]
2020-02-21 08:13:36 -05:00
Jacob Herrington
a2b7415836
Fix some erblint complaints ( #6220 )
2020-02-20 21:10:41 -06:00
Molly Struve
18d9bf1de7
rescue ES BadRequest errors, record in Datadog, and return an empty array ( #6219 ) [deploy]
2020-02-20 18:04:19 -05:00