rhymes
3a53d5797e
Upgrade Rails to 5.2.3 ( #1408 )
2019-04-03 13:08:59 -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
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
d94f11fbf7
Add ability to add pro role to internal ( #1980 )
...
* Add ability to add pro role in internal
* Remove debug statement
2019-03-05 10:44:56 -08:00
Ben Halpern
bce0b4fff6
Remove harsh video restriction and add video duration ( #1811 )
...
* Remove harsh video restriction and add video duration
* Fix video meta data and tests
* Modify video tests
* Rescue video duration fetch error
* Change log to puts in test
2019-02-16 17:42:44 -04:00
Jess Lee
7b21a3a5db
Invalidate cache when updating role ( #1786 )
2019-02-13 15:02:20 -05:00
Jess Lee
009001272a
Allow dashboard view for admins and update permissions in internal/users ( #1742 )
...
* allow admins to see dashboards
* add more info to internal users
* add more info to internal users
* add video permission toggle
* specify banished user traits
2019-02-06 13:24:42 -04:00
Ben Halpern
be7fb2cdf0
Fix linting ( #1694 )
2019-01-30 16:01:23 -05:00
Jess Lee
f50247f089
Fix conditional so super admins can ban older spammers ( #1651 )
...
* allow superadmins to band old spammers
* enhance flash notification and show all new users
* fix confirm dialog
2019-01-29 15:01:04 -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
Jess Lee
4214bcbbf6
Add user status to internal/users ( #1444 )
...
* wip
* add indiviual user partial
* remove unnecessary attributes
* wip
* add indiviual user partial
* remove unnecessary attributes
* remove mentorship matching from view
* fix linting
* add mentor matching method back and refine test
* remove duplicate mentee descriptions
* Update app/controllers/internal/users_controller.rb
Co-Authored-By: jessleenyc <jessleenyc@gmail.com>
2019-01-03 16:44:43 -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
Ben Halpern
e0d1d749fc
Various internal functionality adjustments ( #1264 )
2018-12-05 13:28:46 -05:00
Michael Kohl
ffd24f791e
Add Mastodon URL to profile ( #1137 )
2018-12-04 13:24: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
Ben Halpern
921b5b0d9a
Add sloan as marker of low quality and adjust banishment logic ( #1129 )
...
* Add sloan as marker of low quality and adjust banishment logic
* Add s3 stub to rails_helper
* Modify banishment criteria
* Only mess with profile image in prod
2018-11-16 14:11:41 -05:00
sidemt
62d8a33111
Add GitLab URL field to user profile ( #1121 )
...
* Add SVG file of GitLab icon
* Add gitlab_url column to users table
* Add gitlab_url to user model, controller and policy
* Add gitlab_url to views
* Add tests for gitlab_url
2018-11-15 16:09:35 -05:00
Ryan
95b2e181ff
Add Medium URL to User's Profile ( #943 )
2018-10-18 11:39:39 -04:00
Ben Halpern
305492c2c8
Add similarity score for users ( #942 )
2018-10-17 11:53:28 -04:00
Ben Halpern
fcb68b4f29
Add automatic random mentee show page after quick match ( #931 )
2018-10-16 13:41:14 -04:00
Jess Lee
4451e5eb38
Update User Dashboard With Mentorship Admin Features ( #440 )
...
* create mentor relationship table and begin dashboard
* add missing files from previous commit
* add mentorship relationship status
* remove uniqueness validation
* add multiple notes
* ban from mentorship deactives all relationships
* add untracked files
* fix logic issue and add specs
* add model specs
* add request specs
* add request specs and fix linting
* fix internal users spec
* remove phantom columns
* remove bizzaro character
* move all attr_accessor to one line
2018-09-11 15:59:25 -04:00
Andy Zhao
e9dfe8be6a
Fix user moderation button ( #611 )
2018-09-06 12:34:22 -04:00
Andy Zhao
de25d33ce9
Delay all destroys and bust old username path ( #391 )
2018-08-17 17:23:33 -04:00
rhymes
e588fa7ece
Code cleanups ( #659 )
...
* Initial automatic cleanup with rubocop
* Fix syntax error introduced by rubocop
* Cleanup seeds file
* Cleanup lib folder
* Exclude bin folder because it contains auto generated files
* Make Rubocop a little bit more chatty
* Block length should not include comments in the count
* Cleanup config folder
* Cleanup specs
* Updated Rubocop version and generated a todo file
* Fix broken ArticlesApi spec
* Fix tests
* Restored rubocop pre-commit hook
2018-08-07 11:00:13 -04:00
Andy Zhao
12adea7b83
Andy/misc/small adjustments ( #208 )
...
* Fix bad user_id error handling
* Remove spam user from index and remove old path
2018-04-13 19:09:02 -07:00
Andy Zhao
a87cb4204c
Improve spam moderation ( #101 )
...
* Add a missing bounty hunter
* Add a msg about updating social usernames
* Add mailto: link for yo@dev in terms
* Use render partial for help tag
* Scrub all user info for banish user button
* Silently prevent updating profile for banned users
* Add Slack alert for less than 1 week old accts
* Adjust oauth mock data for tests
* Remove line about signing in/out
* Change range to one week prior
2018-03-21 16:16:18 -04:00
Mac Siri
301c6080e3
Initial commit
2018-02-28 16:11:08 -05:00