Commit graph

2890 commits

Author SHA1 Message Date
dependabot-preview[bot]
75137ef3ec Bump twilio-video from 1.19.1 to 1.19.2 (#4093) [ci skip]
Bumps [twilio-video](https://github.com/twilio/twilio-video.js) from 1.19.1 to 1.19.2.
- [Release notes](https://github.com/twilio/twilio-video.js/releases)
- [Changelog](https://github.com/twilio/twilio-video.js/blob/1.19.2/CHANGELOG.md)
- [Commits](https://github.com/twilio/twilio-video.js/compare/1.19.1...1.19.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-25 10:22:51 -04:00
Ben Halpern
8943467e91
Cache pro membership (#4102) 2019-09-24 11:26:35 -07:00
Anna Buianova
9778ada44a Doorkeeper default scope (#4066)
* Start with the doorkeeper scopes

* Added read_articles scope

* Proper doorkeeper authorization for the API articles#me
2019-09-24 11:11:12 -07:00
rhymes
c8abbe9d60 Pro: memberships (#3461)
* Add ProMembership model

* Implement ProMembershipsController#create

* Implement basic ProMembershipsController#show

* Add ProMembership to ledger

* Populate user history after pro subscription is created

* Add fields for expiration notifications

* Add ProMemberships::ExpirationNotifier to notify users of expiring memberships

* Add tasks for recurring jobs to notify users of expiration

* Add auto_recharge column to ProMembership

* Add ProMemberships::Biller (incomplete)

* Fix specs

* Add ProMembership to Administrate

* Fix spec

* Add has_enough_credits? to User and Organization

* Add Payments::Customer class

* Finish ProMembership::Biller functionality

* Fix ProMemberships::Creator check for credits

* Disable destroy actions for ProMembershipsController

* Correctly authenticate ProMembershipsController actions

* Make sure only pro user's history can be indexed

* Add ProMembershipsController#update action for auto recharge

* Use regular AR to save new credits and add touch to the purchaser

* Clarify Pro membership create policy

* Display information about an existing pro membership

* Add UI to show page

* Add system test for Pro membership creation

* Implement edit membership

* Make sure users with pro memberships can access history and dashboard pro

* Fix padding issue

* Show a different text for a user that has credits but not enough for Pro

* Move Pro Membership functionality inside settings

* Update Pro Membership link in email notifications

* Bust all relevant caches

* Add the Pro checkmark around the website

* Use Users::ResaveArticlesJob instead of delay

* Add/remove user from pro-members chat channel

* Use the appropriate Pro checkmark

* Remove unfinished pro elements

* Remove checkmark JS
2019-09-24 10:38:54 -07:00
cyrillefr
70631ad2f7 Listings creation and update API (#4014)
* Listings creation and update API

  - new listings controller
  - refactored code to share core functionnality between api and web controllers
  - code in common in classified listing concerns
  - added tests for index/create/update
  - json output as views
  - updated a factory

* Listings creation and update API: code update

  - refactored json calls
  - added test cases
  - added pagination for list of listings
  - refactored jbuilder files
  - typos

* Listings creation and update API: code update

  - tags and tag_list in controller
  - changed view to display both
  - refactored and added test

* Listings creation and update API: code update

  - small change to resolve conflit

* Listings creation and update API: code update

  - added test case
  - deleted unneeded test case
2019-09-24 07:03:52 -07:00
dependabot-preview[bot]
f172856ec1 Bump twilio-ruby from 5.26.0 to 5.27.0 (#4086) [ci skip]
Bumps [twilio-ruby](https://github.com/twilio/twilio-ruby) from 5.26.0 to 5.27.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.26.0...5.27.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-23 14:12:34 -04:00
Jacob Herrington
6ddac027e8 Refactor intro slide component (#3933) 2019-09-23 14:08:58 -04:00
dependabot-preview[bot]
29191294da Bump airbrake from 9.4.3 to 9.4.4 (#4082) [ci skip]
Bumps [airbrake](https://github.com/airbrake/airbrake) from 9.4.3 to 9.4.4.
- [Release notes](https://github.com/airbrake/airbrake/releases)
- [Changelog](https://github.com/airbrake/airbrake/blob/master/CHANGELOG.md)
- [Commits](https://github.com/airbrake/airbrake/compare/v9.4.3...v9.4.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-23 13:21:51 -04:00
dependabot-preview[bot]
50f405eb3a Bump httparty from 0.17.0 to 0.17.1 (#4087) [ci skip]
Bumps [httparty](https://github.com/jnunemaker/httparty) from 0.17.0 to 0.17.1.
- [Release notes](https://github.com/jnunemaker/httparty/releases)
- [Changelog](https://github.com/jnunemaker/httparty/blob/master/Changelog.md)
- [Commits](https://github.com/jnunemaker/httparty/compare/v0.17.0...v0.17.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-23 13:18:23 -04:00
dependabot-preview[bot]
737fa9f26a Bump lint-staged from 9.2.5 to 9.3.0 (#4089) [ci skip]
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 9.2.5 to 9.3.0.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v9.2.5...v9.3.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-23 13:04:47 -04:00
dependabot-preview[bot]
6aa4471088 Bump webmock from 3.7.2 to 3.7.5 (#4091) [ci skip]
Bumps [webmock](https://github.com/bblimke/webmock) from 3.7.2 to 3.7.5.
- [Release notes](https://github.com/bblimke/webmock/releases)
- [Changelog](https://github.com/bblimke/webmock/blob/master/CHANGELOG.md)
- [Commits](https://github.com/bblimke/webmock/compare/v3.7.2...v3.7.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-23 13:02:29 -04:00
dependabot-preview[bot]
ce7fab306b Bump simplecov from 0.17.0 to 0.17.1 (#4083) [ci skip]
Bumps [simplecov](https://github.com/colszowka/simplecov) from 0.17.0 to 0.17.1.
- [Release notes](https://github.com/colszowka/simplecov/releases)
- [Changelog](https://github.com/colszowka/simplecov/blob/master/CHANGELOG.md)
- [Commits](https://github.com/colszowka/simplecov/compare/v0.17.0...v0.17.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-23 12:48:17 -04:00
dependabot-preview[bot]
12a339d925 Bump faker from 2.3.0 to 2.4.0 (#4085) [ci skip]
Bumps [faker](https://github.com/faker-ruby/faker) from 2.3.0 to 2.4.0.
- [Release notes](https://github.com/faker-ruby/faker/releases)
- [Changelog](https://github.com/faker-ruby/faker/blob/master/CHANGELOG.md)
- [Commits](https://github.com/faker-ruby/faker/compare/v2.3.0...v2.4.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-23 12:47:31 -04:00
kay nguyen
b0b23b385a fixed Load More button not readable in night theme (#4077) 2019-09-20 13:41:20 -07:00
Mac Siri
465a676d75 Adjust BufferUpdatesController's authorization (#4070)
* Add back validation and add test

* Move article_admin?

* Adjust Buffer policy

* Create buffer_update_policy_spec
2019-09-20 11:50:34 -07:00
Andrew Siegman
04b7417e27 Fix opacity issue on low quality comments (#4076) [ci skip] 2019-09-20 13:16:24 -04:00
rhymes
de6129b29c Replace ^ and $ with \A and \z in Ruby regexps (#4072) 2019-09-20 10:28:34 -04:00
John Curcio
c5cb61f932 Move Reaction.create delay calls to ActiveJob (#3136) (#4022) 2019-09-20 10:19:07 -04:00
Jacob Herrington
7198a72953 Refactor tags components (#3895) [ci skip] 2019-09-20 10:18:44 -04:00
rhymes
e6100dd400 Fix tags format in Article create API (#4075) [ci skip] 2019-09-20 10:14:41 -04:00
Ben Halpern
fd017a0ba2
Add climate strike widget (#4071) 2019-09-19 18:01:53 -07:00
Ben Halpern
b1b408e61c
Add more variation to home feed (#4069)
* Add more variance to home feed

* Fix array typo

* Fix up watercooler spec

* Fix up blackbox spec
2019-09-19 12:58:11 -07:00
Jess Lee
ff135c7839 Give interns access to internal articles (#4016)
* add intern role and update policies

* update admin policy spec for rubocop

* add article poolicy spec

* fix spec

* switch to scoped admin role

* Finalize single resource admin

* Adjust buffer permissions
2019-09-19 11:35:49 -07:00
John Curcio
4eabc652a2 Add no-readme option to GitHub tag (#4054) 2019-09-19 13:16:19 -04:00
Mac Siri
6fa8dfd7aa Ignore page_views (#4063) 2019-09-19 09:06:14 -07:00
Jacob Herrington
44b014ec6b Change reply notification background color (#4067) 2019-09-19 09:05:45 -07:00
Anna Buianova
c07eb8d9cd Define Doorkeeper::Application association (#4065) [ci skip] 2019-09-19 10:28:55 -04:00
Mac Siri
e6e57c8835 Fix mention's inconsistent hyperlink (#4051)
* Upgrade mention parsing logic

* Avoid hardcoded link in spec
2019-09-18 14:15:06 -07:00
Anna Buianova
0a16bf934a Added association between webhook_endpoints and oauth apps (#4060)
* Added association between webhook_endpoints and oauth apps

* Limit webhooks access by oauth_app_id when authorized by doorkeeper

* Use rails route helpers in webhooks api test
2019-09-18 13:25:40 -07:00
Jacob Herrington
ef88b1e341 Fix delete container alignment (#4062)
* Center delete confirmation text

* Format CSS
2019-09-18 13:22:58 -07:00
rhymes
3194c3bacd Generate HTTPS urls (#4059) 2019-09-18 10:42:50 -07:00
rhymes
02b5bb7d78 API: add doc for webhooks index (#4056)
* Remove updated_at and use the same format for dates

* Add API docs for API /webhooks index
2019-09-18 09:48:33 -07:00
Ben Halpern
705da8fbde
Switch to CDN for iframe resizer (#4053) 2019-09-17 16:42:46 -07:00
Oleksii Filonenko
8d9bad372b Move index.delay.delete_object calls to ActiveJob (#4028)
* Move index.delay.delete_object calls to ActiveJob

* Rename {Algolia,Search}::RemoveFromIndexJob

* Update queue_as for Search::RemoveFromIndexJob
2019-09-17 14:10:38 -07:00
Anna Buianova
ce93c436a7 Implement API endpoint for user's webhooks (#4013) 2019-09-17 13:24:44 -04:00
Mac Siri
498b08dbb9
Fix reading time logic (#4049) [ci skip] 2019-09-17 13:17:06 -04:00
Anna Buianova
78472d1529 Send only public events to the webhook endpoints #3715 (#4046)
* Dispatch an event only when a published article is created

* Skip sending events about drafts updates

* Skip sending events when a draft is destroyed

* Fix article request spec

* Slight refactoring
2019-09-17 08:00:04 -07:00
Mac Siri
eae4fb3d88 Revert "Bump puma from 4.1.0 to 4.1.1 (#4043)"
This reverts commit f0fe6d5693.
2019-09-16 15:47:33 -04:00
dependabot-preview[bot]
0f9d471140 Bump administrate from 0.11.0 to 0.12.0 (#4045)
Bumps [administrate](https://github.com/thoughtbot/administrate) from 0.11.0 to 0.12.0.
- [Release notes](https://github.com/thoughtbot/administrate/releases)
- [Changelog](https://github.com/thoughtbot/administrate/blob/master/CHANGELOG.md)
- [Commits](https://github.com/thoughtbot/administrate/compare/v0.11.0...v0.12.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-16 15:07:35 -04:00
dependabot-preview[bot]
f0fe6d5693 Bump puma from 4.1.0 to 4.1.1 (#4043)
Bumps [puma](https://github.com/puma/puma) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/puma/puma/releases)
- [Changelog](https://github.com/puma/puma/blob/master/History.md)
- [Commits](https://github.com/puma/puma/compare/v4.1.0...v4.1.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-16 15:03:30 -04:00
dependabot-preview[bot]
00fd4d5db2 Bump addressable from 2.6.0 to 2.7.0 (#4042) [ci skip]
Bumps [addressable](https://github.com/sporkmonger/addressable) from 2.6.0 to 2.7.0.
- [Release notes](https://github.com/sporkmonger/addressable/releases)
- [Changelog](https://github.com/sporkmonger/addressable/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sporkmonger/addressable/compare/addressable-2.6.0...addressable-2.7.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-16 13:44:28 -04:00
dependabot-preview[bot]
a8966ebcc4 Bump rubyzip from 1.2.3 to 1.2.4 (#4044) [ci skip]
Bumps [rubyzip](https://github.com/rubyzip/rubyzip) from 1.2.3 to 1.2.4.
- [Release notes](https://github.com/rubyzip/rubyzip/releases)
- [Changelog](https://github.com/rubyzip/rubyzip/blob/master/Changelog.md)
- [Commits](https://github.com/rubyzip/rubyzip/compare/v1.2.3...v1.2.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-16 13:30:38 -04:00
dependabot-preview[bot]
49d6e848a4 Bump scout_apm from 2.5.2 to 2.6.0 (#4040)
Bumps [scout_apm](https://github.com/scoutapp/scout_apm_ruby) from 2.5.2 to 2.6.0.
- [Release notes](https://github.com/scoutapp/scout_apm_ruby/releases)
- [Changelog](https://github.com/scoutapp/scout_apm_ruby/blob/master/CHANGELOG.markdown)
- [Commits](https://github.com/scoutapp/scout_apm_ruby/compare/v2.5.2...v2.6.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-16 12:49:15 -04:00
dependabot-preview[bot]
bea6ad2a3d Bump reverse_markdown from 1.2.0 to 1.3.0 (#4041) [ci skip]
Bumps [reverse_markdown](https://github.com/xijo/reverse_markdown) from 1.2.0 to 1.3.0.
- [Release notes](https://github.com/xijo/reverse_markdown/releases)
- [Changelog](https://github.com/xijo/reverse_markdown/blob/master/CHANGELOG.md)
- [Commits](https://github.com/xijo/reverse_markdown/compare/v1.2.0...v1.3.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-16 12:48:42 -04:00
dependabot-preview[bot]
a94aa46850 Bump @github/clipboard-copy-element from 1.0.5 to 1.0.6 (#4035) [ci skip]
Bumps [@github/clipboard-copy-element](https://github.com/github/clipboard-copy-element) from 1.0.5 to 1.0.6.
- [Release notes](https://github.com/github/clipboard-copy-element/releases)
- [Commits](https://github.com/github/clipboard-copy-element/compare/1.0.5...v1.0.6)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-16 12:46:47 -04:00
dependabot-preview[bot]
aa6a2f3cf3 Bump google-api-client from 0.30.8 to 0.31.0 (#4038) [ci skip]
Bumps [google-api-client](https://github.com/google/google-api-ruby-client) from 0.30.8 to 0.31.0.
- [Release notes](https://github.com/google/google-api-ruby-client/releases)
- [Changelog](https://github.com/googleapis/google-api-ruby-client/blob/master/CHANGELOG.md)
- [Commits](https://github.com/google/google-api-ruby-client/compare/0.30.8...0.31.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-16 12:46:11 -04:00
dependabot-preview[bot]
9c3dd31f77 Bump faker from 2.2.1 to 2.3.0 (#4039) [ci skip]
Bumps [faker](https://github.com/faker-ruby/faker) from 2.2.1 to 2.3.0.
- [Release notes](https://github.com/faker-ruby/faker/releases)
- [Changelog](https://github.com/faker-ruby/faker/blob/master/CHANGELOG.md)
- [Commits](https://github.com/faker-ruby/faker/compare/v2.2.1...v2.3.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-16 12:45:35 -04:00
dependabot-preview[bot]
a065b1d7d4 Bump eslint-config-prettier from 6.2.0 to 6.3.0 (#4033) [ci skip]
Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) from 6.2.0 to 6.3.0.
- [Release notes](https://github.com/prettier/eslint-config-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-config-prettier/compare/v6.2.0...v6.3.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-16 12:44:54 -04:00
Bolarinwa Balogun
8d4aa8b157 Resolve inconsistent reading time estimate (#3328) 2019-09-16 10:05:07 -04:00
Mac Siri
64f70fff8f
Use build_stubbed in Policy specs (#4017) [ci skip] 2019-09-13 11:38:58 -04:00