Commit graph

3675 commits

Author SHA1 Message Date
Anna Buianova
e09e46ec99 Creating podcasts by users (#3730) [deploy]
* Create podcast as a user [WIP]

* Sample css for podcast form

* Nicer podcasts suggesting form

* Validate podcast feed_url

* Validate podcast main_color_hex

* Fix podcasts specs

* Fix form appearance

* Placeholder for podcast main_color_hex

* Provide a link to suggest a podcast

* Add a checkbox and a role for when a podcast is added by an owner

* Prettier checkbox in the podcasts form

* Added creator to podcasts

* Set the podcast creator

* Fix the /pod spec

* Added creator information to the internal podcast page

* Added cta class to the podcasts submit button

* Global notice when a podcast was suggested

Co-authored-by: Ben Halpern <bendhalpern@gmail.com>
2020-01-08 16:14:25 -05:00
rhymes
482a77a375 Restore default email from SiteConfig for mailers (#5399) [deploy]
* Restore default email from SiteConfig for mailers

* Fix broken email preview
2020-01-08 16:09:32 -05:00
gverger
b7bb006d70 Fix ProMembership Time flaky test (#5402)
After traveling back in time, it can be the case that between the call
to the service and the moment we check the current time, we moved on to
the next second.

Using Timecop.freeze takes care of that.
2020-01-08 16:06:10 -05:00
Maykon Menezes
a9cb13c3f6 moving org bust cache job to sidekiq (#5406) [deploy] 2020-01-08 15:03:40 -05:00
Cadu Ribeiro
00a97b2051 Migrate Users/FollowJob to Sidekiq (#5403) 2020-01-08 15:03:18 -05:00
Molly Struve
7c939dc2c5
Remove TouchFollowerJob and do user update inline (#5391) [deploy] 2020-01-08 14:12:04 -05:00
Asha Balasubramaniam
1003f71c8f Migrate delayed job that calculates comment score to sidekiq (#5382) 2020-01-08 14:11:31 -05:00
rhymes
fec196ffe3 Add wait_for_javascript to flaky system tests (#5405) 2020-01-08 13:47:08 -05:00
Molly Struve
9dc1f51a79
Update Heroku Release to Migrate and Load App (#5404) [deploy] 2020-01-08 13:43:00 -05:00
Molly Struve
64ca1e7638
Set type for user_selects_looking_for_work_spec to system (#5390) 2020-01-08 12:16:33 -05:00
rhymes
102e1a6b9c Routine rubocop fixes (#5386) 2020-01-08 09:05:12 -05:00
Jacob Herrington
82bc17d667
Fix erblint errors (#5395)
This is a workaround that I found in another repository:

dbd7af822b

I'm not sure if anyone else is seeing these errors, but locally the
pre-commit hooks fail every time I create a commit that touches an erb
file.
2020-01-07 18:53:27 -06:00
Molly Struve
8a630b1896 Set default email in application mailer using ENV variable (#5394) [deploy]
* Set default email in application mailer using ENV variable

* remove readonly

* replace siteconfig with ENV variable for more mailers
2020-01-07 19:10:46 -05:00
mstruve
21e64bfb46 Make default email Siteconfig read only 2020-01-07 18:50:00 -05:00
Molly Struve
d039a61177 Remove SiteConfig From Org Validation (#5393) [deploy]
* Make default_site_email readonly so Rails can load first

* Change Org validation message and remove readonly so configs can be updated

* Change Org validation message and remove readonly so configs can be updated TRY 2
2020-01-07 18:04:13 -05:00
Michael Kohl
728a05c476 Move from env variables to SiteConfig (#5385) [deploy]
* Move from env variables to SiteConfig

Related to #5384

This PR only deals with the first remaining part outlined in the issue, starting to use existing SiteConfig keys instead of the env variables.

* Restore Envfile to original version for now
2020-01-07 16:36:24 -05:00
Molly Struve
6b23e327aa
Track Queue sizes and latency for Sidekiq (#5352) [deploy] 2020-01-07 11:57:13 -05:00
Molly Struve
aa7b76d9a2
Limit ALL Upload file sizes to 25 MB (#5356) [deploy] 2020-01-07 11:20:40 -05:00
Cadu Ribeiro
4d7d3edb2d Remove Articles/BustMultipleCachesJob (#5388)
This is a follow up from #5309.
This commit removes the Articles/BustMultipleCachesJob after we migrated
it to Sidekiq.
2020-01-07 11:20:06 -05:00
Jacob Herrington
44403eba89 Fix suggested tweets UI (#5380)
* Remove console log

* Update suggest tweets layout

These changes reflect a specific request from Michael to fix the layout
of suggested tweets, including the expected border animation that occurs
on form submits for articles

* Add labels for suggested tweets
2020-01-07 11:00:48 -05:00
serena
252027ad9c use new_badge_achievement_worker instead of active job (#5358) [deploy] 2020-01-07 08:16:17 -05:00
Jacob Herrington
73dccaaea6 Fix internal/reports email form (#5383) [deploy]
The UI refactor broke this query selector.
2020-01-06 18:53:56 -05:00
dependabot-preview[bot]
389cb12372 Bump octokit from 4.14.0 to 4.15.0 (#5364) [deploy] 2020-01-06 16:27:08 -05:00
dependabot-preview[bot]
1c2a0816f6 Bump codemirror from 5.50.0 to 5.50.2 (#5363) 2020-01-06 16:23:12 -05:00
dependabot-preview[bot]
4ee7d7e60a Bump faker from 2.9.0 to 2.10.0 (#5366) 2020-01-06 16:07:54 -05:00
Molly Struve
d5b3a10061 Handle Missing article_id When Loading additional_content_boxes (#5376) 2020-01-06 15:56:49 -05:00
Molly Struve
a572a96921
Remove comments user_touch job and do it inline when comment is created (#5378) [deploy] 2020-01-06 15:52:59 -05:00
Molly Struve
bc8c177966
Record db table sizes in datadog where we can use them to generate relevant alerts (#5377) 2020-01-06 15:52:47 -05:00
Molly Struve
bc2dbd8e7f
Move Events::BustCacheJob to Sidekiq and rename (#5379) 2020-01-06 15:51:46 -05:00
dependabot-preview[bot]
3188b37762 Bump pg from 1.1.4 to 1.2.1 (#5369) 2020-01-06 14:50:41 -05:00
Lucas Hiago
6ff43ffcbe Refactor method in user_decorator.rb (#5360) [deploy]
* Refactor method in user_decorator.rb

* Add a constant for white text color
2020-01-06 14:21:29 -05:00
dependabot-preview[bot]
091fbbc6d7 Bump google-api-client from 0.36.3 to 0.36.4 (#5367)
Bumps [google-api-client](https://github.com/google/google-api-ruby-client) from 0.36.3 to 0.36.4.
- [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.36.3...0.36.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-06 14:20:39 -05:00
Cadu Ribeiro
93514e73df Migrate Articles/BustMultipleCachesJob to Sidekiq (#5309) [deploy]
Related to: #5305

In order to move all the jobs to Sidekiq, this commit creates a new
Articles/BustMultipleCachesWorker using Sidekiq based on the
Articles/BustMultipleCachesJob (this one is not removed until we know
that any job on this one will be performed).
2020-01-06 13:42:34 -05:00
dependabot-preview[bot]
d5621bc7d4 Bump rubocop from 0.78.0 to 0.79.0 (#5365)
Bumps [rubocop](https://github.com/rubocop-hq/rubocop) from 0.78.0 to 0.79.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.78.0...v0.79.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-06 13:15:52 -05:00
dependabot-preview[bot]
1c915062fd Bump capybara from 3.29.0 to 3.30.0 (#5370)
Bumps [capybara](https://github.com/teamcapybara/capybara) from 3.29.0 to 3.30.0.
- [Release notes](https://github.com/teamcapybara/capybara/releases)
- [Changelog](https://github.com/teamcapybara/capybara/blob/master/History.md)
- [Commits](https://github.com/teamcapybara/capybara/compare/3.29.0...3.30.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-06 13:15:33 -05:00
dependabot-preview[bot]
82d37efce0 Bump yard from 0.9.20 to 0.9.23 (#5371)
Bumps [yard](https://github.com/lsegal/yard) from 0.9.20 to 0.9.23.
- [Release notes](https://github.com/lsegal/yard/releases)
- [Changelog](https://github.com/lsegal/yard/blob/master/CHANGELOG.md)
- [Commits](https://github.com/lsegal/yard/compare/v0.9.20...v0.9.23)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-06 13:15:14 -05:00
dependabot-preview[bot]
120d14c40b Bump stackprof from 0.2.13 to 0.2.15 (#5372)
Bumps [stackprof](https://github.com/tmm1/stackprof) from 0.2.13 to 0.2.15.
- [Release notes](https://github.com/tmm1/stackprof/releases)
- [Changelog](https://github.com/tmm1/stackprof/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tmm1/stackprof/compare/v0.2.13...v0.2.15)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-06 13:15:01 -05:00
Molly Struve
1966c449ed
scope error message correctly for InvalidAuthenticityToken error (#5375) [deploy] 2020-01-06 11:45:28 -05:00
Molly Struve
863904ac06
Ignore dynotype run since that is used for console access (#5354) [deploy] 2020-01-06 08:12:24 -05:00
Lud
d39aa6537f removes job moved to worker: follows send email notification (#5357) 2020-01-06 08:11:54 -05:00
dependabot-preview[bot]
08ee5ec025 Bump ddtrace from 0.30.0 to 0.30.1 (#5368)
Bumps [ddtrace](https://github.com/DataDog/dd-trace-rb) from 0.30.0 to 0.30.1.
- [Release notes](https://github.com/DataDog/dd-trace-rb/releases)
- [Changelog](https://github.com/DataDog/dd-trace-rb/blob/v0.30.1/CHANGELOG.md)
- [Commits](https://github.com/DataDog/dd-trace-rb/compare/v0.30.0...v0.30.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-06 08:09:07 -05:00
Jacob Herrington
9652ecc456 Refactor/internal ui update (#5339) [deploy]
* Move internal styles out of layout

* Upgrade to Bootstrap 4.4 and redo nav

* Redesign /internal/users/index

* Refactor /internal/tags/show

* Refactor /internal/broadcasts/index

* Refactor /internal/broadcasts/index

* Refactor /internal/pages/index

* Refactor /internal/mods/index

* Fix internal nav highlighting

* Refactor internal/organizations/index

* Refactor internal/growth

* Refactor internal/badges

* Refactor /internal/podcasts/

* Refactor internal listings filter

* Refactor /internal/endpoints/

* Refactor /internal/tools/

* Refactor /internal/chat_channels/

* Refactor /internal/config/

* Refactor /internal/feedback_messages

This is the one that worries me the most. I made a strong effort not to
touch any IDs and the JavaScript appears to be working after manual
testing.

This view probably needs some systems specs covering it.

* Remove unused CSS

* Refactor feedback_messages/show

* Refactor internal/comments

* Refactor internal/podcasts/edit

* Refactor internal/users/show

* Refactor internal/users/edit

* Refactor internal/organizations/show

* Refactor internal/permissions

* Refactor internal/tags/show

* Refactor internal/pages/form

* Add events to navbar

* Refactor internal/events

* Refactor internal/brodcasts

* Refactor internal/articles

* Refactor internal/listings

* Remove unused CSS

* Load jquery earlier
2020-01-06 07:58:03 -05:00
rhymes
97d188264f Add worker: option to sidekiq_enqueued_jobs to return also jobs by worker (#5334) 2020-01-03 14:54:44 -05:00
Molly Struve
5f5dd528e1 Remove unused UpdateAnalyticsJob code (#5335) [deploy] 2020-01-03 14:22:39 -05:00
serena
caa1738b16 delete unused mention job, update spec with helper (#5349) [deploy] 2020-01-03 14:08:47 -05:00
Pablo Ifrán
5e9376e955 Remove old create first reaction job (#5347) [deploy]
This job was replaced by the worker with the same name as the suffix
Worker instead of Job, it was kept to run the existing jobs before it
can be fully removed
2020-01-03 12:40:48 -05:00
Molly Struve
cb48e431d2
Correctly define token error in helper module (#5337) 2020-01-03 12:39:57 -05:00
Nick Taylor
ce3c6b9974 Fixed a typo in a filename in docs. (#5343) 2020-01-03 08:29:02 -05:00
Ben Halpern
242c6eb5dd
Change from after_create to after_create_commit for :create_first_reaction (#5341) [deploy] 2020-01-02 18:15:26 -05:00
Molly Struve
c64bfdb652 Handle missing commentable for user_is_commentable_author? check (#5336) [deploy] 2020-01-02 18:06:05 -05:00