Alex
94cd9e246f
[deploy] Add default for main_social_image ( #11126 )
...
* Add default for main_social_image
* Fix image URL and add spec
* Fix spec
* Move image_url helper into image module
* Fix typo in comment
Co-authored-by: Vaidehi Joshi <vaidehi.sj@gmail.com>
* Change URL helper logic
* Try something else
* Use ApplicationConfig
* Refactor
* Try again
* Try again with another approach
* Add specs for URL.local_image
Co-authored-by: Vaidehi Joshi <vaidehi.sj@gmail.com>
2020-10-29 10:07:14 -04:00
Jacob Herrington
d479834344
Do not set SiteConfig values in specs ( #11125 )
2020-10-27 15:56:31 -04:00
Ben Halpern
d822d8d7d9
Fall back to configured social image instead of hardcoded ( #9747 )
...
* Fall back to configured social image instead of hardcoded
* Move from constant to method for config inclusion
* Fix spec
* Fix test
2020-10-27 08:54:45 -04:00
Tudor Pavel
52cf81624e
Preserve newlines and indentation in <pre> tags from RSS import ( #10922 )
2020-10-20 09:25:57 -04:00
Mac Siri
dd8745ca33
[deploy] Store Article's main_image path unprocessed ( #10867 )
2020-10-16 14:46:37 -04:00
Rafi
2c6555939e
Handling links from different domain ( #10479 )
...
* Preventing url from other domains
* Converting slug to keyword
* Changing wording of error message
* Changing wording of error message
* Fixing breaking test
2020-09-29 13:36:32 -04:00
Hugo Peixoto
24e9f81f5a
Fix newlines being chomped in RSS import ( #10476 )
...
The CustomText converter was monkey patched to fix a bug related to
preserve_tags. Somewhere in that process, remove_inner_newlines was
changed to strip newlines completely, instead of replacing them with a
single space. This restores that functionality.
In development mode, files are not eager loaded. That means that the
converters were not being required, so it was not possible to reproduce
that issue in development mode (since it was falling back to the
original converter, which does not have the bug). This commit also adds
an initializer that requires every converter.
2020-09-29 10:38:36 -04:00
Molly Struve
635e9e7365
Bug Fix:Remove Reaction Index By Name ( #10430 )
2020-09-25 10:34:29 +07:00
Molly Struve
727b1a6134
Refactor:Remove Reactions Index ( #10426 )
2020-09-24 10:11:05 +07:00
Molly Struve
e9cb7b2fd9
[deploy] Refactor:Remove Reaction Search Code ( #10377 )
2020-09-23 12:27:50 -05:00
Michael Kohl
ebc894a07c
[deploy] Changes to profile field indexing ( #10313 )
...
* Update mapping
* Update user search serializer
* Add data update script for reindexing users
* Only index roles for persisted users
* Add conditional to profile search serialization
* Update data update scripts
* Update spec for data update script
2020-09-16 17:15:22 -04:00
Ben Halpern
3a469a99e2
[deploy] Enable admin-configured app_domain ( #10206 )
...
* Move app_domain from env var to siteconfig *within app area*
* Fix SiteConfig
* Don't change URL.domain yet
* Not use in fastly cache purge yet
* Session store magoo
* Revert domain issue
* Add SetCookie middleware
* Temporarily remove cookie middleware and release tasks
* Re-enable SetCookieDomain
* Add some more comments, get it ready for testing
* Remove host from url options and temporarily show errors
* Allow forwarded host to be cookie
* Fix typo
* Change invalidAuthenticityToken
* Properly set app domain
* Proper Fastly cache
* Remove config.app_domain
* Remove config.app_domain
* Explicitely set remember_user_token
* More play with cookies
* Fiddle with remember_user_token
* Add remember_user_token changes
* Monkeypatch devise
* Sessions controller
* Include rememberable
* Include rememberable
* Proper cookie monkeypatch
* Proper cookie monkeypatch
* Proper cookie monkeypatch
* Remove extra cookie code
* User sign in tweak
* Close the loop
* Experiment with carrierwave public_url
* Finalize carrierwave monkeypatch
* Remove async controller specs
* Change some tests
* Update domain test
* Remove temporary production.rb change
* modify cookie logic
* Remove unneeded changes
* Remove unneeded changes
* Explicitely pass host
* Fix linting
* Fix social image test
* Add some cookie tests
* Modify article url
* Fix canonical urls
* Fix typo
* Remove sessions controller
* Remove devise monkeypatch
* Add monkeypatch
* Remove elsif
* Update spec/helpers/application_helper_spec.rb
Co-authored-by: Michael Kohl <citizen428@dev.to>
* Adjust remember_cookie_sync
* Remember user token experimentation
* Fiddle with devise
* Properly configure devise
* Fix typo
* Fix formatting issue
* Add comment about middleware
* Fix typo
Co-authored-by: Vaidehi Joshi <vaidehi.sj@gmail.com>
* Remove commented-out code
Co-authored-by: Michael Kohl <citizen428@dev.to>
Co-authored-by: Vaidehi Joshi <vaidehi.sj@gmail.com>
2020-09-11 09:38:34 -04:00
rhymes
b185dca976
[deploy] Remove draft articles with duplicate feed source URL and cleanup invalid data: take 2 ( #10239 )
2020-09-08 11:53:41 -05:00
Michael Kohl
acaeba0b3e
Fix spec ( #10235 )
2020-09-08 09:10:37 +07:00
Molly Struve
2f36630ff0
Revert "Remove draft articles with duplicate feed source URL and cleanup invalid data ( #10205 )" ( #10209 )
...
This reverts commit 375f79099e .
2020-09-04 12:22:06 -05:00
rhymes
375f79099e
[deploy] Remove draft articles with duplicate feed source URL and cleanup invalid data ( #10205 )
2020-09-04 11:20:59 -05:00
Molly Struve
83d44401f5
[deploy] Index Reaction created_at Timestamp ( #10142 )
2020-09-02 12:56:33 -05:00
Michael Kohl
f023c6174f
[deploy] Add data update script for profile fields ( #10119 )
2020-09-02 09:54:04 +07:00
Molly Struve
79b00d4960
[deploy] Optimization:Throttle Noisy Honeycomb Events More ( #10143 )
2020-09-01 15:21:07 -05:00
Michael Kohl
eff28766fc
[deploy] Migrate profile data ( #9750 )
...
* Add temporary Rake task for creating profile fields
* Fix problems after splitting branch
* Add profile migration Rake task
* Add unique index to profiles
* Add migration code to users
* Be smarter about updating profiles
* Update spec
* Update Bullet config
* Fix typo
* Change temporary rake task to data update script
* Re-add profile factory and update spec
* Change private declaration to make CodeClimate happy
* Update comment
* Drop validation in favor of DB default
* Update spec
2020-08-20 11:17:57 +07:00
Molly Struve
adc9c2ab3c
Optimization:Collect More Specific Data From Sidekiq Jobs ( #9882 )
2020-08-19 21:24:08 -04:00
Josh Puetz
7d4a7cc883
[deploy] Change lingering /internal paths to /admin ( #9673 )
...
* Change lingering `/internal` paths to `/admin`
* Fix multiline test expectation
2020-08-07 19:52:39 -04:00
Molly Struve
d120fc7e54
[deploy] Bug Fix:Rename Listing Search Field in Elasticsearch to Fix Searching ( #9609 )
2020-08-03 10:18:17 -05:00
Michael Kohl
26ee8f194c
Rubocop: Move from OpenStruct to Struct in Organization ( #9431 )
...
* Move from OpenStruct to Struct in Organization
* Add data update script
* Introduce Articles::CachedEntity model
* Update data update script for new model
* Fix comment
* Update jbuilder
2020-07-30 21:04:05 +07:00
shelby spees
a6c4f0b884
[deploy] Update NoiseCancellingSampler to make it more self-documenting ( #9359 )
2020-07-16 15:06:49 -05:00
rhymes
f1ec04a0c9
Rubocop: move dot in multi-line calls to leading position ( #9262 )
2020-07-16 15:51:11 +02:00
rhymes
b3060bc475
Fix Style/SingleLineBlockParams, RSpec/MultipleExpectations and remaining Layout/LineLength ( #9204 )
...
* Fix Style/SingleLineBlockParams
* Fix RSpec/MultipleExpectations and Layout/LineLength
* Restore test to previous version for speed
* Remove useless params
2020-07-10 11:23:02 +02:00
rhymes
5b62811c98
[deploy] Rubocop: fix violations of Layout/LineLength ( #9197 )
2020-07-08 08:36:36 -05:00
Molly Struve
4e0fee644c
[deploy] Feature: Setup Admin Area to Update Vault Secrets ( #8935 )
2020-06-29 15:08:09 -05:00
Molly Struve
9fb2a7c6b2
[deploy] Remove Vault ENV variables from Envfile so they arent Required in Prod ( #8895 )
2020-06-24 15:02:16 -05:00
Molly Struve
0767c34379
[deploy] Feature: Setup Vault and AppSecrets Wrapper Class ( #8891 )
2020-06-24 14:13:37 -05:00
rhymes
36786cf554
Rails 6: enable zeitwerk autoloader ( #8766 )
...
* More loading fixes
* Go back to OpenStruct
* Shuffle things around
* Remove obsolete patches and unneeded requires
* Disable config.add_autoload_paths_to_load_path
* Fix pre-require errors
* Config not reloader
2020-06-22 16:27:55 +02:00
rhymes
7309478420
Rails 6 autoloader: prepare liquid tags code ( #8707 )
...
* Move liquid patches to lib/liquid
* Rename classes properly
2020-06-17 16:50:14 +02:00
rhymes
689fb6efb6
Routine rubocop fixes ( #8137 )
...
* Update gems
* rubocop -a
* rubocop --auto-gen-config
2020-05-29 11:56:52 +02:00
Michael Kohl
7f75f99560
[deploy] Rename classified listings ( #7910 )
...
* Change models and related files
* Update controllers and specs
* More renaming
* Seek and destroy, I mean search and replace
* Round up the stragglers
* Ground control to Major Travis...
* More fixes
* PR feedback
* Various fixes
* Rename view
* Fix list query builder
* Unify request specs
* Fix some API spec errors
* Fix remaining API specs
* Make spec conform to API
* Fix leftover problems
* Fix JS tests
* Fix column name in select
* Fix API specs
* Fix search specs
* Paging Mr. Travis
2020-05-27 13:35:09 +00:00
Andy Zhao
e686d63d78
[deploy] Add public reactions count fields to Elasticsearch ( #7956 )
...
* Add public_reactions_count field to elasticsearch
* Add new data update scripts and update old ones
* Use BulkIndexWorker to batch indexing
* Use proper search class for handling feed content
* Remove redundant script oops
* Rename data update script and remove old specs
* Combine specs into one file
2020-05-20 13:06:48 -04:00
Liz Fong-Jones
a6305fd0a3
[deploy] Honeycomb instrumentation: distinguish between literal vs prefix matching for sampling ( #7936 )
2020-05-19 09:49:41 -05:00
Molly Struve
dbb5c752ab
[deploy] Sample Noisy Honeycomb Spans ( #7891 )
2020-05-18 10:36:01 -05:00
Molly Struve
385e167f74
Clear Elasticsearch Data Instead of Resetting Entire Index for Specs ( #7602 )
...
* Clear Elasticsearch Data Instead of Resetting Entire Index for Specs
* only reset for specs that are messing with index creation and deletion, recreate indexes before and after those
* add back elasticsearch meta info to specs and update data update specs
* update serializer specs
* update search and rest of specs with new meta data tag
2020-04-30 11:59:10 -04:00
Molly Struve
ee373fa6c0
[deploy] Remove Algolia from Article Model ( #7540 )
2020-04-28 09:55:48 -05:00
Ben Halpern
3f61cce32b
[deploy] Render json+ld as proper json ( #7404 )
2020-04-21 14:16:21 -04:00
Molly Struve
51b9312cf1
silence duplicate data update scripts to optimize starting up a new env ( #7340 )
2020-04-17 12:30:56 +02:00
Molly Struve
01adfc377c
[deploy] Index all readinglist Reactions into Elasticsearch ( #7310 )
2020-04-16 09:36:05 -05:00
Molly Struve
91972dd2c4
ensure that when Tag and ActsAsTaggableOn::Tag are updated their respective related docs are as well ( #7218 )
2020-04-14 08:38:09 -05:00
Molly Struve
e4de9c2742
[deploy] Resync Elasticsearch Docs that had Previous Bugs ( #7230 )
2020-04-13 09:39:19 -05:00
Molly Struve
29b1d0c32c
[deploy] Index Tags on Creation to via ActsAsTaggableOn in Elasticsearch ( #7104 )
2020-04-07 10:14:24 -05:00
rhymes
f2b0be2043
Add Slack messengers: part 2 ( #6916 )
...
* Add Slack::Messengers::ArticlePublished
* Add Slack::Messengers::ReactionVomit
* Add Slack::Messengers::CommentUserWarned
* Add missing URL helpers
* Add Slack::Messengers::ArticleFetchedFeed
* Remove callback condition
* Build, don't create
2020-04-03 17:00:06 +02:00
Ben Halpern
e35d55c422
Add pagination to tag pages for better SEO crawling ( #6771 ) [deploy]
...
* Add pagination to tag pages for better SEO crawling
* Modify system specs
* Add some tests
* Finalize tests
* Fix things up
* Add url helpers
2020-03-27 10:34:42 -04:00
Molly Struve
d20a50aa2b
sync feed content documents in Elasticsearch ( #6888 ) [deploy]
2020-03-26 13:11:09 -05:00
rhymes
cfb64a1c68
Add URL module and article_url, user_url helpers ( #6833 )
...
* Add AppURL with .article and .user
* Use URL.url and URL.user
* Add article_url and user_url helpers
2020-03-25 13:54:45 -04:00