Commit graph

4562 commits

Author SHA1 Message Date
Mac Siri
0195d1be5b
Create specs for users/edit.html.erb (#6739)
* No longer create identity in User factory

* Create view specs for users/edit.html.erb

* Update broken specs

* Make identities transient an explicit array
2020-03-20 11:29:20 -04:00
Ben Halpern
325389467e
[deploy] Move banishing spam users to async job (#6745)
* Move banish_user to async

* Fix up specs

* Fix up format
2020-03-20 11:21:49 -04:00
Fernando Valverde
14c13cb33b
Adds Podcast Episode metadata as JSON to avoid scraping the HTML (#6727) [deploy]
* Adds Podcast Episode metadata as JSON to avoid scraping the HTML

* Uses app_url helper instead of app_protocol_and_domain string interpolation for podcastImageUrl

* Adds podcast_episode#mobile_player_metadata, cleans eslint/codeclimate mess I made & adds tests

* Removes an extra line to fix codeclimate

* Removes unnecessary return
2020-03-20 10:28:24 -04:00
Douglas Lutz
e15fe6da38
Lower the minimum number of page views (#6728) 2020-03-20 10:26:59 -04:00
Molly Struve
d39b2133a4
Add Additional Search Fields and Search Highlighting (#6734) [deploy] 2020-03-20 08:59:58 -05:00
Molly Struve
c3b88d19de
Dont let HTTParty::RedirectionTooDeep Errors kill Podcast Ep. Update Workers (#6735) [deploy]
Co-authored-by: lightalloy <lightallloy@gmail.com
2020-03-20 08:19:14 -05:00
Ben Halpern
68dedc8a47
Update lastmod for generated sitemap (#6738) [deploy] 2020-03-19 18:59:36 -04:00
Nick Taylor
1b822c2d80
Fix devDependencies/dependencies issue in package.json (#6736) [deploy] 2020-03-19 17:51:57 -04:00
Ben Halpern
bff4050c35
Add dynamic monthly sitemaps (#6704) [deploy]
* Initial sitemap work

* More sitemap progress

* Remove files

* Finalize monthly sitemap

* Update spec/models/organization_spec.rb

Co-Authored-By: Vaidehi Joshi <vaidehi.sj@gmail.com>

* Clean up approach

* Change tests

* Fix test not sure what problem was

Co-authored-by: Vaidehi Joshi <vaidehi.sj@gmail.com>
2020-03-19 17:20:23 -04:00
Molly Struve
7085082781
Add class_name to Elasticsearch ID field for Feed Content (#6729) [deploy] 2020-03-19 16:14:42 -05:00
ludwiczakpawel
cad93674ff
New colors (#6650)
* add tons of colors

* add tons of colors

* moving cheese around and prepping for new theming system

* documenting

* .

* moving theme code to own files

* whitespaces
2020-03-19 15:34:09 -04:00
Mac Siri
693f27d000
Resolve infinite loop in User#edit #6732 [deploy] 2020-03-19 15:16:32 -04:00
dependabot-preview[bot]
127b1a1e41
Bump honeybadger-js from 2.1.3 to 2.2.0 (#6722) 2020-03-19 14:50:28 -04:00
rhymes
cfba42c07d
Upgrade Rails to 5.2.4.2 to fix CVE-2020-5267 (#6731) [deploy] 2020-03-19 19:21:59 +01:00
Julianna Tetreault
e8183189a7
Add welcome thread welcome notification (#6221) [deploy]
* Add Welcome Thread Broadcast to generator.rb

* Add welcome trait to broadcasts.rb

* Add additional tests around welcome_broadcasts:
- ensure that the correct Broadcast is sent
- ensure that a User only receives a single Notification
- ensure that only certain Users receieve the Notification

* Refactor and remove unncessary code from generator.rb and generator_spec.rb

* Refactor generator_spec and eagerly load welcome_thread_comment to get spec passing

* Initialize user in place of receiver_id in generator.rb

* Add before action to make generator_spec more readable

* Add latest_published_thread method to generator.rb

  * Update generator.rb to be reusable with latest_published_thread
  * Update generator_spec to use welcome tags for Article obj
  * Create mascot_account using let to reduce User creation in spec

* Adjust expectation for a User who should not receive a notification
2020-03-19 18:57:32 +01:00
dependabot-preview[bot]
24c3090842
Bump ibm-openapi-validator from 0.25.0 to 0.26.0 (#6720) 2020-03-19 13:39:20 -04:00
dependabot-preview[bot]
0111eb33dd
Bump inline_svg from 1.7.0 to 1.7.1 (#6718)
Bumps [inline_svg](https://github.com/jamesmartin/inline_svg) from 1.7.0 to 1.7.1.
- [Release notes](https://github.com/jamesmartin/inline_svg/releases)
- [Changelog](https://github.com/jamesmartin/inline_svg/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jamesmartin/inline_svg/compare/v1.7.0...v1.7.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-03-19 13:22:57 -04:00
dependabot-preview[bot]
2a6716f359
Bump redoc-cli from 0.9.6 to 0.9.7 (#6723)
Bumps [redoc-cli](https://github.com/Redocly/redoc) from 0.9.6 to 0.9.7.
- [Release notes](https://github.com/Redocly/redoc/releases)
- [Changelog](https://github.com/Redocly/redoc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Redocly/redoc/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-19 13:22:43 -04:00
dependabot-preview[bot]
38ce1c5bee
Bump pg from 1.2.2 to 1.2.3 (#6717)
Bumps [pg](https://github.com/ged/ruby-pg) from 1.2.2 to 1.2.3.
- [Release notes](https://github.com/ged/ruby-pg/releases)
- [Changelog](https://github.com/ged/ruby-pg/blob/master/History.rdoc)
- [Commits](https://github.com/ged/ruby-pg/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-19 13:22:23 -04:00
dependabot-preview[bot]
912cc0a605
Bump @stoplight/spectral from 5.1.0 to 5.2.0 (#6724) 2020-03-19 11:33:19 -04:00
Jacob Herrington
1a42b2b4b1
Use Rails URL helpers where possible (#6711) [deploy] 2020-03-19 10:24:44 -04:00
Michael Kohl
12931ea25a
Introduce app_url helper (#6715)
* Introduce app_url helper

* Add examples to documentation
2020-03-19 15:03:26 +01:00
rhymes
bf3095ebc4
Fix comments preview paragraph spacing (#6697)
* Fix comments preview paragraph spacing

* Update app/assets/stylesheets/comments.scss

Co-Authored-By: ludwiczakpawel <ludwiczakpawel@gmail.com>

Co-authored-by: ludwiczakpawel <ludwiczakpawel@gmail.com>
2020-03-19 14:56:21 +01:00
Jacob Herrington
cb2c1037e4
Remove negative margin rule (#6713) 2020-03-19 08:39:25 -04:00
Jacob Herrington
2b442ca8b6
Internal bug fixes and misc JS/CSS cleanup (#6684)
* Remove unused CSS rules

* Use bootstrap utility class over custom css

* Fix grapical bug with buffer tags

* Fix internal UI highlighting and misc fixes

This commit is a little bit too big.

It fixes a bug with the internal UI that was breaking the highlighting
feature (indicates status of articles and when an AJAX request has been
made).

It also does some reformatting in the internal listings UI. This should
make it a bit easier on anyone writing buffer updates in the listings
UI. I was able to reapply some stimulus I wrote previously for this,
super easy!

There are also a couple of CSS classes I renamed to match Bootstrap's
naming conventions.

* Remove <br> tag

* Update article_controller Stimulus test
2020-03-18 16:05:33 -05:00
Ben Halpern
379aa4d1ec
Allow communities to dictate authentication providers (#6639) [deploy]
* Allow communities to dictate authentication providers

* Include proper file

* Reset siteconfig value

Co-authored-by: rhymes <rhymesete@gmail.com>
2020-03-18 16:41:39 -04:00
Molly Struve
4a4d83a6cf
Add Feed Content Backend Search Code (#6699) [deploy]
* Add search code for feed content to the backend

* add search for class_name
2020-03-18 15:51:26 -04:00
Vaidehi Joshi
00ea4c4924
Remove broken image from seeded welcome thread (#6698) 2020-03-18 09:58:23 -07:00
Nick Taylor
8c235c3211
Revert "Get those devDeps back! (#6690)" [deploy] (#6696)
This reverts commit 432e2c4f29.
2020-03-18 11:40:00 -04:00
Ben Halpern
fa494418eb
Fix /connect message composer style bugs (#6695) [deploy] 2020-03-18 11:19:04 -04:00
Nick Taylor
432e2c4f29
Get those devDeps back! [deploy] (#6690)
Fixed the issue with a dev dependency having to be a dependency in package.json so that deploys work on Heroku.
2020-03-18 10:28:07 -04:00
rhymes
a333da23d1
Move dev/mascot account to class methods (#6694) 2020-03-18 14:42:40 +01:00
Molly Struve
ea70d4c4b9
refactor query builders but pulling out common logic into a base class (#6678) 2020-03-18 08:34:20 -05:00
Molly Struve
92a8d624c3
move pagination methods to base search class (#6683) [deploy] 2020-03-18 09:14:07 -04:00
Jacob Herrington
a11d2bf907
Remove unused SCSS file (#6677) 2020-03-18 08:26:47 -04:00
Jacob Herrington
4630413acd
Add internal sidebar navigation (#6686)
The navbar in internal is a bit too much for a horizontal nav.

Because we aren't using breadcrumbs, it also indicates to users where
they are, so it needs to be visible and not collapsed.

Making this a sidebar fixes both of those problems. In this state, it is
definitely a barebones implmentation, but it is also an improvement over
the hornizontal nav.

Co-authored-by: MichaelaHunter <michaela1234@gmail.com>

Co-authored-by: MichaelaHunter <michaela1234@gmail.com>
2020-03-18 08:26:27 -04:00
Andy Zhao
3412883342
Upgrade recaptcha to 5.4.1 to fix production error (#6681) [deploy]
* Use legacy 5.3.0 response param name

* Use latest recaptcha gem

* Remove additional space

* Revert verify_recaptcha workaround
2020-03-18 10:27:48 +01:00
rhymes
20fd8cdb92
Replace observers with callbacks and remove rails-observers (#6675)
* Add test for vomit reactions ping

* Remove reaction observer

* Add tests for new published article ping

* Remove reaction observer

* Remove comment observer

* Fix specs

* Remove rails-observer gem
2020-03-18 09:58:36 +01:00
Vaidehi Joshi
9376892265
Add welcome thread to seeds file (#6687)
This will be super useful for some of the work we're doing around welcome notifications!
2020-03-17 20:14:36 -07:00
Ben Halpern
0a1c6fe82f
Adjust tag rendering (#6689) [deploy] 2020-03-17 22:45:29 -04:00
Ben Halpern
e977f4c357
Fix homepage back button flicker (#6688) [deploy]
* Fix homepage back button flicker

* Update tags
2020-03-17 22:40:49 -04:00
Nick Taylor
adc83f7175
Moved devDependencies to dependencies to attempt fixing deploy (#6685) [deploy] 2020-03-17 17:38:24 -04:00
Molly Struve
51bb16adee
specify yarn version in package.json (#6680) [deploy] 2020-03-17 14:05:47 -05:00
Jacob Herrington
243e9b5524
Add a form to email users from internal (#6668)
Co-authored-by: MichaelaHunter <michaela1234@gmail.com>

Co-authored-by: MichaelaHunter <michaela1234@gmail.com>
2020-03-17 11:19:42 -04:00
rhymes
b8b321c13d
Fix VCR warnings and use initializers (#6672) 2020-03-17 15:51:07 +01:00
Michael Kohl
3b3808f2f6
Remove leading whitespace in tags during RSS import (#6671) 2020-03-17 10:48:39 -04:00
Molly Struve
c2b9c7a7d0
remove unused followed articles javascript (#6669) [deploy] 2020-03-17 09:44:26 -05:00
Nick Taylor
ccf7e6e5bf
Upgrade to webpacker/webpack 4 and Babel 7 (#6664)
Upgraded to webpacker 4/webpack 4 and Babel 7
2020-03-17 08:20:36 -04:00
Michael Kohl
8f768a0cbc
Allow KaTeX to render inline (#6670) [deploy] 2020-03-17 10:42:41 +01:00
Jacob Herrington
19b91129d8
Denote previously reported and suspended users in vomit reactions (#6619) [deploy]
* Break feedback_messages view into partials

* Standardize capitalization

* Add visual cues for banned and vommitted users

* Use helper methods to construct urls

* Rename vomitted? to vomitted_on?

vomitted_on? is a slightly more clear method name. This change takes
Rhymes' suggestion to use the AR method exists? over where(...).exists?
2020-03-16 18:22:00 -04:00