Jamie Gaskins
268ea66dcd
Optimize Article query in EdgeCache::BustArticle ( #14916 )
2021-10-05 11:58:34 -04:00
dependabot[bot]
a2712ffeb0
Bump @storybook/addon-docs from 6.3.8 to 6.3.9 ( #14946 )
...
Bumps [@storybook/addon-docs](https://github.com/storybookjs/storybook/tree/HEAD/addons/docs ) from 6.3.8 to 6.3.9.
- [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/v6.3.9/addons/docs )
---
updated-dependencies:
- dependency-name: "@storybook/addon-docs"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-05 11:22:50 -04:00
dependabot[bot]
4cb7fd8701
Bump @testing-library/dom from 8.6.0 to 8.7.2 ( #14943 )
...
Bumps [@testing-library/dom](https://github.com/testing-library/dom-testing-library ) from 8.6.0 to 8.7.2.
- [Release notes](https://github.com/testing-library/dom-testing-library/releases )
- [Changelog](https://github.com/testing-library/dom-testing-library/blob/main/CHANGELOG.md )
- [Commits](https://github.com/testing-library/dom-testing-library/compare/v8.6.0...v8.7.2 )
---
updated-dependencies:
- dependency-name: "@testing-library/dom"
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-05 10:54:35 -04:00
Ben Halpern
5cc09767c5
Add conditional autovomits to user name and improve user score recalc ( #14858 )
...
* Add conditional autovomits to user name and improve user score recalc
* Remove puts
* Add missing ||
* Fix tests
* Update app/views/users/show.html.erb
Co-authored-by: Michael Kohl <citizen428@forem.com>
* Update app/models/user.rb
Co-authored-by: Michael Kohl <citizen428@forem.com>
* Add in-line score calc principles
Co-authored-by: Michael Kohl <citizen428@forem.com>
2021-10-05 10:11:41 -04:00
dependabot[bot]
820013baa4
Bump postcss-cli from 8.3.1 to 9.0.1 ( #14924 )
...
Bumps [postcss-cli](https://github.com/postcss/postcss-cli ) from 8.3.1 to 9.0.1.
- [Release notes](https://github.com/postcss/postcss-cli/releases )
- [Changelog](https://github.com/postcss/postcss-cli/blob/master/CHANGELOG.md )
- [Commits](https://github.com/postcss/postcss-cli/compare/8.3.1...9.0.1 )
---
updated-dependencies:
- dependency-name: postcss-cli
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-05 09:35:34 -04:00
praveen raghav ns
4b8576aec3
Use constants for Permitted params in controller ( #14895 )
...
* Use constants for controller permitted params
* User constants for controller set 2
Co-authored-by: Ben Halpern <bendhalpern@gmail.com>
2021-10-05 09:00:14 -04:00
dependabot[bot]
68524069d0
Bump autoprefixer from 10.3.6 to 10.3.7 ( #14942 )
...
Bumps [autoprefixer](https://github.com/postcss/autoprefixer ) from 10.3.6 to 10.3.7.
- [Release notes](https://github.com/postcss/autoprefixer/releases )
- [Changelog](https://github.com/postcss/autoprefixer/blob/main/CHANGELOG.md )
- [Commits](https://github.com/postcss/autoprefixer/compare/10.3.6...10.3.7 )
---
updated-dependencies:
- dependency-name: autoprefixer
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-05 06:50:19 -06:00
dependabot[bot]
8a23b3d7e5
Bump core-js from 3.17.3 to 3.18.1 ( #14940 )
2021-10-05 08:31:53 -04:00
Ben Halpern
49247fdc8c
Remove organization dependency and improve display ad UX ( #14913 )
2021-10-05 08:29:08 -04:00
dependabot[bot]
9388ad2f37
Bump jest from 27.2.1 to 27.2.4 ( #14941 )
...
Bumps [jest](https://github.com/facebook/jest ) from 27.2.1 to 27.2.4.
- [Release notes](https://github.com/facebook/jest/releases )
- [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md )
- [Commits](https://github.com/facebook/jest/compare/v27.2.1...v27.2.4 )
---
updated-dependencies:
- dependency-name: jest
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-05 13:15:07 +01:00
dependabot[bot]
a10ac476a0
Bump lint-staged from 11.1.2 to 11.2.0 ( #14929 )
...
Bumps [lint-staged](https://github.com/okonet/lint-staged ) from 11.1.2 to 11.2.0.
- [Release notes](https://github.com/okonet/lint-staged/releases )
- [Commits](https://github.com/okonet/lint-staged/compare/v11.1.2...v11.2.0 )
---
updated-dependencies:
- dependency-name: lint-staged
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-05 13:14:32 +01:00
rhymes
eba0ddb240
Misc i18n fixes ( #14852 )
...
* Add i18n tasks spec
* Ignore storybook static folder
* Run i18n-tasks normalize
* Fix inconsistent interpolations flagged by i18n-tasks check-consistent-interpolations
* Update devise en translation and add devise_invitable fr translation
* Add missing keys, ignore those to be translated and normalize
* Temporarily ignore unused keys until we have a strategy for maintenance
* Add missing key
* Re-run normalize
* Disable normalize test temporarily
2021-10-05 13:22:33 +02:00
dependabot[bot]
ad513ebfc7
Bump sass from 1.39.2 to 1.42.1 ( #14925 )
...
Bumps [sass](https://github.com/sass/dart-sass ) from 1.39.2 to 1.42.1.
- [Release notes](https://github.com/sass/dart-sass/releases )
- [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md )
- [Commits](https://github.com/sass/dart-sass/compare/1.39.2...1.42.1 )
---
updated-dependencies:
- dependency-name: sass
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-05 13:01:51 +02:00
dependabot[bot]
75eab7e567
Bump @storybook/addon-links from 6.3.8 to 6.3.9 ( #14930 )
2021-10-05 06:42:36 -04:00
Papu Kumar(ReX)
6da90073f6
Fix Prop Types Error #14837 ( #14889 )
...
* Fix Prop Types Error #14837
Fixed prop types errors for Button, ButtonGroup, Modal and articlePage
* #added some checks into default children props
Co-authored-by: Ben Halpern <bendhalpern@gmail.com>
2021-10-05 10:58:48 +02:00
Ben Halpern
e03f2435d9
Remove dead app shell code ( #14915 )
2021-10-05 10:09:54 +02:00
Jamie Gaskins
5d5dbaca95
Eager-load comment user data ( #14902 )
...
* Eager-load comment user data
Profiles and user settings are loaded for on each comment author. On
posts with many comments, this invokes a *lot* of DB queries. This
commit replaces 2 queries per comment with 2 queries for all comments.
* Fix where I misunderstood limit's purpose
This implementation is too clever. It looks like it should just be
getting all but the last, but it uses the fact that the default is 0 to
default to getting all of them. This isn't readily understandable to
someone reading the code.
I don't have a suggestion to fix it yet so I'm just going to leave it
as-is for now.
2021-10-05 10:05:01 +02:00
Monica Mateiu
322f7f4b16
Translate Following users page and loading text in sublist ( #14898 )
...
Co-authored-by: Ben Halpern <bendhalpern@gmail.com>
2021-10-05 12:44:07 +07:00
dependabot[bot]
8b8fb93bd4
Bump @storybook/addon-storysource from 6.3.8 to 6.3.9 ( #14923 )
...
Bumps [@storybook/addon-storysource](https://github.com/storybookjs/storybook/tree/HEAD/addons/storysource ) from 6.3.8 to 6.3.9.
- [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/v6.3.9/addons/storysource )
---
updated-dependencies:
- dependency-name: "@storybook/addon-storysource"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-04 21:02:36 -04:00
dependabot[bot]
a73bba0b10
Bump babel-jest from 27.2.0 to 27.2.4 ( #14928 )
...
Bumps [babel-jest](https://github.com/facebook/jest/tree/HEAD/packages/babel-jest ) from 27.2.0 to 27.2.4.
- [Release notes](https://github.com/facebook/jest/releases )
- [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md )
- [Commits](https://github.com/facebook/jest/commits/v27.2.4/packages/babel-jest )
---
updated-dependencies:
- dependency-name: babel-jest
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-04 20:37:54 -04:00
dependabot[bot]
9c2387cebc
Bump focus-trap from 6.6.1 to 6.7.1 ( #14920 )
...
Bumps [focus-trap](https://github.com/focus-trap/focus-trap ) from 6.6.1 to 6.7.1.
- [Release notes](https://github.com/focus-trap/focus-trap/releases )
- [Changelog](https://github.com/focus-trap/focus-trap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/focus-trap/focus-trap/compare/v6.6.1...v6.7.1 )
---
updated-dependencies:
- dependency-name: focus-trap
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-04 20:33:23 -04:00
Monica Mateiu
c0a8211b74
use complementary landmarks on Tags page ( #14899 )
2021-10-04 19:05:17 -04:00
Gabriela Luhova
3595890fd7
Replace main tag inside another main tag with div ( #14896 )
...
Co-authored-by: Ben Halpern <bendhalpern@gmail.com>
2021-10-04 16:00:19 -06:00
Thomas Bnt
685a069d79
Update some words already translated ( #14890 )
...
* Update some words already translated
* Edit log_in and see_all in french
* Update config/locales/fr.yml
Co-authored-by: Aurelie Verrot <aurelie+github@verrot.fr>
* Update fr.yml
Co-authored-by: Aurelie Verrot <aurelie+github@verrot.fr>
2021-10-04 17:18:30 -04:00
dependabot[bot]
0aa7407bac
Bump @storybook/addon-a11y from 6.3.8 to 6.3.9 ( #14921 )
2021-10-04 17:16:14 -04:00
dependabot[bot]
628dc61442
Bump autoprefixer from 10.3.4 to 10.3.6 ( #14919 )
...
Bumps [autoprefixer](https://github.com/postcss/autoprefixer ) from 10.3.4 to 10.3.6.
- [Release notes](https://github.com/postcss/autoprefixer/releases )
- [Changelog](https://github.com/postcss/autoprefixer/blob/main/CHANGELOG.md )
- [Commits](https://github.com/postcss/autoprefixer/compare/10.3.4...10.3.6 )
---
updated-dependencies:
- dependency-name: autoprefixer
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-04 15:27:34 -04:00
dependabot[bot]
94f63f56bd
Bump rubocop from 1.22.0 to 1.22.1 ( #14922 )
...
Bumps [rubocop](https://github.com/rubocop/rubocop ) from 1.22.0 to 1.22.1.
- [Release notes](https://github.com/rubocop/rubocop/releases )
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rubocop/rubocop/compare/v1.22.0...v1.22.1 )
---
updated-dependencies:
- dependency-name: rubocop
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-04 14:56:12 -04:00
secondl1ght
2b98b47f3c
Make dashboard left side nav an unordered list ( #14887 )
...
* Make dashboard left side nav an ul with the anchors as li items
* Add correct class to new ul element so that nothing changes visually
Suggested by @aitchiss and tested by @msarit, I thought some css styling may need to be applied, thanks!
Co-authored-by: Suzanne Aitchison <suzanne@forem.com>
Co-authored-by: Suzanne Aitchison <suzanne@forem.com>
2021-10-04 19:55:08 +02:00
Ridhwana
de36a00843
Automatically log a creator in after they confirm their email ( #14855 )
2021-10-04 19:09:51 +02:00
Jamie Gaskins
3801789e8f
Add real release version into the running code ( #14870 )
...
* Add real release version into the running code
* Fix warnings
2021-10-04 09:35:20 -04:00
Mac Siri
bbc79821d0
Add DISABLE_SPRING to .travis.yml ( #14912 )
2021-10-04 09:35:09 -04:00
Arit Amana
9d1eaee84e
Heavy Confirmation Flow for DisplayAd-Destroy ( #14862 )
...
* wham, bam, done!
* refactor and remove switch statement
* add guards to handleRecord function
* make cypress spec more robust
2021-10-04 08:36:43 -04:00
Ben Halpern
79a537b62d
Translate notification filters ( #14884 )
2021-10-01 16:18:07 -04:00
Suzanne Aitchison
b0b2b995c5
dont show rules for top tags ( #14878 )
2021-10-01 16:16:00 -04:00
Nick Taylor
f91984d21b
Added the creator method to the user model ( #14883 )
2021-10-01 15:30:11 -04:00
Alex
f1e02b389a
Add Forem Discover registration worker and service ( #14865 )
...
* Register on Forem Discover after onboarding
* PR feedback
2021-10-01 10:27:31 -04:00
Peter Frank
16478a1b9c
Modify capitalization of default navigation link ( #14849 )
...
Changing `Terms of use` to `Terms of Use`
This has been bothering for me a while, and it's now consistent with `Code of Conduct` (which is not `Code of conduct` ) capitalization-wise
2021-10-01 09:42:17 -04:00
Ben Halpern
0715b042b5
Add recent resource sitemap endpoint for posts ( #14857 )
...
* Add generic recent resource sitemap endpoint
* Update spec/requests/sitemaps_spec.rb
Co-authored-by: Julianna Tetreault <32834804+juliannatetreault@users.noreply.github.com>
* Update spec/requests/sitemaps_spec.rb
Co-authored-by: Julianna Tetreault <32834804+juliannatetreault@users.noreply.github.com>
* Update spec/requests/sitemaps_spec.rb
Co-authored-by: Julianna Tetreault <32834804+juliannatetreault@users.noreply.github.com>
* Update spec/requests/sitemaps_spec.rb
Co-authored-by: Julianna Tetreault <32834804+juliannatetreault@users.noreply.github.com>
Co-authored-by: Julianna Tetreault <32834804+juliannatetreault@users.noreply.github.com>
2021-09-30 16:44:45 -04:00
Michael Kohl
f11e7b49d4
Remove check_box type from profile fields ( #14832 )
...
* Remove check_box type from profile fields
* Fix profile field spec
* Delete emphasized_comments_experiment.rb
This file was not supposed to be part of this PR
2021-09-30 13:27:39 -04:00
rhymes
8b4a909aac
Rubocop fixes ( #14868 )
2021-09-30 13:22:09 -04:00
ludwiczakpawel
096cf18b10
Article layout ( #14753 )
...
* style updates
* author and tools
* overflow hidden for avatars because geeeez
* font smoothing
* reverting little change
* specs
* preview
* css fix
* avatar fix'
* No longer eager load user profile when showing articles.
articles show view no longer needs user profile, as it no longer
renders the user profile preview.
* tags
* tags
* tags reverts
* typo
* dropping initializer for user cards previews on article page
* spec
* remove spec
* revert
* Update app/decorators/article_decorator.rb
Co-authored-by: Michael Kohl <me@citizen428.net>
* Update spec/requests/stories_show_spec.rb
Co-authored-by: Michael Kohl <me@citizen428.net>
* yoloing outline change on buttons because i couldn't see any visual difference
Co-authored-by: Dan Uber <dan@forem.com>
Co-authored-by: Michael Kohl <me@citizen428.net>
2021-09-30 19:08:06 +02:00
dependabot[bot]
2a4d1a0622
Bump rubocop from 1.21.0 to 1.22.0 ( #14861 )
...
Bumps [rubocop](https://github.com/rubocop/rubocop ) from 1.21.0 to 1.22.0.
- [Release notes](https://github.com/rubocop/rubocop/releases )
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rubocop/rubocop/compare/v1.21.0...v1.22.0 )
---
updated-dependencies:
- dependency-name: rubocop
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-30 17:14:53 +02:00
dependabot[bot]
e8c82ab7e5
Bump spring from 2.1.1 to 3.0.0 ( #14691 )
...
Bumps [spring](https://github.com/rails/spring ) from 2.1.1 to 3.0.0.
- [Release notes](https://github.com/rails/spring/releases )
- [Changelog](https://github.com/rails/spring/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rails/spring/compare/v2.1.1...v3.0.0 )
---
updated-dependencies:
- dependency-name: spring
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-30 17:13:53 +02:00
Ben Halpern
49d47369e4
Return 404 if empty and unsupported tag ( #14864 )
2021-09-30 09:15:40 -04:00
Fernando Valverde
c74121b0c0
Forem passport (cont) ( #14759 )
...
* Initial forem omniauth strategy setup work
* Finish basic raw proof of concept
* Some playing around
* use OAuth payloads + PASSPORT_OAUTH_URL for local dev
* Use FeatureFlag for Forem Passport Auth
* Working on tests
* Fix tests 🤞🏼 & some cleanup
* Use correct namespace within lib directory (match class namespace)
* Test to ensure Forem Passport auth is restricted by FeatureFlag
* Add broadcast + work on tests
* Update spec/lib/data_update_scripts/insert_forem_connect_broadcast_message_spec.rb
Co-authored-by: Michael Kohl <citizen428@forem.com>
* Hash format
* Schema cleanup + inline comments
* Use temprorary Heroku domain
* More cleanup
* Missed one
* Back to passport.forem.com
* Require correct path in lib
* Apply suggestions from code review
Co-authored-by: Michael Kohl <citizen428@forem.com>
* Use with_indifferent_access for symbol hash access in Forem strategy
Co-authored-by: benhalpern <bendhalpern@gmail.com>
Co-authored-by: Michael Kohl <citizen428@forem.com>
2021-09-30 06:47:45 -06:00
Suzanne Aitchison
58e3d6efd5
Suggest top tags when tag search is empty ( #14817 )
...
* show top tags when search is empty
* add cypress tests
* nudge travis
* tweak to e2e test
* show a 'top tags' heading
* only suggest tags that are supported
* Add supported scope to Tag
Co-authored-by: Michael Kohl <citizen428@forem.com>
2021-09-30 09:41:20 +01:00
Michael Kohl
081f43b356
Don't include "anti-followed" tags in email digest ( #14782 )
...
* Separate followed and "anti-followed" tags
* Minor code change
* Indicate "anti-followed" tags in sidebar
* Fix UpdatePointsWorker spec
* Cries in Arel
* Use antifollow scope more selectively
* Add spec for not_cached_tagged_with_any scope
* Add explanatory comment
* Remove unused route
* Update comment
* Remove unrelated change, figure out why > 1 later
* Need more ☕
* Avoid false positives in spec
* Change handling of ingored tags in sidebar
* Add explanatory comment
2021-09-30 10:44:38 +07:00
Michael Kohl
5a9fdd4e01
Fix search param cache leak ( #14848 )
2021-09-30 10:43:23 +07:00
dependabot[bot]
94fe2add45
Bump knapsack_pro from 3.1.1 to 3.1.2 ( #14863 )
...
Bumps [knapsack_pro](https://github.com/KnapsackPro/knapsack_pro-ruby ) from 3.1.1 to 3.1.2.
- [Release notes](https://github.com/KnapsackPro/knapsack_pro-ruby/releases )
- [Changelog](https://github.com/KnapsackPro/knapsack_pro-ruby/blob/master/CHANGELOG.md )
- [Commits](https://github.com/KnapsackPro/knapsack_pro-ruby/compare/v3.1.1...v3.1.2 )
---
updated-dependencies:
- dependency-name: knapsack_pro
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-29 16:58:14 -04:00
dependabot[bot]
bc244e7e2a
Bump httparty from 0.19.0 to 0.20.0 ( #14860 )
...
Bumps [httparty](https://github.com/jnunemaker/httparty ) from 0.19.0 to 0.20.0.
- [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.19.0...v0.20.0 )
---
updated-dependencies:
- dependency-name: httparty
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-29 13:09:06 -06:00