Commit graph

5398 commits

Author SHA1 Message Date
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
6a4a99f162
[deploy] Track Deploys In Honeycomb (#7935) 2020-05-19 09:10:41 -05:00
Nick Taylor
7f8bb406c5
Added coverage threshold to jest configuration. (#7948) 2020-05-19 10:00:48 -04:00
icncsx
d15290420f
replace hardcoded twitter hashtag (#7895)
* replace hardcoded DEVCommunity

* make sure # is a part of the string

* set site config explicity in test for twitter hashtag
2020-05-19 14:02:28 +02:00
Molly Struve
16495791d3
Remove Unnecessary User Touch From Strip Controller (#7924) 2020-05-19 12:45:56 +02:00
rhymes
df4681a114
Remove destroy_empty_dm_channels callback (#7911) 2020-05-19 12:44:31 +02:00
rhymes
691efd1f7b
Enable comment liquid tag and alias devcomment to it (#7912)
* Enable comment liquid tag and alias devcomment to it

* Update editor guide

* Add explanation
2020-05-19 10:57:35 +02:00
Hashim Lokasher
713a589f55
Fixed Typo in Docs (#7944)
* Fixed typo in gitdocs 

javascript word is written incorrect in Git Docs

* Fixed Typo in Docs
2020-05-19 10:32:27 +02:00
Mac Siri
830ddf7d04
[deploy] Specify node version in package.json (#7940) 2020-05-18 19:00:17 -04:00
Andy Zhao
91b14d7d4b
[deploy] Add data update script to backfill public reaction count (#7932)
* Add data update script to backfill public rxn count

* Reduce to two transactions instead of three
2020-05-18 17:51:02 -04:00
Vaidehi Joshi
3b9fe2658e
Fix pluralization in FollowUsers component (#7928) [deploy] 2020-05-18 11:38:47 -07:00
Vaidehi Joshi
b1de4cb1cf
Add Percy 🦔 (#7783) [deploy]
* Add Percy to Gemfile, rails helper

* Percy snapshots for using the editor

* Add PERCY_TOKEN to sample_application.yml

* Percy snapshots for visiting the homepage

* Percy snapshots for viewing an article's comments

* Percy snapshots for creating an article

* Percy snapshots for editing an article

* Percy snapshots for logged in/out user

* Remove empty spec file

* Percy snapshots for settings page

* Percy snapshots for reading list

* Percy snapshots for admin view

* Percy snapshots for moderator view

* Percy snapshots for authentication views

* Percy snapshots for article and tag views

* Percy snapshots for editing/deleting comment views

* Percy snapshots for admin views

* Percy snapshots for comment views

* Percy snapshots for organization views

* Percy snapshots for pro membership views

* Percy snapshots for podcast views

* Percy snapshots for user views

* Percy snapshots for dashboard views

* Percy snapshots for homepage views

* Percy snapshots for video views

* Add js: true in tests that require it for Percy

* Percy dependency cleanup

* Add the Percy agent
* Remove the PERCY_TOKEN from sample_application.yml
* Move the Percy gem into the "test" group in the Gemfile

* Remove duplicate snapshots, provide unique names to snapshots

* Set seed on Faker::Config for deterministic Percy snapshots

* Freeze time in js: true tests for determinstic snapshots

* Upgrade Percy to v0.26.3

* Add percy: true flag for Percy snapshotting tests

* Add more percy: true flags
2020-05-18 11:35:53 -07:00
Molly Struve
909f298688
[deploy] Only Count Hot Stories Once Rather Than Every Iteration (#7931) 2020-05-18 13:12:41 -05:00
Liz Fong-Jones
8309e0af2a
[deploy] remove additional cruft (#7929) 2020-05-18 13:11:14 -05:00
Molly Struve
dda2e6aa65
Drop Elasticsearch Indexes When Database is Dropped (#7927) 2020-05-18 13:10:08 -05:00
Molly Struve
d6a71217b0
Update Rails To Fix CVEs (#7930) 2020-05-18 13:03:13 -05:00
rhymes
9ea00dfe53
[deploy] Fix Github::OauthClient access token auth (#7922) 2020-05-18 11:15:14 -05:00
Molly Struve
548fd21768
[deploy] Limit the User Updates (#7892) 2020-05-18 11:13:38 -05:00
Molly Struve
dbb5c752ab
[deploy] Sample Noisy Honeycomb Spans (#7891) 2020-05-18 10:36:01 -05:00
Andy Zhao
45ae42f611
[deploy] Add public reactions count columns (#7919) 2020-05-18 11:34:30 -04:00
Molly Struve
6d6f7086e5
[deploy] Track current_user ID in Honeycomb (#7915) 2020-05-18 09:36:18 -05:00
Michael Kohl
b5885f6c29
Fix internal category filtering for listings (#7908) 2020-05-18 09:26:38 -04:00
rhymes
3130261384
Refactor GitHub::Client to extract Github::OauthClient for users (#7848)
* Introduce Github::OAuthClient and refactor shortcut Github::Client

* Better stubbing and fix specs

* Fix Badge rewarder

* Add dummy values for Travis

* Fix spec?

* Simplify

* Fix spec take 2?

* Is this the right one?

* Hopefully this is the last time, for realz

* Fix spec for the nth time?

* Which deity do I have to offer a sacrifice to?

* This is it

* Fix Honeycomb name
2020-05-18 14:23:55 +02:00
Anna Buianova
c4423adb19
Removed ignored_columns from articles (#7913) 2020-05-18 14:43:37 +03:00
rhymes
decae056f1
Routine rubocop fixes (#7885) 2020-05-18 10:27:51 +02:00
Molly Struve
ed8893a734
[deploy] Don't Touch User Twice for New Follow (#7893) 2020-05-15 16:31:43 -05:00
Molly Struve
3432c96ede
[deploy] Limit Response Template Count for Users (#7890) 2020-05-15 15:18:28 -05:00
Nick Taylor
8f81d8ce52
Fixed article stories in Storybook (#7884) 2020-05-15 13:08:02 -04:00
Mac Siri
a763f268e3
Add 403 to API docs (#7861) 2020-05-15 12:16:51 -04:00
Nick Taylor
ceb40d2c75
Removed the app/javascript/src folder (#7888) 2020-05-15 11:50:36 -04:00
Anna Buianova
35e3733314
[deploy] Removed articles.live_now column (#7879) 2020-05-15 11:37:28 -04:00
Nick Taylor
5505a5e1ce
Added a lint-staged check for running only related tests to changed frontend files (#7883) 2020-05-15 11:13:29 -04:00
Nick Taylor
b376d109ef
Moved src/components/Item* to readingList/components (#7876) 2020-05-15 11:00:06 -04:00
rhymes
e104c8b5c5
Upgrade validate_url to 1.0.11 to fix load error (#7882)
* Upgrade validate_url to 1.0.11 to fix load error

* Fix spec
2020-05-15 16:17:07 +02:00
Nick Taylor
03ff779ca3
Moved src/utils out of src/ folder to utilities/ folder. (#7875) 2020-05-15 10:07:42 -04:00
dependabot-preview[bot]
457915beef
Bump doorkeeper from 5.3.2 to 5.4.0 (#7860) 2020-05-15 09:36:58 -04:00
dependabot-preview[bot]
3f93b3b62a
Bump rubocop from 0.82.0 to 0.83.0 (#7857) 2020-05-15 09:36:31 -04:00
Dmitry Maksyoma
f63c7f9289
Fix Runkit tags not being activated when comment is added (#6767)
* Fix Runkit tags not being activated when comment is added

* Runkit tag activation was ran once, on page load. I've changed it to
  run on on comment preview and submit.
* It was necessary to add a check to skip already activated Runkit
  tags. The code didn't take into account that a tag could be already
  processed, and would just crash.

* Fix Runkit tags and add tests

* Add test for previewing article with Runkit tag

* "Fix CodeClimate not finding waitForRunkitAndActivateTags()

* Refactor a test for readability

* Make Rubocop happy

* Improve test for previewing article with Runkit tag

* Use one method for determining active Runkit tags

* Defer loading of JS from embed.runkit.com

* Add utility function dynamicallyLoadScript(url)

* Switch to dynamic loading of Runkit

* parsed content code block is also hidden now to avoid displaying <code /> block before runkit iframe loads.

* Fix Runkit test

* Remove Runkit script caching in v2 form

* Use <%== instead of .html_safe in v2 form

* Update app/assets/javascripts/utilities/dynamicallyLoadScript.js

Co-authored-by: Nick Taylor <nick@iamdeveloper.com>

Co-authored-by: Nick Taylor <nick@iamdeveloper.com>
2020-05-15 14:27:46 +02:00
Rafi
be3d977565
Sanitizing and rendering html entities in article title (#7593) 2020-05-15 08:04:43 -04:00
Ben Halpern
0ae835c73f
Open in new window properly on ctrl+click etc (#7814)
* Open in new window properly on ctrl+click etc

* Trigger meta click for comment area too
2020-05-15 14:02:11 +02:00
Mac Siri
f15797ac17
Expand webhook API request specs (#7872)
* Expand webhook API specs

* Use single expectation

* Refactor include examples
2020-05-15 11:35:44 +02:00
Molly Struve
dd7f51f7fa
Limit the Number of API Keys a User Can Have (#7870)
* Limit the Number of API Keys a User Can Have

* tweak error message and throw in flaky spec fix
2020-05-15 11:33:02 +02:00
Molly Struve
7293df3191
[deploy] Return if there is no ip_address from Method (#7874) 2020-05-14 18:13:24 -05:00
Michael Kohl
c23850f795
[deploy] Credit refactoring (#7841)
* Simplify Credit model

* Use enough_credits? method
2020-05-14 18:04:26 -04:00
dependabot-preview[bot]
e255a5946e
Bump elasticsearch from 7.6.0 to 7.7.0 (#7865)
Bumps [elasticsearch](https://github.com/elastic/elasticsearch-ruby) from 7.6.0 to 7.7.0.
- [Release notes](https://github.com/elastic/elasticsearch-ruby/releases)
- [Changelog](https://github.com/elastic/elasticsearch-ruby/blob/master/CHANGELOG.md)
- [Commits](https://github.com/elastic/elasticsearch-ruby/compare/v7.6.0...7.7.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-05-14 18:02:46 -04:00
dependabot-preview[bot]
7b69a3ca49
Bump webpack-dev-server from 3.10.3 to 3.11.0 (#7852)
Bumps [webpack-dev-server](https://github.com/webpack/webpack-dev-server) from 3.10.3 to 3.11.0.
- [Release notes](https://github.com/webpack/webpack-dev-server/releases)
- [Changelog](https://github.com/webpack/webpack-dev-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-dev-server/compare/v3.10.3...v3.11.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-05-14 18:02:33 -04:00
dependabot-preview[bot]
04ecbb8f76
Bump eslint-plugin-react from 7.19.0 to 7.20.0 (#7850)
Bumps [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react) from 7.19.0 to 7.20.0.
- [Release notes](https://github.com/yannickcr/eslint-plugin-react/releases)
- [Changelog](https://github.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yannickcr/eslint-plugin-react/compare/v7.19.0...v7.20.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-05-14 18:01:35 -04:00
dependabot-preview[bot]
b445f2d047
Bump aws-sdk-lambda from 1.40.0 to 1.41.0 (#7855)
Bumps [aws-sdk-lambda](https://github.com/aws/aws-sdk-ruby) from 1.40.0 to 1.41.0.
- [Release notes](https://github.com/aws/aws-sdk-ruby/releases)
- [Changelog](https://github.com/aws/aws-sdk-ruby/blob/master/gems/aws-sdk-lambda/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-ruby/compare/v1.40.0...v1.41.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-05-14 18:01:20 -04:00
dependabot-preview[bot]
e6bca0053e
Bump fog-aws from 3.6.3 to 3.6.4 (#7858)
Bumps [fog-aws](https://github.com/fog/fog-aws) from 3.6.3 to 3.6.4.
- [Release notes](https://github.com/fog/fog-aws/releases)
- [Changelog](https://github.com/fog/fog-aws/blob/master/CHANGELOG.md)
- [Commits](https://github.com/fog/fog-aws/compare/v3.6.3...v3.6.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-05-14 18:01:13 -04:00
dependabot-preview[bot]
cc5fa37767
Bump figaro from 1.1.1 to 1.2.0 (#7859)
Bumps [figaro](https://github.com/laserlemon/figaro) from 1.1.1 to 1.2.0.
- [Release notes](https://github.com/laserlemon/figaro/releases)
- [Changelog](https://github.com/laserlemon/figaro/blob/master/CHANGELOG.md)
- [Commits](https://github.com/laserlemon/figaro/compare/v1.1.1...v1.2.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-05-14 18:01:06 -04:00