Ben Halpern
cc0e4b40dd
Allow orgs to be marked as sponsors ( #2282 )
...
* Allow orgs to be marked as sponsors
* Remove community sponsor condition
2019-04-01 16:41:25 -04:00
rhymes
c99fb27451
Add published in the SQL query to retrieve article ( #2248 )
...
Since we're already asking the DB to retrieve an article, we can directly ask it to filter out published articles without checking at runtime.
2019-04-01 06:24:17 -04:00
rhymes
54ccef4766
Fix error with articles API and unknown username ( #2247 )
...
Currently the articles API breaks the server when called with an unknown username. It should return nothing like when called with an unknown tag.
2019-03-31 10:47:48 -04:00
Mac Siri
73127aca01
Remove controller specs ( #2224 )
...
* Create more request specs
* Update wording
* Update guard to work with requests
* Fix broken spec
* Remove rails-controller-testing gem
* Move article_specs
* Move last controller spec out
* Remove controller spec config
* Fix broken spec
* Remove all use of render_template
* Refactor spec
* Tweak User#remember_me
* Create ArticleAnalyticFetcher spec
* Undo User#remember_me
* Use srand in rspec
* Create FeedbackMessagesHelper spec
* Add DigestMailer spec
* Fix broken test
2019-03-29 19:05:02 -04:00
Anna Buianova
75a977172c
Fix notifications about the new child comments ( #2233 )
2019-03-29 12:51:10 -04:00
Anna Buianova
4b02fe87a4
Optimize sign in: Identity #2061 ( #2231 )
...
* Add unique index to identity
* Conditional uniqueness validations on identities
* Remove redundant Identity specs
2019-03-28 16:10:23 -04:00
Filip Defar
7a3b16c1e5
Extract "following" action from "show" in DashboardsController ( #2212 )
2019-03-27 17:03:53 -04:00
Ben Halpern
d1e73dceba
Clean up new chat channel functionality and add tests ( #2220 )
2019-03-26 13:35:32 -04:00
Anna Buianova
a936aff625
DRY the Active Jobs specs ( #2215 )
2019-03-26 09:49:40 -04:00
Filip Defar
88fc2a66d3
Remove /dashboard/following_users route ( #2191 )
2019-03-25 14:49:09 -04:00
Anna Buianova
e1968e815b
Extract new reaction notification to ActiveJob ( #2122 )
2019-03-25 13:54:21 -04:00
Abraham Williams
9cb40e546b
Enables Rails cops ( #2186 )
...
* Enable Rails cops
* Fix Rails/DynamicFindBy
* Fix Rails/HttpStatus
* Fix Rails/Blank
* Fix Rails/RequestReferer
* Fix Rails/ActiveRecordAliases
* Fix Rails/FindBy
* Fix Rails/Presence
* Fix Rails/Delegate
* Fix Rails/Validation
* Fix Rails/PluralizationGrammar
* Fix Rails/Present
* Fix Rails/Output
* Fix Rails/Blank
* Fix Rails/FilePath
* Fix Rails/InverseOf
* Fix Rails/LexicallyScopedActionFilter
* Add Rails/OutputSafety to TODO
* Add Rails/HasManyOrHasOneDependent to TODO
* Add Rails/SkipsModelValidations to TODO
2019-03-25 09:25:55 -04:00
Mike Coutermarsh
dd84051ce4
Social Card upgrade - Part 1 ( #2090 )
...
* Add HtmlCssToImage for generating images
This will be used by social_previews to convert the templates into images.
Setup a fallback image primarily for local dev, so that this won't cause
errors if authentication is missing.
Caching is setup to use contents of the html/css. So it with
autobust/generate a new image whenever the markup changes.
* Update Article social preview template to not be random
+ Being random breaks caching (since we generate cachekey by a SHA of html content)
+ Use Roboto for when generating via HTML/CSS to Image
* Update Tag social preview template to not be random
+ Make rand deterministic so it doesn't break caching
* Update user social preview template for html/csstoimage
* Update shecoded template to work with both url2png and htmlcsstoimage
* Add ability to respond to .png for social previews controller
When adding .png to the url, these routes will now generate an image and
redirect to it.
This leaves the existing pages as they were, so we're backwards
compatible with all the existing links out in the world.
* Fix merge conflicts
* Remove some duplication
* Improve spec descriptions/read better
* clean up setting template with a ternary
2019-03-22 16:28:02 -04:00
Jess Lee
1b0cb47916
Merge user and give pro users trusted role ( #2176 )
...
* remove pro privelges from other roles and add trusted role for pros
* add merge user routes and methods
* add specs
* add more specs
* update languauge on /internal for clarity
* fix code climate error
2019-03-22 16:20:31 -04:00
Andy Zhao
1b4c50574a
Update pro dashboard permissions for organization members ( #2173 )
2019-03-22 12:40:31 -04:00
Ben Halpern
7f27aa32c7
Add areas for DEV Shop displays on left sidebar ( #2162 )
...
* Add areas for DEV Shop displays
* Update display_ad spec
* Add organization to spec
* Add orgs to specs properly
2019-03-22 09:57:37 -04:00
cyrillefr
a2fcbdc4a4
Enable performance rubocop cops ( #2140 )
2019-03-21 16:01:45 -04:00
Filip Defar
937bc63bbb
Add list of followed organizations to dashboard ( #2157 )
2019-03-21 15:16:23 -04:00
rhymes
116d6b3278
Replace puts with proper logging ( #2139 )
2019-03-21 13:00:21 -04:00
rhymes
df2621a8c0
Implement image upload's error handling ( #2018 )
2019-03-21 12:31:51 -04:00
Abraham Williams
9c55121dcc
Update deprecated Faker::Overwatch use ( #2142 ) [skip ci]
2019-03-21 12:17:16 -04:00
Tim Lange
3494264404
Enabled rubocop/lint ( #2130 )
...
* WIP: Enabled rubocop/lint
* FIX: Fixed failing test
* FIX: Small change to return
* FIX: Changed indent
2019-03-21 10:53:44 -04:00
Jess Lee
d7860fa76c
Removed unnecessary 'reason for warning' in internal ( #2128 )
2019-03-20 12:58:41 -04:00
Anna Buianova
f0e9c0cfef
Extract sending new follower notification to a separate job ( #2030 )
2019-03-20 12:51:09 -04:00
rhymes
27213bf6da
Use ActiveRecord::RecordNotFound instead of ActionController::RoutingError for 404s ( #2118 )
2019-03-19 20:54:25 -04:00
rhymes
c851953d83
Fix unescaped front matter description in MarkdownFixer ( #1989 )
2019-03-19 18:19:23 -04:00
Edison Yap
7a0a793a89
Redirect to 404 if badge not found ( #2066 )
2019-03-19 16:04:43 -04:00
Ben Halpern
91bd6322ad
Add organic page view sums and modify seo boostables ( #2109 )
...
* Add organic page view sums and modify seo boostables
* Add score minimum for SEO boostable
2019-03-19 09:32:26 -04:00
Anna Buianova
825128edc4
Fix reaction notification json data when a reaction is destroyed ( #2112 )
...
* Add specs for notification sending when a destroyed reaction is passed
* Keep only persisted reactions data in the notification
2019-03-19 08:34:24 -04:00
Bolarinwa Balogun
da6a916412
Add link for tags everywhere they appear ( #2088 )
2019-03-18 17:10:23 -04:00
Jess Lee
9c1e10cd9f
Improve Internal Dashboards features( #2043 )
2019-03-18 16:29:11 -04:00
Keshav Biswa
8d57d45ecc
Rubocop Style cops enabled ( #2056 )
...
* Rubocop enabled style/alias
* Enabled Style/ArrayJoin Cop
* Enabled Style/Attr
* Enabled Case Equality
* Enabled CharacterLiteral
* Enabled ColonMethodCall Cop
* Enabled CommentAnnotation cop
* Enabled PreferredHashMethods Cop
* Enabled DoubleNegation Cop
* Enabled EachWithObject Cop
* Enabled EmptyLiteral Cop
* Enabled EvenOdd Cop
* Enabled IfWithSemicolon Cop
* Enabled Lambda and LambdaCall Cop
* Enabled LineEndConcatenation Cop
* Enabled ModuleFunction Cop;
* Enable NegatedIf and NegatedWhile Cop
* Enabled NilComparison Cop
* Enabled Not Cop
* Enabled NumericLiterals Cop
* Enabled OneLineConditional Cop
* Enabled PercentLiteralDelimiters Cop
* Excluded internal/users_controller from negated_if cop
* Reverted the double negation change from github_issue_tag and github_issue.rb"
* Enabled PerlBackrefs Cop
* Changed Regexp.last_match(1) to Regexp.last_match(0)
* Enabled proc cop
* Enabled RaiseArgs Cop
* Reverted Regexp.last_match(0) to Regexp.last_match(1)
* Enabled SelfAssignment Cop
* Enabled SingleLineMethods Cop
* Enabled SpecialGlobalVars Cop
* Enabled VariableInterpolation Cop
* Enabled WhenThen Cop
* Enabled WhileUntilModifier Cop
* Enabled WordArray Cop
* Enabled IfUnlessModifier Cop
* Enabled GuardClause Cop
2019-03-15 18:33:54 -04:00
Mario See
d8709c0334
Implement open inbox for dev-connect ( #1563 )
2019-03-15 14:39:57 -04:00
Ben Halpern
d6ab255a45
Allow users to configure to use night mode (beta) and sans-serif article body ( #2072 )
...
* Initial work for config
* Add config for users
* Fix schema
2019-03-15 13:11:53 -04:00
Anna Buianova
96de5a4f60
Don't send new follower notification when followable is a tag #2041 ( #2050 )
...
* Enable djs to confirm follow spec fail
* Don't send new follower notification when followable is a tag
2019-03-13 08:16:20 -07:00
rhymes
3c6a7d4574
Display comment published timestamp according to user's locale ( #1970 )
2019-03-08 15:19:37 -05:00
Ben Halpern
825aa9be91
Add page_view model ( #1985 )
...
* Add page_view model
* Uncomment DJ routes
* Add time on site max and don't update article page views every time
2019-03-07 11:53:33 -08:00
Anna Buianova
0ac8eb1f73
Make less queries when displaying articles flare tags ( #1957 )
...
* Make less queries when displaying flare tag
* Make less sql queries to display articles flare tags
2019-03-05 07:27:51 -08:00
Ben Halpern
8d0f0946a0
Basics of pro dashboard ( #1971 )
2019-03-04 12:10:09 -08:00
Anna Buianova
7e568921a8
Enable delayed_job web interface for admins ( #1967 )
...
* Enable delayed_job web interface for admins
* Fix delayed_job web interface spec descs
2019-03-04 10:12:42 -08:00
Anna Buianova
854c7a773c
Rubocop fixes ( #1966 )
2019-03-04 06:18:09 -08:00
Dmitrii Krasnov
9375d2436f
Fix articles feed not filtering articles by user/organization ( #1941 )
...
* Fix articles feed not filtering articles by user/organization
fix #1940
* add specs for articles fetching in articles#feed controller action
2019-03-02 07:48:55 -08:00
Ben Halpern
c93bc48010
Fix issue with boosted article in email digest ( #1936 )
...
* Adjust email digest
* Fix for missing user.experience_level
* Fix direction of greater than
* Adjust tests for new criteria
2019-03-01 13:51:06 -08:00
Andy Zhao
8b8dbd0172
Add Milestone Notifications ( #1920 )
...
* Test milestone notifications
* Add initial milestone notifications
* Add extra milestone goalposts
* Move send reaction milestone
* Use proper twilio-video package version
* Add random giphys gifs to milestones
* Make images responsive and add addl gifs
* Add guard statement for older articles
* Update app/views/notifications/_milestone.html.erb
Link to Giphy page instead of source page
* Generate gifs via class and factor in aspect ratio
* Add border radius to gifs
Co-Authored-By: Zhao-Andy <andyzhao.zhao@gmail.com>
2019-03-01 12:25:45 -08:00
Miguel Piedrafita
eb37d75c85
Implement Blogcast liquid tag ( #1891 )
2019-02-28 15:51:20 -05:00
Ben Halpern
532903c688
Add experience level averaging to articles ( #1922 )
...
* Add experience level averaging to articles
* Adjust copy on /mod ratings page
2019-02-28 08:17:29 -08:00
Ben Halpern
59cf1e5852
Add missing CloudinaryHelper inclusion in HtmlVariant ( #1923 )
...
* Add missing CloudinaryHelper inclusion in HtmlVariant
* Add test
2019-02-28 06:57:05 -08:00
Anna Buianova
8d60177d45
Remove old methods from reactions #1621 ( #1924 )
...
* Remove old methods from reactions
* Return the needed Reaction methods
2019-02-28 06:50:29 -08:00
Anna Buianova
875114395c
Fix delayed job errors related to reactions #1621 ( #1883 )
...
* Add delayed_job_web to dev environment for debugging
* Add specs for the current Follow callbacks implementation
* Move follower touching to ActiveJob
* Spec for the touch followers job
* Move Follow#create_chat_channel to ActiveJob and make the job safe
* Add ActiveJob to send email notifications about follows
* Enqueue SendEmailNotificationJob after the follow is created
* Specs to wnsure jobs are enqueued on Follow creation
* Make CreateChatChannelJob queue name more specific
* Reaction specs for Reaction after_save callbacks logic
* Touch user job
* Call Users::TouchJob on reaction create
* Move updating reactable to a separate job
* Move busting reactable cache to a separate job
* Bust homepage cache after reaction save in a separate job
* Spec for enqueueing Users::TouchJob on reaction create
* Refactor Reactions::UpdateReactable job
* Fix observer spec
2019-02-27 16:19:01 -08:00
Alexander
a1b5dfbe89
Add test for validation badge image ( #1909 ) [ci skip]
2019-02-27 10:45:13 -05:00