Molly Struve
4ab202ab0a
[deploy] Execute Reading List searches in Elasticsearch ( #7440 )
...
* Execute Reading List searches in Elasticsearch
* add additional readinglist front tests
2020-04-24 10:30:17 -04:00
Mac Siri
57ae315c31
[deploy] Generalize Onboarding's task-card image ( #7452 )
...
* Generalize Onboarding's task-card image
* Rename SiteConfig's onboarding_taskcard_sticker
* Add & reorganize #config_params
* Update Internal::Config's view
* Add spec
2020-04-24 10:24:50 -04:00
Michael Kohl
02d23a0673
Refactor jbuilder ( #7411 )
...
* Refactor jbuilder for articles
* Refactor remaining jbuilder files
* Fix specs
* Remove content_truncated from response template JSON
Co-authored-by: Ben Halpern <bendhalpern@gmail.com>
2020-04-24 12:49:12 +02:00
Julianna Tetreault
2a74f6f811
Refactor SEO Optimized Images ( #7494 )
...
* Add seo_optimized_images method to article_json_ld
* Add inline documentation for images in method
* Add to stories_controller.rb with other JSON-LD
* Fix inconsistencies in stories_show_spec.rb tests
2020-04-23 19:26:29 -04:00
Alex
8b51d8e4b8
[deploy] Fix Fastly rake task spec and Travis CI ( #7487 )
...
* Try changing exit to next
* Add breaking test
* Fix search.rake
* Remove test failure
2020-04-23 16:06:57 -04:00
Alex
b6664456c0
[deploy] Validate filenames server-side ( #7405 )
2020-04-23 14:30:59 -05:00
Alex
cc408d50e0
Fix Travis CI ( #7486 )
2020-04-23 13:23:34 -05:00
rhymes
6d9ecb45e6
[deploy] Authentication refactoring: improve testing on OmniauthCallbacksController ( #7439 )
...
* Improve testing on OmniauthCallbacksController
* Remove removal of legacy cookie and added validation comments
2020-04-23 17:27:04 +02:00
Molly Struve
edcd019e9c
[deploy] Throttle General Site Requests ( #7418 )
2020-04-23 08:58:27 -05:00
Ridhwana
17fdc556ee
Generalization: Replace static dev emails with configurable ones. ( #7438 )
...
* feat: update the email addresses in the site config
* chore: update the default email address everywhere
* feat: update the template for the config
* chore: remove default_site_mail as an allowed parameter
* feat: change biz@dev.to to teh business email address and with a subject
* feat: update partners@dev.to to use SiteConfig.email_addresses[:business]
* feta: update to business email address
* feat: update members@dev.to to use the site config
* feat: update privacy email
* chore: Anna's suggestion to loop through object instead of keys
2020-04-23 11:26:58 +02:00
Michael Kohl
9df68f3920
Use new classified listing categories ( #7250 )
...
* Add ClassifiedListingCategoryModel
* Add data update script for classified listing categories
* Refactor and fix specs
* Resolve conflict
* Incorporate PR feedback
2020-04-23 10:06:58 +07:00
Molly Struve
73120a67c9
[deploy] Bug Fix: Use strings with colons for all Datadog tags ( #7442 )
2020-04-22 12:24:57 -05:00
ludwiczakpawel
16560d9ef1
Settings style updates: Crayons! ( #7393 )
...
* .
* .
* .
* snapshot
* whoops
* halifax
* tests
* little fixes
* little fixes
* test? i guess..
* .
* minor fixes
* Update schema.rb
* Use shared logo_design in new org partial
* little fix
* Fix org spec
* decrayonsifying rich-selector
* if statement
Co-authored-by: rhymes <rhymesete@gmail.com>
2020-04-22 19:18:19 +02:00
Maja Komel
4499e5eb6e
[deploy] Add Wikipedia liquid tag ( #7193 )
2020-04-22 17:54:56 +02:00
Alex
397734b29c
Generalize Fastly rake task ( #7349 )
...
* Generalize Fastly rake task
- Update Rubocop to disable DescribeClass on rake task specs
* Change default Fastly ENV vars to ""
* Move snippet name to ENV
* Update ENV to FASTLY_WHITELIST_PARAMS_SNIPPET_NAME
* Add FASTLY_WHITELIST_PARAMS_SNIPPET_NAME to the docs
* Update docs
* Quick refactor
2020-04-22 11:49:54 -04:00
Vaidehi Joshi
638fd8f1ad
[deploy] Wrap user/identity coupled logic in a transaction ( #7368 )
...
* Wrap user/identity coupled logic in a transaction
Creating a user and then setting an identiy should occur as an all-or-nothing step.
Wrapping this in an ActiveRecord::Transaction ensures that we don't update an identity
unless we succesfully create/update the user first in the same database transaction.
* Allow errors from authenticator service to bubble up
* Address some issues with logic in ActiveRecord::Base.transaction
* Pull out calls to DataDog from transaction.
* Add additional DataDog call in case something goes wrong in the transaction.
* Rename some methods, add some specs.
* Re-raise errors after notifying DataDog
* Add error message to DataDog tags in Authenticator
2020-04-22 11:05:46 -04:00
Anna Buianova
983c3d28dd
Replaced remaining hardcoded DEV with the configurable community name ( #7435 )
...
* Replaced hardcoded DEV and dev.to remainders with the configurable name
* Removed hardcoded dev.to from the rss feed
2020-04-22 17:16:21 +03:00
Molly Struve
de88a08ebd
[deploy] handle rate limit errors gracefully ( #7422 )
2020-04-22 08:55:26 -05:00
Molly Struve
556bb565bf
[deploy] allow option to search by all tags in Elasticsearch for reactions ( #7425 )
2020-04-21 18:30:04 -04:00
Josh Puetz
98365c878e
Parse comment html as fragments instead of docs ( #7419 )
2020-04-21 15:01:44 -05:00
Molly Struve
13e8ea1f64
Ensure records are updated properly after a user merge ( #7416 )
2020-04-21 14:17:11 -04:00
Ben Halpern
3f61cce32b
[deploy] Render json+ld as proper json ( #7404 )
2020-04-21 14:16:21 -04:00
Molly Struve
a813598998
[deploy] Ensure Readinglist Reactions are Removed from Elasticsearch when Deleted ( #7402 )
2020-04-21 08:44:15 -05:00
Ridhwana
a2f1a0049f
Removal of morrrre hardcoded dev.to links ( #7390 )
...
* feat: remove 90% of hardcoded dev.to links now
* chore: update tests
* chore: implement suggested changes
* chore: update url
* chore: update to use URL helper
2020-04-21 11:50:18 +02:00
Molly Struve
082d1395f6
[deploy] fix filtering by approved bug ( #7391 )
2020-04-20 19:56:13 -04:00
Molly Struve
2f6952ed38
raise AR not found error if Userblock is not found ( #7388 )
2020-04-20 09:56:21 -05:00
rhymes
e97d2ccf63
[deploy] Improve badge slug generation ( #7386 )
...
* Fix badge generation and add tests
* Add unique index to badges slug
2020-04-20 15:47:44 +02:00
Ridhwana
7bcacfa3a6
Update feedback messages to be general ( #7373 )
...
* feat: update feedback messages to be general
* spec: update the feedback test
2020-04-20 10:22:31 +02:00
Ridhwana
6dbc838bae
[deploy] Update our mailers to be generalized ( #7359 )
...
* feat: make the from in the email to be dynamic
* feat: hardcoded mailer dev.to
* feat: oops hardcoded email addresses in the terms
* chore: remove some whitespace
* update editor guide
* feat: new reply email
* feat: new message mailer
* feat: new follower email
* feat: capitalize the button
* feat: rename the link
* feat: capitalize the button
* feat: generalize the urls
* feat: generalise the url
* feat: dynamic DEV
* feat: update the specs
* feat: DEV digest generalisation part 1
* fix: the method is accessed by tag_url and so the default parameter needs to be set at this level and not at self.tag
* fix: use the tag model instance instead of passing through just the tag name (so that we can use tag_url)
* chore: make code climate happy
* chore: more robocop
* feat: add a default url back for self.tag
* test: fix the feedback helper spec
* fix: spec to be general
* fix: oops :(
* refactor: user_settings_path
* chore: use code_of_conduct_path
* chore: robocop
* chore: use connect path
* chore; use the notifications symbol
* chore: misc path
* feat: simplify url
* feat/fix: change the order of the helpers and use user_url
* chore: user_url
* capitalise
* chore: update article path
2020-04-17 15:35:35 -04:00
Fernando Valverde
f2ee0378f9
[deploy] Decorator podcast episode metadata ( #7303 )
...
* Moves podcast episode metadata to decorator
* Updates the podcast episode metadata to use image_url
* Syntax tweaks, initializeMedia() fix for initialized audio & brought back use strict
2020-04-17 12:52:11 -06:00
Molly Struve
61b6f8ea3e
[deploy] record identity creation metrics ( #7366 )
2020-04-17 13:15:03 -05:00
Molly Struve
3832e9356d
rescue Addressable::URI::InvalidURIError and mark podcast ep unreachable ( #7343 )
2020-04-17 13:11:08 -05:00
rhymes
1b93666b3b
[deploy] Add user_id presence validation for Identity ( #7365 )
...
* Add user_id presence validation for Identity
* Remove duplicated validation
* Save user within build_user
* Fix typo
* Fix spec with in memory user
2020-04-17 20:02:26 +02:00
rhymes
a2893056b6
Routine rubocop fixes ( #7356 )
...
* rubocop -a
* Fix stuff
* rubocop -a again
* autocorrect
2020-04-17 15:48:39 +02:00
Molly Struve
2d40174a92
implement backend search functionality for readinglist Reactions ( #7308 )
2020-04-17 08:37:22 -05:00
rhymes
ccea13bc21
Hide the Shop in homepage if not present ( #7358 )
2020-04-17 13:28:27 +02: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
Ben Halpern
03c28a5671
[deploy] Create private group chat channel for orgs ( #7270 )
...
* WIP chat channel for orgs
* Finalize
* Enable upsert functionality for role switch
* Private group chat
* Rearrange permissions code
* fix typo
2020-04-16 17:02:06 -04:00
Andy Zhao
f5ec83653c
[deploy] Finalize and add response templates feature ( #7068 )
2020-04-16 15:53:29 -04:00
Alex
cc6249beff
[deploy] Update whitelisted params on Fastly on deployments ( #7279 )
...
* Add Fastly whitelisted params
* Create FastlyVCL::WhitelistedParams.update service
* Add specs
* Create rake task to call new service
* Add rake task to setup script
* Add documentatoin
* Move sort inside params_to_array method
* Rename VCL_REGEX to VCL_DELIMITER
* Add PR URL to docs
* Move snippet name to SNIPPET_NAME constant
* Refactor setting content
* Rename params_to_array to params_to_sorted_array
* Change guard and log success on update
- Return early if params are equal
- Log success message to Rails.logger on update
- Log params diff to Datadog
* Return true explicitly
* Move rake task execution from to release-tasks
* Remove unnecessary environment guard in task
* Remove duplicate code param
* Refactor string from build_content
* Remove reliance on sort
* Reorder logging to implicitly return true
* Update docs to reference release-script.sh
* Update docs
* Update whitelisted params
* Fix params_updated? bug and add more specs
* Remove duplicate param...oopsie!
2020-04-16 15:11:57 -04:00
rhymes
0a6be8b967
[deploy] Improve some validations ( #7335 )
...
* Validations
* Fix specs
* Revert twitter tag change
2020-04-16 18:59:12 +02:00
Molly Struve
8f6fb35404
flaky spec fix: compare org updated_at properly ( #7336 )
2020-04-16 11:37:07 -05:00
Molly Struve
01adfc377c
[deploy] Index all readinglist Reactions into Elasticsearch ( #7310 )
2020-04-16 09:36:05 -05:00
rhymes
b830cdc5b8
Remove harcoded shop strings ( #7319 )
2020-04-16 14:51:23 +02:00
Ben Halpern
645920c09f
[deploy] Remove milestone sends ( #7313 )
2020-04-15 19:34:10 -04:00
Jitendra Rajpurohit
7656d10e2b
Generalized shop url by creating SiteConfig field for it ( #7262 )
...
* added shop_url to SiteConfig
* fixed issue in show config erb file
* add spec for shop_url SideConfig
* added spec
* handles blank shop_url case
* code review changes
2020-04-15 16:28:34 -04:00
Molly Struve
467e0a1b5e
[deploy] display link liquid tgs for articles that may have been deleted ( #7305 )
2020-04-15 16:28:01 -04:00
Molly Struve
223703f0d3
[deploy] Update URLSearchParams to handle arrays correctly for Rails ( #7300 )
2020-04-15 14:58:18 -05:00
Ben Halpern
2c6a4b4ecf
[deploy] Make adjustments in ld+json logic ( #7307 )
...
* Make adjustments in ld+json logic
* Add github url
2020-04-15 15:50:48 -04:00
Molly Struve
817f12c788
no need to use search_id for indexing worker ( #7304 )
2020-04-15 15:35:12 -04:00