Anna Buianova
7d5650c3f1
Admin access to spam comments by url ( #20775 )
...
* Admin access to spam comments by url
* Fixed spec
* Fixed view spec
2024-03-22 08:40:36 -04:00
Anna Buianova
1008f0af7d
Automatically resolve spam reports when the offending user is marked as spam ( #20781 )
...
* Start resolving spam reports automatically after assigning spam role
* Specs for resolving spam reports + async resolving
2024-03-21 17:31:43 +00:00
Ben Halpern
3b62ff1945
Finish Digest subject test and start count test ( #20773 )
...
* Finish Digest subject test and start count test
* Proper user
* Style tweak
2024-03-19 16:10:41 -04:00
Mac Siri
092ee4a425
Implement PageViewRollup ( #20670 )
...
* Refactor
* Create PageViewRollup WIP
* Create PageViewRollupWorker and specs
* Add spec WIP
* Write spec
* Refactor
* Add spec
* Prevent retry
* Update baseline date
* Improve specs
* Update ATTRIBUTES_
* Update spec again
2024-03-18 20:33:12 +00:00
Ben Halpern
a30b86a025
Allow billboards to target specific pages with "fixed bottom" placement ( #20748 )
...
* Add page fixed bottom billboard
* Add page fixed bottom billboard
* Fix schema
2024-03-15 14:32:30 -04:00
Anna Buianova
53f311b059
Add tag moderators by username w/o autocomplete ( #20767 )
2024-03-15 14:15:51 -04:00
Philip How
57c0078bd6
Allow admins to change reputation modifier ( #20766 )
...
* Allow admins to change reputation modifier
* locale + rubocop
2024-03-15 10:46:19 -04:00
Anna Buianova
f572275c9d
Admin access for spammers profiles and articles ( #20721 )
...
* Allow admins to visit spammers profiles and articles pages
* Added spam label to user profile and articles
* Unset cache control headers when providing admin access to spam content
* Removed unused comment
2024-03-12 13:25:59 -04:00
Ben Halpern
0d4f7c7e19
Add new simple a/b test for Digest subject and adjust config and design details ( #20754 )
...
* Adjust Digest Email design and configuration
* Adjust some tests
* Update tests
* More adjustments to markup and tests
* More adjustments to markup and tests
* Digest email feature flag
* Test title variants
2024-03-11 13:02:19 -04:00
Kim Emmanuel
04fb62a6f5
ignore code blocks when checking markdown for XSS ( #20641 )
...
Code blocks are rendered as raw strings and therefore don´t need to be
checked for XSS. Checking them for XSS disallow users to write articles about
XSS in markdown, for example.
Co-authored-by: Mac Siri <mac@forem.com>
2024-03-07 21:03:39 +00:00
Mac Siri
6dc49e8d0d
[CI] Simplify setup steps ( #20742 )
2024-03-07 12:55:30 -05:00
Ben Halpern
fad28a1707
Allow feed billboards to be dismissable if dismissal_sku is present ( #20737 )
2024-03-06 15:16:23 -05:00
Ben Halpern
83878e9c10
Add classes to content wrapper for articles and pages ( #20731 )
...
* Add classes to content wrapper for articles and pages
* Add class name check
* Fix org check
2024-03-06 12:44:47 -05:00
Mac Siri
a4eea0da41
[CI] Extend Cuprite timeout ( #20734 )
2024-03-06 10:54:49 -05:00
Philip How
751e9d70d2
Show ⚠️ icon on /admin when an article is not indexed on search engines ( #20713 )
...
* Add in icon when an article is not indexed on admin
* tests
* rubocop
* rubocop
2024-03-05 21:34:20 +00:00
Ben Halpern
f2968baadb
Add optional client-side dismissal SKU for closable billboards ( #20716 )
...
* Add optional client-side dismissal SKU for closable billboards
* Safe nav
2024-03-01 16:13:19 -05:00
Anna Buianova
288c9ed31f
Fix articles counts based on display rules ( #20669 )
...
* Comment counts for signed in users
* Adjust comments count for articles
* Fixed counts for signed out users, added specs for Comments::Count
* Fixed counts for signed out and added specs for Comments::Count
* Removed debug info from the view
* Removed separate count for signed out users
* Remove irrelevant specs
* Remove unused scope
2024-03-01 07:54:15 -05:00
Mac Siri
feabafcc33
Disable flaky specs ( #20704 )
2024-02-29 16:17:56 -05:00
Ben Halpern
083732e2f3
Optimize and simplify onboarding recommendations ( #20682 )
...
* Improve performance of follow recs
* Finish and simplify
* Update tests
* Update tests
* Update tests
* Change onboardings_controller
* Adjust tests
* Change fallback to use score
* Adjust join
2024-02-29 15:57:52 -05:00
Anna Buianova
f8418a6415
Exclude articles from spammers and suspended users from /mod ( #20692 )
2024-02-28 17:36:56 +00:00
Ben Halpern
78f9bec3e7
Allow admin to declare whether to include the badge description in message ( #20684 )
...
* Allow admin to declare whether to include the badge description in badge achievement message
* Update spec/services/badges/award_spec.rb
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Add proper acceptance to tests
* Tweak tests
* Switch to kwargs
* Clean up test acceptance
* Change interface
* Update spec/requests/admin/badge_achievements_spec.rb
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update app/services/badges/award.rb
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Adjust interface
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-02-28 11:02:58 -05:00
Daniel M Brasil
ae07192ecc
improve mention model test coverage ( #20652 )
2024-02-22 17:29:10 +00:00
Ben Halpern
f88784cc35
Add configuration for admins to specify compliant email strategies ( #20663 )
...
* Add configuration for admins to specify compliant email strategies
* Add keys for test
2024-02-21 08:27:26 -08:00
Daniel M Brasil
406e3fec4d
Rremove de-indexing From Accounts With No Comments ( #20660 )
...
* remove de-indexing from accounts that have no comments
* add specs for Article#skip_indexing?
2024-02-21 10:54:02 +00:00
Ben Halpern
561bdb278c
Change value of signup in success score ( #20647 )
2024-02-18 10:30:59 -08:00
Anna Buianova
d0f3fb6fff
Optimize and test comments cache after score change ( #20640 )
...
* Add specs for caching article comments, use cache_key_with_version
* Optimize cache busting for spammer comments, reorganized related specs
2024-02-16 14:53:11 +00:00
Ben Halpern
8eb41eef8e
Record billboard signup conversions ( #20629 )
...
* Record billboard signup conversions
* Update app/models/billboard_event.rb
* Modify click tracking
2024-02-14 14:18:57 -05:00
Ben Halpern
205aee8c78
Add billboard for bottom of page with allowance to delay until after reading is finished. ( #20616 )
...
* Add delayed behavior
* Add special behavior to billboards
* Fix order for test
* Test clicking outside element when close event is present
* Update app/javascript/packs/billboardAfterRenderActions.js
2024-02-13 11:56:32 -05:00
Anna Buianova
fb09a75352
Update comment updated_at when changing score ( #20622 )
...
* Change comment updated_at when updating comment score
* Rubocop fixes
2024-02-13 13:17:24 +00:00
Mac Siri
248f0f55c0
Allow Slack::Messengers to be disabled ( #20609 )
2024-02-09 17:20:35 +00:00
Philip How
e2035e0c4a
update first post badge name ( #20613 )
2024-02-09 12:20:14 -05:00
Anna Buianova
e5064b418f
Hide super low score comments if they are child comments ( #20612 )
2024-02-09 16:24:13 +00:00
Ben Halpern
1b083f39a4
Ensure at least 0 score for new badge award ( #20605 )
2024-02-08 17:00:10 +00:00
Ben Halpern
2f9769a89d
Add new sidebar billboard locations and remove legacy campaign area ( #20562 )
...
* Add new sidebar billboard locations
* Remove some specs
* Remove campaign tests
* Adjust tag-allowed billboards
* Fix up targeting functionality
* Fix sidebar third render
2024-02-08 16:55:48 +00:00
Philip How
55f191a5ec
Automated First Post Badge ( #20600 )
...
* award first post logic, schedule, and tests
* award first post logic, schedule, and tests
2024-02-08 10:11:40 -05:00
Anna Buianova
07ffb2e3be
Removed spammers from followers list ( #20603 )
...
* Remove spam and suspended users from followers list (api and dashboards)
* Fixed the api followers endpoint
* Fixed issue with follower_ids query
2024-02-08 13:57:15 +00:00
Ben Halpern
2d9c87d9d3
Add ability to view specific billboard via params in any context if it is live ( #20599 )
...
* Fix AudienceSegmentRefreshAllWorker args issue
* Add ability to view specific billboard via params if it is live
* Fix lingering
* Refactor to clean up
2024-02-07 15:11:22 -05:00
Anna Buianova
b43cb38d40
Remove notifications related to spammer actions (after the role is assigned) ( #20593 )
2024-02-07 17:36:19 +00:00
Philip How
a900050fdc
Add Sendgrid Category to Digest Emails ( #20595 )
...
* add in header for digest emails
* add test
2024-02-06 19:02:10 +00:00
Ben Halpern
e26b27c7fa
New a/b test for Feb 5 (and add a variable too a hardcoded value) ( #20588 )
...
* Fix AudienceSegmentRefreshAllWorker args issue
* New a/b test for Feb 5 (and add a variable too a hardcoded value)
2024-02-05 15:46:03 +00:00
Anna Buianova
7125a62db0
Changed logic for hiding and displaying low-quality marker for comments based on their score ( #20581 )
...
* Specs for revised comments thresholds
* Changed thresholds for low quality comments
* Added specs for comments page
* Fixed /comments and related specs
* Reorganized code for comments trees
* Specs for podcasts episodes comments
* Refactored Comments::Tree
* Refactored Comments::Tree + added specs
* Made build_sort_query private
2024-02-05 09:27:24 -05:00
Ben Halpern
9b93b12f05
Fix AudienceSegmentRefreshAllWorker args issue ( #20576 )
...
* Fix AudienceSegmentRefreshAllWorker args issue
* Update test
* Fix
* Fix test
---------
Co-authored-by: Mac Siri <krairit.siri@gmail.com>
2024-01-31 13:48:13 -05:00
Ben Halpern
ee29318126
Add a/b test for which comments to show in feed ( #20332 )
...
* Add a/b test for which comments to show in feed
* Adjust figure
* Started at
* Move scope placement around
* Add tests for different comments_variants passed
* Fix typo
2024-01-29 12:18:50 -05:00
Anna Buianova
58bd07d729
Render 404 when root comment has low score and no children ( #20560 )
2024-01-26 17:21:18 +00:00
Anna Buianova
a4d9b4f0d1
Hide low score comments on user profile ( #20556 )
2024-01-25 16:06:50 +00:00
Ben Halpern
b763ba8544
Allow pages to have subdirectories ( #20549 )
...
* Allow pages to have subdirectories
* Add locale text
2024-01-24 16:09:29 -05:00
Anna Buianova
321540ec08
Hide low quality comments from an article page ( #20541 )
...
* Hide low-score (< -50) comments for signed in users on article page
* Use low quality threshold
* Show deleted message for low-quality for signed-in users + hide if no children
* Remove irrelevant changes
* Skip view test for low-quality
* Removed irrelevant (yet) tests
* Fixed low score threshold in specs descriptions
2024-01-23 20:33:12 +00:00
Ben Halpern
d86689f63d
Allow pages to render .txt requests ( #20547 )
...
* Allow pages to render .txt requests
* Adjust routes
2024-01-22 11:12:22 -05:00
Anna Buianova
947aaef7c1
Return 404 if user is a spammer ( #20546 )
2024-01-22 15:20:42 +00:00
Ben Halpern
aab0a19011
Allow configuration to conditionally prefer Cloudflare over Cloudinary ( #20539 )
...
* Allow configuration to conditionally prefer Cloudflare over Cloudinary
* Update app/services/images/optimizer.rb
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Fix some lints
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-01-19 09:45:36 -05:00