Commit graph

2316 commits

Author SHA1 Message Date
Anna Buianova
58db43d0d4 Validate usernames and organization slugs against podcast slugs (#3148) 2019-06-13 19:00:25 -04:00
Anna Buianova
2c05bbc0c1 Change notifications unique indexes #2525 (#3012)
* Notifications unique indexes that take null values into account

* Specify import options for reaction notifications according to the indexes

* Fix specs: notifications have either user_id or organization_id

* Create notifications indexes concurrently
2019-06-13 15:17:50 -04:00
Mac Siri
94c78173d1 Add missing image param (#3150) 2019-06-13 14:10:14 -04:00
Anna Buianova
f476e11be6 Podcasts validations (#3123)
* Podcasts validations

* Added db constraints for podcast_episodes

* Validate podcast slug uniqueness with usernames and org slugs

* Validate podcast slug uniqueness only if it was changed
2019-06-13 12:45:05 -04:00
Anna Buianova
b630fcad0d Removed fetching podcasts from a callback (#3098)
* Removed fetching podcasts from a callback

* Remove hacks that avoid fetching podcasts while seeding and running tests
2019-06-13 12:23:55 -04:00
Mac Siri
0af2a0a7dc Update Service Worker and Favicon (#3142)
* Update favicon

* Update ServiceWorker with error logging
2019-06-13 11:39:03 -04:00
Arun Kumar Mohan
3188ddaa8a Remove dead code (#3146) 2019-06-13 11:10:38 -04:00
Kartikey Tanna
858ce184e5 Implement ActiveJob for Mention (#3055)
* Implemented ActiveJob for Mention#send_email_notification

* Implemented ActiveJob for Mention.create_all

* Fixed args while calling the job

* Changes as per the review
2019-06-13 11:05:22 -04:00
Arun Kumar Mohan
0e06c76819 Fix visibility of unread channel name (#3143) [ci skip] 2019-06-12 17:53:09 -04:00
Arun Kumar Mohan
63a475ca41 Refactor TagAdjustment#user_permissions (#3144) [ci skip] 2019-06-12 17:38:04 -04:00
rhymes
6960b89f28 Dashboard Pro: support InstantClick and show org analytics (#3102)
* Fix JS lint issues

* Do not rely on globals

* Use InstantClick to make transitions work in the pro dashboard

* Fix eager loadings and remove unused queries

* Refactor drawChart

* More consistency in naming

* Display correct analytics for organization
2019-06-12 09:40:42 -04:00
Anna Buianova
18d1300341 Moved SlackBot.delay.ping calls to ActiveJob #3136 (#3139)
* Moved SlackBot.delay.ping calls to ActiveJob

* Removed unused user creation from the spec
2019-06-12 09:23:37 -04:00
Bryan Leighton
fa7079ecab Make Action Space Buttons more mobile friendly (#3110) [ci skip] 2019-06-11 17:13:20 -04:00
Mario See
06ce84c21c make default state of "contact_via_connect" checked (#3128) 2019-06-11 15:55:43 -04:00
Andy Zhao
9832d0cfc1 Destroy organization memberships if user is destroyed (#3125) 2019-06-11 15:54:24 -04:00
rhymes
e48c9668fd Fix access token revoking (#3131)
* Move API secret ID inside the form

* Add tests for unknown and unauthorized API secrets

* Use Rails conventions a little better
2019-06-11 15:53:58 -04:00
dependabot-preview[bot]
cdd888647e Bump skylight from 4.0.2 to 4.1.0 (#3092)
Bumps [skylight](https://github.com/skylightio/skylight-ruby) from 4.0.2 to 4.1.0.
- [Release notes](https://github.com/skylightio/skylight-ruby/releases)
- [Changelog](https://github.com/skylightio/skylight-ruby/blob/master/CHANGELOG.md)
- [Commits](https://github.com/skylightio/skylight-ruby/compare/v4.0.2...v4.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-11 10:45:17 -04:00
dependabot-preview[bot]
2b251a2844 Bump autoprefixer-rails from 9.5.1.1 to 9.6.0 (#3099) [ci skip]
Bumps [autoprefixer-rails](https://github.com/ai/autoprefixer-rails) from 9.5.1.1 to 9.6.0.
- [Release notes](https://github.com/ai/autoprefixer-rails/releases)
- [Changelog](https://github.com/ai/autoprefixer-rails/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ai/autoprefixer-rails/compare/9.5.1.1...9.6.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-11 10:44:41 -04:00
Mazen Touati
95ba6608c8 Fix reading list filters input's color in night theme (#3089) [ci skip] 2019-06-11 10:31:58 -04:00
Arun Kumar
c15a2379e7 Refactor Timeframer#datetime (#3117) [ci skip] 2019-06-11 10:29:10 -04:00
Arun Kumar
b34387f384 Refactor Credit's array creation (#3116) [ci skip] 2019-06-11 10:28:25 -04:00
Arun Kumar
9414bb43ac Make AdditionalContentBoxesController#randomize private (#3115) [ci skip] 2019-06-11 10:27:29 -04:00
Wassim Chegham
a8d6d69323 Add DEV API link in the account settings UI (#3119) [ci skip] 2019-06-11 10:23:20 -04:00
dependabot-preview[bot]
c4d76c8683 Bump @storybook/addon-actions from 5.0.11 to 5.1.3 (#3105) [ci skip]
Bumps [@storybook/addon-actions](https://github.com/storybookjs/storybook/tree/HEAD/addons/actions) from 5.0.11 to 5.1.3.
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v5.1.3/addons/actions)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-10 18:30:46 -04:00
dependabot-preview[bot]
bff0310487 Bump @storybook/addon-links from 5.0.11 to 5.1.3 (#3108) [ci skip]
Bumps [@storybook/addon-links](https://github.com/storybookjs/storybook/tree/HEAD/addons/links) from 5.0.11 to 5.1.3.
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v5.1.3/addons/links)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-10 17:59:33 -04:00
dependabot-preview[bot]
83db9582e1 Bump twilio-video from 1.18.0 to 1.18.1 (#3106) [ci skip]
Bumps [twilio-video](https://github.com/twilio/twilio-video.js) from 1.18.0 to 1.18.1.
- [Release notes](https://github.com/twilio/twilio-video.js/releases)
- [Changelog](https://github.com/twilio/twilio-video.js/blob/1.18.1/CHANGELOG.md)
- [Commits](https://github.com/twilio/twilio-video.js/compare/1.18.0...1.18.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-10 17:54:47 -04:00
dependabot-preview[bot]
f2d1e6d030 Bump husky from 2.3.0 to 2.4.0 (#3104) [ci skip]
Bumps [husky](https://github.com/typicode/husky) from 2.3.0 to 2.4.0.
- [Release notes](https://github.com/typicode/husky/releases)
- [Changelog](https://github.com/typicode/husky/blob/master/CHANGELOG.md)
- [Commits](https://github.com/typicode/husky/compare/v2.3.0...v2.4.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-10 17:53:44 -04:00
dependabot-preview[bot]
a5f0000bae Bump prettier from 1.17.1 to 1.18.2 (#3107) [ci skip]
Bumps [prettier](https://github.com/prettier/prettier) from 1.17.1 to 1.18.2.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/1.17.1...1.18.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-10 17:52:46 -04:00
Mac Siri
bc7c23e241
Fix inconsistent spec (#3113) [ci skip]
* Fix inconsistent spec due to zonebie

* Update spec
2019-06-10 17:33:44 -04:00
dependabot-preview[bot]
be3ef5c809 Bump lint-staged from 8.1.7 to 8.2.0 (#3109) [ci skip]
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 8.1.7 to 8.2.0.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v8.1.7...v8.2.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-10 14:49:35 -04:00
dependabot-preview[bot]
80db0f95fa Bump ancestry from 3.0.6 to 3.0.7 (#3097) [ci skip]
Bumps [ancestry](https://github.com/stefankroes/ancestry) from 3.0.6 to 3.0.7.
- [Release notes](https://github.com/stefankroes/ancestry/releases)
- [Changelog](https://github.com/stefankroes/ancestry/blob/master/CHANGELOG.md)
- [Commits](https://github.com/stefankroes/ancestry/compare/v3.0.6...v3.0.7)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-10 12:08:58 -04:00
Mac Siri
f62bc7faa8 Fix js-breaking webcomponent (#3087)
* Remove webcomponents-loader

* Add unpkg webcomponent-loader

* Update clipboard-copy-element to include @githubscope

* Make WebComponent loading async

* Simplify clipboardCopy
2019-06-10 11:23:42 -04:00
dependabot-preview[bot]
dcd29e27a2 Bump shoulda-matchers from 4.0.1 to 4.1.0 (#3100) [ci skip]
Bumps [shoulda-matchers](https://github.com/thoughtbot/shoulda-matchers) from 4.0.1 to 4.1.0.
- [Release notes](https://github.com/thoughtbot/shoulda-matchers/releases)
- [Changelog](https://github.com/thoughtbot/shoulda-matchers/blob/master/NEWS.md)
- [Commits](https://github.com/thoughtbot/shoulda-matchers/compare/v4.0.1...v4.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-10 10:59:57 -04:00
dependabot-preview[bot]
907a489ba9 Bump webmock from 3.5.1 to 3.6.0 (#3096) [ci skip]
Bumps [webmock](https://github.com/bblimke/webmock) from 3.5.1 to 3.6.0.
- [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.5.1...v3.6.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-10 10:49:23 -04:00
dependabot-preview[bot]
9184645fc7 Bump google-api-client from 0.30.0 to 0.30.2 (#3094) [ci skip]
Bumps [google-api-client](https://github.com/google/google-api-ruby-client) from 0.30.0 to 0.30.2.
- [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.0...0.30.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-10 10:30:56 -04:00
dependabot-preview[bot]
009a1e4bf6 Bump ruby-prof from 0.17.0 to 0.18.0 (#3095) [ci skip]
Bumps [ruby-prof](https://github.com/ruby-prof/ruby-prof) from 0.17.0 to 0.18.0.
- [Release notes](https://github.com/ruby-prof/ruby-prof/releases)
- [Changelog](https://github.com/ruby-prof/ruby-prof/blob/master/CHANGES)
- [Commits](https://github.com/ruby-prof/ruby-prof/compare/v0.17.0...0.18.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-10 10:30:05 -04:00
rhymes
a8b7f6eea4 Analytics: refactoring for speed improvements (#3072)
* Use proper auth chain before checking parameters

* Refactor AnalyticsController

* Add a bunch of test and rewrite reactions counts with a single query

* Add tests for follows totals

* Use round and add more refactoring

* Add tests to group by day to fallback during refactoring

* Use group by to calculate comments count by day

* Use group by to calculate follows count by day

* Use group by to calculate reactions stats by day

* Use group by to calculate page_views stats by day

* Move calculations per day back in the cached block

* Add a few comments and a little bit of refactoring

* Add indexes (concurrently) for analytics

* Make tests more time robust

* Use a date range cache related to the requesting user or org

* Freezing time in UTC should help when tests are ran on time zones over the day line

* Remove explicit returns

* Page title is escaped, guard against that

* Move Analytics service spec in the proper place
2019-06-10 09:27:39 -04:00
rhymes
7d89a55d76 Disable Podcast episodes fetching during seeding (#3075)
After #3057, that converts from Delayed::Job to ActiveJob, podcast episodes are fetched inline during seeding, which makes the seeding process painfully slow and most of the times unsuccessful.

This PR disables the fetching during seeding. Episodes can be fetched with `rails get_podcast_episodes` task if needed for local testing.
2019-06-10 09:22:00 -04:00
Daniel Compton
f75aef42f9 Add a space between "Change meta tag" and canonical_url (#3063)
Without the space, this shows up as "Change meta tagcanonical_url".
2019-06-07 21:15:32 -04:00
Ben Halpern
b731df44ca
Add badges to key tags (#3074)
* Add badges to key tags

* Adjust vertical-align

* Fix YouTube tag mistake and refactor map to pluck
2019-06-07 19:09:43 -04:00
Desi Rottman
18d6ff0d74 Adds bug bounty link to console (#3067) [ci skip] 2019-06-07 13:58:07 -04:00
Desi Rottman
6f59431778 Adds bug bounty and security info to contact page (#3066) [ci skip] 2019-06-07 13:47:16 -04:00
Ben Kooiman-Cox
7fe6cd296b Add linuxrocks.online to Mastodon whitelist (#3068) 2019-06-07 10:02:49 -04:00
Ben Halpern
a3a9f51103
Fix improper archive redirect (#3064) 2019-06-06 17:03:59 -04:00
Andy Zhao
141c8f27d2 Clear Rails cache for destroyed comment's ancestors and destroy buffer_updates for articles (#3065)
* Touch all ancestors before destroying comment

* Destroy buffer_updates when article is destroyed
2019-06-06 17:03:39 -04:00
Mac Siri
6e1c568483 Improve ISSUE_TEMPLATE [ci skip] 2019-06-06 11:27:45 -04:00
Jess Lee
5ca069f93f Fix listings cache/indexing and add bumping feature to internal (#3053)
* wip utilize concerns

* wip concerns

* refactor listings update
2019-06-06 09:51:32 -04:00
Anna Buianova
9751e84549 Moved Podcast#pull_all_episodes to a separate ActiveJob #2952 #2497 (#3057)
* Use one PodcastFeed instance while fetching podcasts

* Moved Podcast#pull_all_episodes to a separate ActiveJob
2019-06-06 09:49:10 -04:00
Anna Buianova
8b55d32640 Rubocop fixes (#3058) 2019-06-06 09:48:14 -04:00
Anna Buianova
0ecb937875 Added rubocop-rails (#3059)
* Added rubocop-rails

* Update rubocop version in the CodeClimate config
2019-06-06 09:47:57 -04:00