Andy Zhao
aadc775ffd
Add listings to /internal pages ( #2725 )
...
* Add routes for listings in internal
* Add internal listings controller and views
2019-05-06 18:16:23 -04:00
Jess Lee
393acc3ab3
Manage org credits in internal ( #2686 )
...
* manage org credits in internal
* reduce cognitive complexity in a method
2019-05-04 10:47:13 -04:00
Jess Lee
ae228cfe1f
add method to award and remove credits ( #2681 )
2019-05-03 13:56:39 -04:00
Ben Halpern
5891b2ea58
Add application "page" model ( #2657 )
...
* Generate page model
* Add page model
* Conditionally modify html rendering
2019-05-02 18:24:06 -04:00
Jess Lee
011e734ee0
Allow admins to remove credits from internal/users ( #2635 )
2019-05-01 12:49:42 -04:00
Jess Lee
0383873070
Add credit form to internal/users ( #2581 )
...
* add credit form to internal users
* add missing file whoooops
2019-04-26 12:48:00 -04:00
rhymes
5782ffd7e0
Use published scope for articles ( #2374 )
...
* Use published scope for articles
* Fix variable name
* The sequencing in the union query matters
* Fix spec
* Restore a published: true condition
* This test is actually misleading due to the union
* Revert this change, not sure why it's not a relation
* Fix useless diff
2019-04-11 13:18:26 -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
cyrillefr
4fd66372dc
Enable Layout/AlignParameters ( #2340 )
...
Check if the parameters on a multi-line method call or definition are aligned.
Resolves : #2021
2019-04-08 18:47:34 -04:00
Ben Halpern
5f3fd96960
Modify social share button and functionality ( #2316 )
...
* Modify social share button and functionality
* Some nightmode changes tossed in
* Style adjustments and test snapshot fix
2019-04-06 14:49:52 -04:00
Ben Halpern
1552df98d2
Add ability for trusted users to suggest social copy for posts ( #2306 )
...
* Add ability for trusted users to suggest social copy for posts
* Fix schema
* Fix tests
* Fix test
2019-04-04 17:01:58 -04:00
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
044b088d4f
Switch satellite view to any: true for tags ( #1956 )
2019-03-03 18:55:39 -08:00
Ben Halpern
f280d9e266
Fix a couple things and modify dev digest logic ( #1954 )
2019-03-03 18:25:39 -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
Jess Lee
54426ea20b
Enhance Internal Index Pages ( #1747 )
...
* add more info to internal users index
* create tag show page and add tag moderation form
* fix linting
* add tag index view and alias field
* add pagination to tag index
* fix spec
2019-02-06 10:25:19 -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
d0b17f2a77
Adds internal/articles input to update author ( #1628 )
...
* adds input to change article author
* remove link
* remove unnecessary attribute
2019-01-23 11:58:11 -05:00
Jess Lee
38091ba486
Update twitter validation and internal/articles query ( #1571 )
...
* update validation and only show published articles
* update twitter satellite count
Co-Authored-By: jessleenyc <jessleenyc@gmail.com>
2019-01-16 17:15:22 -05:00
Andy Zhao
7726acf157
Update notification's request specs ( #1450 )
...
Fixes all the notification request specs that were xited. This should help us feel more comfortable making changes to notifications.
Also made a small (performance?) improvement by using an already defined variable.
2019-01-14 15:20:04 -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
Ben Halpern
e4c120db5d
Replace dev.to with APP_DOMAIN config in a few places ( #1406 )
...
* Replace dev.to with APP_DOMAIN config in a few places
* Modify some tests
2018-12-26 18:13:05 -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
a1be99ebf0
Add reaction confirm/invalidate workflow for admins ( #1134 )
2018-11-16 18:53:36 -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
Jess Lee
80339dd573
Fix internal article query ( #964 )
...
* update abuse report subject template
* fix internal/article top month filters
* update resolution email spec with proper subject line
2018-10-19 16:16:43 -04:00
rhymes
1b60ee5009
Use timezone aware methods ( #893 )
...
* Use timezone aware datetime methods
* Use timezone aware date parse for GitHub issue tag
* Introduce a bit of chaos programming using Zonebie
Zonebie uses a random timezone to run tests, it's a really good way to see if the code is timezone dependent or not.
* Convert GitHub issue date as UTC
2018-10-18 16:26:29 -04: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
Adam Lombard
92645d6062
Fix indentation in articles_controller.rb ( #908 ) [ci skip]
2018-10-15 12:30:08 -04:00
Andy Zhao
eaf98d738a
Unsubscribe users from newsletters before destroying ( #878 )
...
* Unsubscribe users from newsletters before destroying
* Fix email messages not loading on show page
* Add mock for update method
2018-10-10 15:22:20 -04:00
Andy Zhao
85abcb957d
Fix ambiguous order_by statement ( #871 )
2018-10-09 13:41:25 -04:00
Andy Zhao
c9efc7a2b2
Fix repeated queries for reports ( #835 )
...
* Fix repeated queries for reports
* Load stylesheet once by moving into index
* Remove unused method
* Remove unused code again and update method
* Use better name for migration and add indices
* Use latest schema version oops
* Add missing column to query
2018-10-09 12:42:55 -04:00
Ben Halpern
384c5ce8ae
Update internal/articles to have faster buffer controls ( #839 )
2018-10-05 18:22:50 -04:00
Ben Halpern
eae8b6332f
Change various admin pages ( #758 )
...
* Change int to float for more granular admin controls
* Change int to float for more granular admin controls
* Add details to /mod for admins
2018-09-27 18:03:49 -04:00