Commit graph

3894 commits

Author SHA1 Message Date
Nick Taylor
d6cdedba9a More updates to frontend documentation (#5724)
* Updated styles documentation.

* Added some docs about dynamic import usage.

* Updated architecture overview doc.

* Changed some wording

* Changed some wording
2020-01-27 12:51:55 -05:00
dependabot-preview[bot]
a4765003a4 Bump codemirror from 5.50.2 to 5.51.0 (#5742)
Bumps [codemirror](https://github.com/codemirror/CodeMirror) from 5.50.2 to 5.51.0.
- [Release notes](https://github.com/codemirror/CodeMirror/releases)
- [Changelog](https://github.com/codemirror/CodeMirror/blob/master/CHANGELOG.md)
- [Commits](https://github.com/codemirror/CodeMirror/compare/5.50.2...5.51.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-27 12:51:16 -05:00
dependabot-preview[bot]
d42fda0692 Bump twilio-video from 2.0.0 to 2.0.1 (#5743)
Bumps [twilio-video](https://github.com/twilio/twilio-video.js) from 2.0.0 to 2.0.1.
- [Release notes](https://github.com/twilio/twilio-video.js/releases)
- [Changelog](https://github.com/twilio/twilio-video.js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/twilio/twilio-video.js/compare/2.0.0...2.0.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-27 12:50:41 -05:00
dependabot-preview[bot]
10a98bc80f Bump ruby-prof from 1.1.0 to 1.2.0 (#5754)
Bumps [ruby-prof](https://github.com/ruby-prof/ruby-prof) from 1.1.0 to 1.2.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/1.1.0...1.2.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-27 12:49:32 -05:00
dependabot-preview[bot]
be884a9dea Bump erb_lint from 0.0.30 to 0.0.31 (#5755)
Bumps [erb_lint](https://github.com/Shopify/erb-lint) from 0.0.30 to 0.0.31.
- [Release notes](https://github.com/Shopify/erb-lint/releases)
- [Commits](https://github.com/Shopify/erb-lint/compare/v0.0.30...v0.0.31)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-27 12:49:19 -05:00
dependabot-preview[bot]
cc08df6ca0 Bump autoprefixer-rails from 9.7.3 to 9.7.4 (#5756)
Bumps [autoprefixer-rails](https://github.com/ai/autoprefixer-rails) from 9.7.3 to 9.7.4.
- [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.7.3...9.7.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-27 12:48:22 -05:00
Michał Krzysztof Feiler
8dc4c952d7 [deploy] Add "functional.cafe" to Mastodon list (#5737) 2020-01-27 11:56:01 -05:00
Mac Siri
a3569efe6e
Fix Travis's artfact path (#5760) 2020-01-27 11:33:28 -05:00
Molly Struve
85cd80cb0a Declare new AWS variables in ENV file (#5765) [deploy]
* declare USE_NEW_AWS in ENV file

* declase App config variables in ENV file

* add defaults
2020-01-27 11:01:53 -05:00
dependabot-preview[bot]
5538c7eb8a Bump aws-sdk-lambda from 1.34.0 to 1.35.0 (#5751) [deploy] 2020-01-27 10:02:00 -05:00
dependabot-preview[bot]
1da3846a53 Bump strong_migrations from 0.5.1 to 0.6.0 (#5752) 2020-01-27 10:01:28 -05:00
dependabot-preview[bot]
ae9c416eec Bump ddtrace from 0.31.0 to 0.32.0 (#5753) 2020-01-27 10:00:33 -05:00
dependabot-preview[bot]
1ccc0cd302 Bump rubyzip from 2.0.0 to 2.1.0 (#5757) 2020-01-27 09:59:42 -05:00
dependabot-preview[bot]
ccae0ddc3b Bump ransack from 2.3.0 to 2.3.2 (#5758) 2020-01-27 09:55:01 -05:00
dependabot-preview[bot]
8bf2174f79 Bump capybara from 3.30.0 to 3.31.0 (#5759) 2020-01-27 09:53:01 -05:00
Alain Mauri
ca4c3963b7 Remove Follows::CreateChatChannelJob (#5718) [deploy] 2020-01-27 09:41:18 -05:00
Asha Balasubramaniam
11adeb3215 Migrate PodcastEpisodes::UpdateMediaUrlJob to PodcastEpisodes::UpdateMediaUrlWorker for Sidekiq (#5729) 2020-01-27 09:40:34 -05:00
serena
f2d96bacf2 Remove Notifications::NotifiableActionJob (#5730) [deploy] 2020-01-27 08:54:40 -05:00
Maykon Menezes
7ad7320add Worker/user self delete (#5698)
* Moving user self delete job to sidekiq

* Refactor/user self delete worker
2020-01-27 08:45:58 -05:00
Molly Struve
ebf43209a5
Handle Missing Root Comment in Deleted Comment View (#5716) 2020-01-27 08:44:00 -05:00
Ben Halpern
d81f407394
Remove non-indexable logged-out links (#5713) [deploy]
* Remove non-indexable logged-out links and add nofollow elsewhere

* Remove nofollow part of PR
2020-01-27 07:54:49 -05:00
dependabot-preview[bot]
c3f8d5b520 Bump @github/clipboard-copy-element from 1.1.1 to 1.1.2 (#5746) 2020-01-27 06:45:00 -05:00
dependabot-preview[bot]
7f1c3f3580 Bump husky from 4.0.10 to 4.2.1 (#5749)
Bumps [husky](https://github.com/typicode/husky) from 4.0.10 to 4.2.1.
- [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/v4.0.10...v4.2.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-27 06:43:09 -05:00
dependabot-preview[bot]
85de645453 Bump lint-staged from 10.0.0 to 10.0.2 (#5750) 2020-01-27 06:40:25 -05:00
Ben Halpern
071ec03a3c
Fix article description issues (#5679) [deploy]
* Fix article description issues

* Move tag info to decorator

* Fix description edge cases

* Fix description creation logic

* Fix test and adjust naming

* Modify line in processed_description
2020-01-26 14:43:11 -05:00
rhymes
2665e9aa2b Update docs/frontend/styles.md (#5733)
There was a typo that precluded the markdown link to work
2020-01-26 14:33:28 -05:00
Jacob Herrington
06326a7b33
Update codeowners for Team snackCase (#5714)
This way Andy and I will both receive notications. Andy was taking
priority over me on some of these files.
2020-01-24 16:58:19 -06:00
Alex
62f3e31698
Move RssReaderFetchUserJob to Sidekiq (#5685) [deploy]
* Create RssReaderFetchUserWorker

* Create RssReaderFetchUserWorker spec

* Update reference to RssReaderFetchUserWorker

* Update spec for clarity

- Update fake user_id to 9999
- Update return for user.feed_url

* Add feed_url check before calling worker

* Update random user_id for queue test

* Update fake user_id argument in spec
2020-01-24 14:14:20 -08:00
Alex
c3529d4b10
Remove ExportContentJob and spec (#5711) 2020-01-24 14:13:48 -08:00
Dainius Stankevicius
bf40d27054 Remove Notifications#NewComment job (#5567) [deploy] 2020-01-24 16:03:20 -05:00
Vaidehi Joshi
8dd83298d1 Add documentation around our use of pg-bouncer [ci-skip] (#5710) 2020-01-24 16:02:05 -05:00
Jacob Herrington
3e99fb527f Add StimulusJS and Refactor Internal article_script (#5539) deploy]
* Add StimulusJS 1.1.1

Because:
- Internal will likely need more interactivity going forward
- Vanilla JS and jQuery are great, but aren't quite as organized as we
might like
- Stimulus fits our model of what internal should be (imo)
- Adopting Preact or something with templating would require rewriting a
bunch of erb (that is currently working just fine)

Stimulus is a JavaScript framework that directly compliments turbolinks
and the approach vanilla Rails takes to JavaScript. I've set it up to
specifically be used in the internal views where we are currently using
jQuery and vanilla JS. I think we should chip away at the vanilla JS
currently in place with this, which appears to be both scalable and
pragmatic exactly the sort of tool we want for building our internal
tools.

* Replace crufty article JS with Stimulus

I'm swapping out some of the stuff going on in article_script.erb with
some StimulusJS, it seems like a good test case for Stimulus.

This lets us organize the code a little more intentionally and hopefully
fixes a small performance complaint that Michael had.

* Rename uncommunicative methods

* Add unit tests for Stimulus classes

* Move Stimulus code to javascript/internal
2020-01-24 16:00:24 -05:00
Nick Taylor
b980481d0d update frontend docs (#5706)
* Added InstantClick to frontend docs.

* Added linting/formatting section to frontend docs.

* Fixed up some wording about linting.

* Added documentation about styles to frontend docs.

* Fixed a typo.

* Cleaned up InstantClick docs.

* Fixed a typo
2020-01-24 15:22:27 -05:00
Molly Struve
c336dfc84a
Setup SitemapGenerator and CarrierWave to use new AWS creds when ENV var is set (#5570) [deploy] 2020-01-24 14:25:57 -05:00
Josh Puetz
7444b315a4 Fix capitalization in settings placeholders (#5707) 2020-01-24 14:08:32 -05:00
Alain Mauri
8dc56dcf32 Remove mentions email notification job (#5708)
* Removed mentions email notification job
  * Removed related specs
2020-01-24 14:06:51 -05:00
rhymes
6ec91b0861 API tags: improve caching and purging (#5673) [deploy]
* Add pagination to /tags and proper caching to /tags and /tags/onboarding

* Correctly purge tags

* Fix broken specs

* Make Travis happy
2020-01-24 13:55:22 -05:00
Alex
4a7ecb2574
Move ExportContentJob to Sidekiq (#5688) [deploy]
* Create ExportContentWorker

* Create ExportContentWorker spec

* Update references to ExportContentWorker

* Fix UserSettings spec for sending email
2020-01-24 10:12:58 -08:00
Molly Struve
efed5461d4
Whitelist dev.to for Rack when working with Sidekiq (#5700) [deploy] 2020-01-24 13:00:02 -05:00
Lucas Hiago
58439d3652 Change BustHomepageCacheJob to BustHomepageCacheWorker and move to sidekiq (#5581) 2020-01-24 12:59:34 -05:00
Maja Komel
3412af977f Don't raise StandardError for invalid liquid tags when updating comment (#5694)
* Don't raise StandardError for invalid liquid tags when updating comment

* remove text-align styling for alert error
2020-01-24 11:26:55 -05:00
Ben Halpern
8ed94c8fb1
Add conditional to prevent superfluous rerenders in chat compose (#5705) [deploy] 2020-01-24 11:23:48 -05:00
Spencer
49474d516e Allow comments from deleted articles to be viewed (#5199) [deploy] 2020-01-24 11:06:52 -05:00
Molly Struve
a4fe7d78e8
Travis Path Update Try 3 (#5699) 2020-01-24 09:26:58 -05:00
Lucas Hiago
5aaa80d3a0 Remove Reactions::CreateJob and related spec (#5684) 2020-01-24 09:05:43 -05:00
rhymes
6c24357f16 Use edge caching for API Article show endpoint (#5669) [deploy] 2020-01-23 20:12:58 -05:00
Sarthak Sharma
75608e3e55 Feature🚀: Ability to mention anyone in open chats and notify them (#5460) [deploy]
* Feature 🚀 : Ability to delete messages in chat channels

- Sending message ID to frontend
- Deleting Message
- Use pusher to delete message realtime

* Minor Bug 🐞: Show message action only for current user

- User can delete or edit their own messages

* Test cases added

* Bug 🐞: Update message id for receiver

Message id was not sent to receiver by pusher

* Refactoring🛠: Message controller refactoring

* Test Cases📝 : Specs for Delete message added

* Feature 🚀 : Ability to edit messages

* Test Cases📝 : Specs for Edit message added

* Feature 🚀 : Ability to mention member in Group [Frontend]

* Test Cases📝 : Test Cases added

* Feature 🚀 : Ability to mention member in Group [Backend]

* Bug Fix 🐞: Making messages realtime for open channels

* Feature 🚀 and Bug Fix 🐞: Ability to get notification if mentioned in open messages and increasing message number count

* Feature 🚀 : Ability to remove message count on channel open

* Bug Fix 🐞: Making Notification more reliable by checking if the new message is notified to user or not

* Feature 🚀 : Ability to metion @all and notify them

* Bug Fix 🐞: Minor fixes

* Fews tweaks in code

* Bug Fix 🐞: Feature was not present for Invite only Section

* Bug Fix 🐞: In open channels one can't mention all

* Bug Fix 🐞: Markdown conversion for all only in case of invite only

* Specs added

* Delete schema.rb

* Schema file updated

* Code refactoring

* Further Code refactoring backend

* Further Code refactoring backend

* Bug Fix 🐞: Mention List error problem in switching tabs

* Test Snapshots added

* Feature 🚀 : Ability to mention member in Group [Frontend]

* Test Cases📝 : Test Cases added

* Feature 🚀 : Ability to mention member in Group [Backend]

* Bug Fix 🐞: Making messages realtime for open channels

* Feature 🚀 and Bug Fix 🐞: Ability to get notification if mentioned in open messages and increasing message number count

* Feature 🚀 : Ability to remove message count on channel open

* Bug Fix 🐞: Making Notification more reliable by checking if the new message is notified to user or not

* Feature 🚀 : Ability to metion @all and notify them

* Bug Fix 🐞: Minor fixes

* Fews tweaks in code

* Bug Fix 🐞: Feature was not present for Invite only Section

* Bug Fix 🐞: In open channels one can't mention all

* Bug Fix 🐞: Markdown conversion for all only in case of invite only

* Specs added

* Code refactoring

* Further Code refactoring backend

* Further Code refactoring backend

* Bug Fix 🐞: Mention List error problem in switching tabs

* Test Snapshots added

* Feature 🚀: Ability to navigate through user list with keyboard only

* Bug Fix 🐞: Changing color of group avatars in dark themes

* Bug Fix 🐞: Setup pusher channel for open channels also
2020-01-23 18:06:35 -05:00
Molly Struve
25e985cfce
Group all PG::TRDeadlockDetected and PG::QueryCanceled errors together (#5681) [deploy] 2020-01-23 17:54:46 -05:00
Asha Balasubramaniam
656e404097 Remove delayed job that creates podcast episode (#5678) 2020-01-23 17:32:18 -05:00
Vaidehi Joshi
9fb8875085 Use the correct cover image in article form preview (#5660) [deploy]
Fixes #5630, wherein the cover image from the article data was appearing in the preview.
2020-01-23 17:06:06 -05:00