Mac Siri
9f6cf61911
Update Banisher ( #3495 ) [ci skip]
2019-07-16 19:08:06 -04:00
Andy Zhao
4da791e5af
Cache bust the article's path and add minor improvement for banishing ( #3492 )
2019-07-16 13:17:29 -04:00
Bolarinwa Balogun
b52d8e931d
Add Instagram URL to profile links ( #3307 )
2019-06-26 08:56:07 -04:00
rhymes
91de529705
Remove code for legacy mentoring feature ( #3186 )
2019-06-21 17:18:11 -04:00
Andy Zhao
a55bce99ac
Cache bust banished users' posts after the posts are deleted ( #3044 )
...
* Bust article caches after they've been deleted
* Use less instances of cachebuster class
2019-06-04 15:04:30 -04:00
rhymes
6a626e819d
Refactor: fix issues raised by bullet ( #2965 )
...
* Preload organization, not user
* Preload users only when needed
* Pre-load podcasts for podcast episodes in API
* Avoid eager loading error by loading rating votes separately
* Preload associations for moderation
* Preload user comments in trees
* Preload organization for non org dashboard and cleanup queries
* Optimize ArticleSuggester to only load N articles at need
* Remove eager loading and pass variables to partials for easier debug
* Reorganize tags validation code and ignore actsastaggableon eager loading issues
* Remove unused eager loading and bring up comments relation
* Preload podcasts when loading podcast episodes
* Fix views specs
* Make sure ArticleSuggester never returns duplicates
* Remove commented code
* Re-trigger build
* Move suggested articles back to view to respect fragment caching
2019-05-28 17:32:53 -04:00
Jess Lee
8915fe3178
bust ghost cache and reindex articles ( #2837 )
2019-05-14 20:51:47 -04:00
Jess Lee
486275cbbb
Implement ghostify ( #2773 )
2019-05-14 16:50:14 -04:00
Jess Lee
9bb409e818
Clear cache on sidebars on user merge ( #2562 )
...
* clears rails cache on sidebars
* update profile and sidebar in one line
2019-04-26 19:44:59 -04:00
Bolarinwa Balogun
1578befdf1
Add Twitch to Profile Links ( #2557 )
2019-04-25 16:14:28 -04:00
Jess Lee
834b9423da
Unsub users only if they have an email ( #2556 )
2019-04-25 15:46:40 -04:00
Conor Souhrada
9be054d3dc
Wrap Moderater::MergeUser#update_social in a transaction ( #2281 )
2019-04-16 14:52:35 -04:00
Jess Lee
f637d9e02b
Manage tag and community mod lists in Mailchimp ( #2362 )
...
* add moderation email list columns
* automate tag moderator mailing list
* reorder logic for tag mod list
* add community mod list
* remove trusted privileges when reverting a user to a regular member
* automatically make tag mods community mods
* fix merge conflicts
* add community view
* make methods less complex based on code climate sugggestion
* add specs
* refactor tag moderator module
* fix spec
2019-04-10 14:45:06 -04:00
Andy Zhao
7ade338002
Use nil instead of empty string w/ new db constraints ( #2300 )
2019-04-03 17:28:08 -04:00
Jess Lee
9f74fd3794
Clear cache when merging users ( #2229 )
2019-03-28 12:26:14 -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
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
Andy Zhao
f93af16fbe
Remove notifications when banishing and deleting a user ( #2039 )
...
* Make remove_notifications a public method
* Remove notifications when banishing or deleting
2019-03-13 17:54:47 -04:00
Andy Zhao
84fbbed82a
Add profile_updated_at to clear cache key ( #1795 )
2019-02-14 12:05:47 -05:00
Jess Lee
af2915b086
Fix Banisher Updates ( #1704 )
...
* delete activity before updating username
* fix linting
* remove unnecssary return
2019-02-01 17:10:17 -04:00
Jess Lee
d36418a62a
Clear profile cache on banish ( #1702 )
...
* save spam username as old username
* keep old username for reference
2019-01-31 15:38:01 -04:00
Jess Lee
9d72091f42
add mailchimp unsub when deleting or banishing user ( #1644 )
2019-01-24 16:14:10 -05:00
Jess Lee
0eb5402926
Delete User Functionality ( #1615 )
...
* add full delete route and update banisher
* add user deletion spec
* enhance styling
* remove availability if banned from mentorship
* add specs
* do not show banned mentors
* delete addiional associations
* include more associations for deletion
* simplify activity deletion wtih delete_all
2019-01-23 16:57:32 -05:00
rhymes
dee7429883
Replace each with find_each for AR queries ( #1557 )
2019-01-15 16:38:03 -05:00
Ben Halpern
2fd314e40b
Fix chat css and banish logic ( #1515 )
2019-01-10 18:09:42 -05:00
Jess Lee
5e4508ebe1
Remove callbacks from banisher + specs! ( #1501 )
...
* wip remove callbacks from banisher
* remove pry
2019-01-09 15:12:38 -05:00
rhymes
6553f08d94
Rubocop cleanups ( #1415 )
...
* Update rubocop-todo.yml with new violations
* Fix Layout/EmptyLine* rules
* Fix Layout/Indentation* rules
* Fix remaining Layout/* rules
* Fix Lint/DuplicateMethods by removing unused accessor
* Fix Lint/IneffectiveAccessModifier
* Fix Lint/MissingCopEnableDirective
* Re-run rubocop auto gen config
* Fix Layout/RescueEnsureAlignment
* Fix Naming/* rules
* Fix some RSpec/* rules
* Fix typos
* Fix RSpec/LetBeforeExamples
* Series should only be an attr_writer, not an attr_accessor
* Fix RSpec/InstanceVariable
* Fix RSpec/InstanceVariable
* Fix RSpec/RepeatedDescription and RSpec/RepeatedExample
* Fix Style/ClassAndModuleChildren
* Fix Style/ConditionalAssignment
* Fix some Style/* rules
* Trigger Travis CI build because failing tests are not failing locally
* Revert "Fix Style/ClassAndModuleChildren"
This reverts commit 1686801d8a1516ba1894f79e24401a20dea65f99.
2019-01-02 11:20:02 -05:00
Jess Lee
f96bc7c6f3
Revert banisher ( #1274 )
...
* remove stalebot from milestone issues
* simplify banisher
2018-12-06 13:44:53 -05:00
Jess Lee
e36cf51a9e
Refine Banish User ( #1168 )
...
* add banish user test
* refactor banish user wip
* banish user wip - bust comment cache synchronously
* add more spec scenarios
* Update Banish#strip_user_profile
* Refactor specs
2018-11-21 16:55:26 -05:00