Commit graph

5450 commits

Author SHA1 Message Date
dependabot-preview[bot]
1415c19fe3
Bump counter_culture from 2.3.0 to 2.5.1 (#8015)
Bumps [counter_culture](https://github.com/magnusvk/counter_culture) from 2.3.0 to 2.5.1.
- [Release notes](https://github.com/magnusvk/counter_culture/releases)
- [Changelog](https://github.com/magnusvk/counter_culture/blob/master/CHANGELOG.md)
- [Commits](https://github.com/magnusvk/counter_culture/compare/v2.3.0...v2.5.1)

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-22 09:46:07 -04:00
dependabot-preview[bot]
24893419f5
Bump percy-capybara from 4.0.2 to 4.2.0 (#8014)
Bumps [percy-capybara](https://github.com/percy/percy-capybara) from 4.0.2 to 4.2.0.
- [Release notes](https://github.com/percy/percy-capybara/releases)
- [Commits](https://github.com/percy/percy-capybara/compare/v4.0.2...v4.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-22 09:45:53 -04:00
Ben Halpern
6a2b6aa914
[deploy] Quick fix for podcast liquid tag in comments (#8025) 2020-05-21 21:52:13 -04:00
Ben Halpern
1aaf91c37c
[deploy] Add config for whether campaign posts require approval (#7961)
* Add config for whether campaign posts require approval

* Fix logic
2020-05-21 21:00:11 -04:00
Mac Siri
1abd7cd46b
[deploy] Add async_info to ReservedWords (#8022) 2020-05-21 17:02:26 -04:00
dependabot-preview[bot]
17dbc26b03
Bump rubocop from 0.83.0 to 0.84.0 (#8010)
Bumps [rubocop](https://github.com/rubocop-hq/rubocop) from 0.83.0 to 0.84.0.
- [Release notes](https://github.com/rubocop-hq/rubocop/releases)
- [Changelog](https://github.com/rubocop-hq/rubocop/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop-hq/rubocop/compare/v0.83.0...v0.84.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-21 16:57:38 -04:00
dependabot-preview[bot]
ef86806f68
Bump strong_migrations from 0.6.5 to 0.6.8 (#8013)
Bumps [strong_migrations](https://github.com/ankane/strong_migrations) from 0.6.5 to 0.6.8.
- [Release notes](https://github.com/ankane/strong_migrations/releases)
- [Changelog](https://github.com/ankane/strong_migrations/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ankane/strong_migrations/compare/v0.6.5...v0.6.8)

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-21 16:10:30 -04:00
dependabot-preview[bot]
3e92d75b75
Bump @percy/agent from 0.26.3 to 0.26.6 (#8012)
Bumps [@percy/agent](https://github.com/percy/percy-agent) from 0.26.3 to 0.26.6.
- [Release notes](https://github.com/percy/percy-agent/releases)
- [Changelog](https://github.com/percy/percy-agent/blob/master/CHANGELOG.md)
- [Commits](https://github.com/percy/percy-agent/compare/v0.26.3...v0.26.6)

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-21 16:10:18 -04:00
dependabot-preview[bot]
981744eb6d
Bump lint-staged from 10.2.2 to 10.2.4 (#8009)
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 10.2.2 to 10.2.4.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v10.2.2...v10.2.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-21 16:10:06 -04:00
rhymes
174dd9359d
[deploy] Add missing unique indexes - part 2 (#8002) 2020-05-21 14:15:49 -05:00
dependabot-preview[bot]
3049833133
[deploy] Bump sidekiq-unique-jobs from 6.0.21 to 6.0.22 (#8008)
Bumps [sidekiq-unique-jobs](https://github.com/mhenrixon/sidekiq-unique-jobs) from 6.0.21 to 6.0.22.
- [Release notes](https://github.com/mhenrixon/sidekiq-unique-jobs/releases)
- [Changelog](https://github.com/mhenrixon/sidekiq-unique-jobs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mhenrixon/sidekiq-unique-jobs/compare/v6.0.21...v6.0.22)

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-21 14:10:17 -05:00
dependabot-preview[bot]
a7ab09c839
Bump twilio-ruby from 5.34.0 to 5.35.0 (#8007)
Bumps [twilio-ruby](https://github.com/twilio/twilio-ruby) from 5.34.0 to 5.35.0.
- [Release notes](https://github.com/twilio/twilio-ruby/releases)
- [Changelog](https://github.com/twilio/twilio-ruby/blob/master/CHANGES.md)
- [Commits](https://github.com/twilio/twilio-ruby/compare/5.34.0...5.35.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-21 14:09:36 -05:00
dependabot-preview[bot]
a6d60af769
Bump rack-attack from 6.3.0 to 6.3.1 (#8011)
Bumps [rack-attack](https://github.com/kickstarter/rack-attack) from 6.3.0 to 6.3.1.
- [Release notes](https://github.com/kickstarter/rack-attack/releases)
- [Changelog](https://github.com/kickstarter/rack-attack/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kickstarter/rack-attack/compare/v6.3.0...v6.3.1)

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-21 14:09:04 -05:00
dependabot-preview[bot]
0143d154c3
Bump stripe from 5.21.0 to 5.22.0 (#8006)
Bumps [stripe](https://github.com/stripe/stripe-ruby) from 5.21.0 to 5.22.0.
- [Release notes](https://github.com/stripe/stripe-ruby/releases)
- [Changelog](https://github.com/stripe/stripe-ruby/blob/master/CHANGELOG.md)
- [Commits](https://github.com/stripe/stripe-ruby/compare/v5.21.0...v5.22.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-21 14:08:49 -05:00
Alex
49d4ec8d1c
[deploy] Revert "Update safe params for Array params (#7914)" (#8018)
This reverts commit 4eba14f150.
2020-05-21 12:39:55 -04:00
Ben Halpern
b51d56159a
[deploy] Implement web-monetization/payment pointer (#6345)
* WIP payment pointer

* Add payment pointer config

* Add proper siteconfig var to view

* Finalize

* Fix typo

Co-authored-by: Andy Zhao <17884966+Zhao-Andy@users.noreply.github.com>
2020-05-21 12:10:02 -04:00
ludwiczakpawel
35eb4f1f72
Overflow issue in Settings on mobile (#7999)
* flare tag line height

* .

* .
2020-05-21 11:47:18 -04:00
Ridhwana
880cd70d53
chore: update some docs (#8003) 2020-05-21 11:46:57 -04:00
rhymes
80a01cefed
Fix db:reset by adding search:setup after search:destroy (#8000) 2020-05-21 09:49:27 -05:00
Dana Scheider
c59db25387
[deploy] Gracefully handle missing linked users from comments (#7941) 2020-05-21 09:07:51 -05:00
Anna Buianova
5fcc44677e
Display existing sponsorships even when an org doesn't have enough credits (#7978) 2020-05-21 13:10:39 +03:00
rhymes
264e8baa14
Add missing unique indexes - part 1 (#7977) 2020-05-21 12:09:06 +02:00
Dmitry Maksyoma
eb85a91a9d
Refactor Mentions::CreateAll (#7880)
* Refactor Mentions::CreateAll

* Update app/services/mentions/create_all.rb

Co-authored-by: Vaidehi Joshi <vaidehi.sj@gmail.com>

* Refactor for readability

Co-authored-by: Vaidehi Joshi <vaidehi.sj@gmail.com>
2020-05-21 12:08:36 +02:00
Molly Struve
76da5a7a66
Remove ProMembership Models (#7989) 2020-05-21 12:04:41 +02:00
Vaidehi Joshi
71852e6975
Remove some superfluous Percy snapshots (#7992) [deploy]
There doesn't seem to be enough of a difference between these snapshots, and, for some reason, they date doesn't not seem to be freezing for some of the data captured within them. Since we already have a snapshot of this page, we don't need so many versions of it.
2020-05-20 15:56:04 -07:00
Molly Struve
374f030d12
Cache Article IDs Rather than ActiveRecord Objects (#7990) 2020-05-20 18:51:33 -04:00
rhymes
fa22f346e4
Add merveilles.town to list of Mastodon instances (#7983) 2020-05-20 17:48:46 -04:00
Vaidehi Joshi
32410d3b9a
Add Percy to Travis yml (#7970) [deploy] 2020-05-20 13:50:22 -07:00
Julianna Tetreault
97c46cfbf8
Refactor User-Specific JSON-LD in the Stories::Controller (#7731)
* Refactor user_same_as_json_ld method to be more readable

* Refactor user JSON-LD to be less verbose in Stories::Controller
  * Removes set_user_same_as_json_ld method
  * Removes set_user_profile_json_ld method
  * Adds user_works_for and user_disambiguating_description
  * Adds inline logic to the data structure
  * Simplifies user_same_as method

* Add documentation around specific data properties

* Add .reject to user_json_ld to remove key, value if value blank
  * Checks for blank values and rejects key,value if blank
  * Accounts for JSON-LD preference for no key,value if blank

* Add reject and compact to worksFor in Stories::Controller
  * Ensures any nil/empty values for worksFor are removed
  * Cleans up existing code within Stories::Controller

* Add test for values that eval to true when .blank? is called
  * Adds test to check that empty key/values are not included
  * Adds test to check that nil key/values are not included
  * Refactors variables to be inline in user_show_spec
  * Refactors existing code in user_show_spec

* Add reject for blank values to user_same_as in Stories::Contrroller
  * Adds a check for email_public to email

* Fix typo within comment in Stories::Controller

* Add ternary operation to email in Stories::Controller
2020-05-20 14:40:34 -06:00
Molly Struve
2b8fc7473d
[deploy] Skip pro memberships for spec (#7988) 2020-05-20 14:10:08 -05:00
Molly Struve
58ff5d44ba
[deploy] Add back ProMembership AR class (#7987) 2020-05-20 13:15:22 -05:00
Molly Struve
16161bfcae
[deploy] Keep Pro Membership Relation Until AR Cache's expire (#7986) 2020-05-20 12:45:04 -05: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
Molly Struve
1c461f8891
[deploy] Remove Unused Pro Memberships (#7894) 2020-05-20 11:54:30 -05:00
Mac Siri
f65d61c8db
Loosen CodeClimate's method-lines rule (#7980) 2020-05-20 16:44:35 +02:00
Zach Attas
52277ea0ba
Adds csv formatter only in CI and makes screenshot names unique with timestamp (#7838)
* adds csv formatter only in CI and adds --format progress to rspec in CI

* addressing feedback

* adds more functionality to csv reporter, and makes screenshots taken from rspec/retry have unique names

* induces intentional fails (will revert after testing)

* induces intentional fails (will revert after testing)

* makes screenshot timestamp more precise and tweaks intentional fails (again willremove later)

* restores spec files to normal and tweaks screenshot microseconds

* remove the putses at end of CSVFormatter
2020-05-20 10:40:55 +02:00
rhymes
300ba1b33f
[deploy] Decouple Twitter authentication from fetching tweets (#7920)
* Add TwitterClient::Client

* Use TwitterClient::Client for Tweet

* Test retweets

* Test assignment to user

* Fix TweetTag spec

* Remove TwitterBot

* Fix some specs

* Fix RSS Reader specs
2020-05-19 18:05:41 -04:00
Ben Halpern
59765d339f
Remove /new from serviceworkers (#7967)
* Remove /new from serviceworkers

* Use pathname
2020-05-19 18:04:22 -04:00
Anna Buianova
c02a103c7f
Refactored creating sponsorships (#7946)
* Refactored sponsorships levels and purchasing sponsorships

* Fix partnerships tests

* Refactored creating partnerships, removed unused functionality

* Display flashes in /partnerships

* Fix views
2020-05-19 18:00:01 -04:00
Nick Taylor
412f640cb7
Added a search form Storybook story where the search is focused. (#7968) 2020-05-19 17:59:46 -04:00
Andy Zhao
d2d8caa767
[deploy] Use npm for deploying Storybook (#7969) 2020-05-19 17:41:41 -04:00
Molly Struve
ef39860875
Use raw Option When Incrementing Redis Keys (#7959)
* Use raw Option When Incrementing Redis Keys

* include raw option in image upload spec
2020-05-19 17:38:25 -04:00
Mac Siri
2bc06501b5
Resourcify User model (#7966) 2020-05-19 17:15:19 -04:00
ludwiczakpawel
fac1564ac7
Extra Utility Classes (#7964)
* flare tag line height

* .

* .

* .

* add serif font

* whoops

* whoops 2

* whoops 3
2020-05-19 17:14:49 -04:00
Andy Zhao
1cc95e03a3
Add netlify.toml for storybook (#7963) 2020-05-19 16:10:33 -04:00
Nick Taylor
c36f034542
Fixed a copy pasta error in a Storybook story (#7962) 2020-05-19 15:51:17 -04:00
Andy Zhao
0568911ba2
Move netlify.toml to docs folder to prep for multiple TOML files (#7960) 2020-05-19 15:02:17 -04:00
Ben Halpern
97bc5fd8b1
[deploy] Add campaign url for sidebar link (#7943)
* Add campaign url for sidebar link

* Add proper test
2020-05-19 14:31:34 -04:00
Molly Struve
db1df9e078
Only Remove Article Reaction Count Cache Keys (#7937) 2020-05-19 13:57:03 -04:00
Alex
4eba14f150
[deploy] Update safe params for Array params (#7914) 2020-05-19 13:01:50 -04:00