Commit graph

466 commits

Author SHA1 Message Date
Arun Kumar
52813f53dc Minor update to README (#568) 2018-07-12 10:59:00 -04:00
Arun Kumar
2400908b9d Refactor render_rewarding_context_message_html method with a guard (#569)
clause
2018-07-12 10:58:37 -04:00
Mac Siri
94601cdd87 Enrich database seeds (#566)
* Update Faker gem to master

* Randomize user profile images

* Enrich seeds.rb
2018-07-11 17:21:50 -04:00
Yechiel Kalmenson
37e0059ade open markdown links in new tab (take 2) (#512)
* open links in chats in new tabs

* fixed target_blank vulnerability

* add test to make sur links are being generated with target _blank

* add test for target blank vulnerability

* add rel and target to the whitelisted attributes

* add the link attributes to HTMLRouge#link
2018-07-11 15:04:03 -04:00
Andy Zhao
535e65ead1 Change mailer default url to https://dev.to (#549)
* Change mailer default url to https://dev.to

* Use ENV instead of hardcoding url
2018-07-11 14:05:23 -04:00
Mac Siri
889f813991 Create ReservedWords class (#562) 2018-07-11 11:53:04 -04:00
Edem Attikese
6e3b64f060 Apply bundler-audit fix & Update gems (#472)
* added bundler workaround so git repos are accessed via https

* Use forked version of fix-db-schema-conflicts gem

* Update #update_stripe_plan_for_subscription

* Update stripe version

This was actually already done but not reflexed in the Gemfile

* Pessimize Gemfile

* Fix lint

* Fix lint
2018-07-11 11:01:47 -04:00
Nick Taylor
0f96f97e48 Added vscode debug config for debugging Jest tests. (#561) 2018-07-10 16:05:09 -04:00
Andy Zhao
aab350f02b Return false to maybe prevent early form submit (#531) 2018-07-10 15:37:07 -04:00
Andy Zhao
41d028cc5a Use non-prettiered JS file instead (#563) 2018-07-10 14:54:31 -04:00
Andy Zhao
e7466fc436 [Done] Add Reaction Policy Spec (#547)
* Delete old files and combine into one spec

* Write new reaction request spec

* Use a single route for logged in/out reaction count

* Refactor a bit

* Remove unused file

* Add reaction policy and spec

* Fix eslint issue

* Remove dead route
2018-07-10 14:12:04 -04:00
Andy Zhao
6dfcf2e856 Fix adding quotes and dashes in codeblocks (#557)
* Fix adding quotes and dashes in codeblocks

* Use find_by for all remove_from_feed methods (#558)

* Destroy memberships when chat channel is destroyed
2018-07-10 13:41:54 -04:00
Jess Lee
2a38f14fb7 add copy and pasted language (#546) 2018-07-10 10:51:57 -04:00
Andy Zhao
9fa9a22d54 Add a comment for more public controllers (#553) 2018-07-09 18:14:34 -04:00
Andy Zhao
3bbfa03114 Fix bad query when deleting users (#556) 2018-07-09 17:46:08 -04:00
Ben Halpern
36fa056d24
Upgrade to Ruby 2.5.1 (#455)
* Upgrade sprockets for security reason

* Upgrade to Ruby 2.5.1
2018-07-09 16:17:22 -04:00
Andy Zhao
a920d6cf1c Add dependent destroys to automate some deletion tasks (#554)
* Add dependent destroys for dependency-less models

* Add before destroy for empty dm channels

* Fix typo

* Add new tests for new dependent destroys

* Remove failing test b/c rethinking relationships later

* Use find_by to return nil instead of erroring out

* Add before_destroy to destroy follows
2018-07-09 15:54:09 -04:00
Jess Lee
6b53c01762 Collect Mentorship Info (#551)
* add basic mentorship info

* add missing comma

* migrate test env
2018-07-06 10:56:24 -04:00
Ben Halpern
926991f5fc
Fix timezone issues and small adjustment to connect features (#548) 2018-07-05 16:39:04 -04:00
Andy Zhao
749ffabbe7 [Done] Adjust abuse reports (#540)
* Fix bad formatting of links

* Change spam bot to post in potential-spam

* Add internal report link to Slack message
2018-07-05 11:16:11 -04:00
Ben Halpern
fcac6575d1 Merge branch 'master' of github.com:thepracticaldev/dev.to_core 2018-07-03 19:06:39 -04:00
Ben Halpern
eaa13a53fb Update serviceworker notficiations 2018-07-03 19:06:23 -04:00
Ben Halpern
4638768d79
Remove channel member count limit (#545)
* check for dataset content in triggeractive

* Remove channel member count limit
2018-07-03 16:50:53 -04:00
Ben Halpern
53c925a148
check for dataset content in triggeractive (#544) 2018-07-03 15:43:36 -04:00
Ben Halpern
84568cd860
Remove video DM limitation (#543) 2018-07-03 15:04:35 -04:00
Ben Halpern
50bc2f259c
Add max channel members (#542)
* Add max channel members

* Change number

* Remove console.log
2018-07-03 13:54:57 -04:00
Ben Halpern
424be43865
Add chat_channel_membership roles and invite functionality (#541) 2018-07-03 13:16:48 -04:00
Andy Zhao
b45dd391b6 Disable rack timeout logs (#530) 2018-07-03 13:09:11 -04:00
Nick Taylor
9d55c5f854 Nick/task/dx/vscode chrome debugger (#538)
* Now you can attach to debug the front-end with VS Code.

* Added Chrome Debugger extension to suggested extensions.
2018-07-03 10:11:11 -04:00
Ben Halpern
12f18c0f4b
Add July sponsors (#533)
* Add July sponsors

* Remove outdated line from sponsor page
2018-07-02 17:40:46 -04:00
Andy Zhao
beac877e44 Add stripe policies and specs (#529)
* Add stripe policies and specs, and some refactor

* Update moderation test to test for 404
2018-07-02 17:19:25 -04:00
Ben Halpern
94e5154668
Add initial invitation framework for chat channels (#528)
* Add initial invitation framework for chat channels

* Update chat_channel specs

* Add DIY concept of accepting invite

* Add some js and fix spec

* Add full invite accept functionality

* Remove console.log from chat
2018-07-02 16:31:20 -04:00
Andy Zhao
a3aa5b5bd2 Silence cache log outputs from dalli gem (#527) 2018-07-02 15:51:14 -04:00
Ben Halpern
4565476fa7
Add monkeypatched auth method to admin application_controller (#525) 2018-06-29 17:20:55 -04:00
Ben Halpern
51228e929b
Remove user from algolia index before destroy (#524) 2018-06-29 14:26:31 -04:00
Ben Halpern
92a541a517
Add a couple specs for notifications and pages (#522)
* Add a couple specs

* Remove stream VCR from notifications_spec

* Add github readme spec

* Add notifications count specs

* Add guards in notifications controller

* Fix test

* Fix test
2018-06-29 14:14:36 -04:00
Andy Zhao
62352fe6d6 Authorize admin after checking csrf (#523) 2018-06-29 13:59:03 -04:00
Mac Siri
808550afb0 Create 'proper_status' shared context (#506) 2018-06-29 10:43:46 -04:00
Ben Halpern
71c94b6546
Fix boosted posts and add spec (#521) 2018-06-28 17:22:02 -04:00
Mac Siri
6bae46fbbf Remove escaping of user_params (#500)
* Remove the need to escape user_params

* Fix lint

* Permit password and password_confirmation

* Fix lint
2018-06-28 15:56:24 -04:00
Ben Halpern
799aa16378
Fix /live for workshop (#516) 2018-06-28 14:28:24 -04:00
Tiffany Wismer
414d259c0d Fixed errors in last pull request (#502) 2018-06-28 12:11:04 -04:00
Ben Halpern
7e9280390c
Add /survey and modified several page titles (droped the the) (#515)
* Add /survey and modified several page titles (droped the the)

* Add emojis to page title
2018-06-28 11:07:42 -04:00
Edem Attikese
0ad8cd9eab Edem/improvements/pundit coverage (#498)
* added organization policy + spec

* user specs for is_org_admin?

* added authroize to organization controller

* admin policy + specs

* deleted enforce admin due to pundit policy redundancy

* applied admin policy to entire admin namespace

* refactoring analytics controller WIP - wanna test codeship

* Add protection against reactions to unpublished articles (#473)

* Add chat channel policy and spec (#474)

* Add comment policy and specs (#475)

* Fix edge case with apostrophes

* Add comment policy and specs

* Add login for deleting comment spec

* Change test to raise pundit error instead of 404

* Clean up comment destroy request specs

* Remove redundant raise

* Whitelist columns on to_json call (#477)

* Add pundit policy for several controllers (#476)

* Add pundit policy for several controllers

* Adjust video spec

* Fix tag request specs

* Add proper twilio tokens request specs

* Remove puts statements

* Add a couple basic request specs (#478)

* Add a few tests and fix user tag color bug (#482)

* Refactor handle_tag_index in stories_controller (#481)

* Modify valid_request_origin? (#483)

* Add misc specs and remove banned attribute from user model (#484)

*  Fix missing Cloudinary tags and misc specs (#486)

* removing current_user_is_admin? to use .is_admin? method

* added missing org policy routes

* Add comment for all public controllers

* Fix edge case for test

* Authorize mod controller and add specs

* Refactor methods via inheritance and use only super_admin role

* Create policy method for analytics via article_policy and refactor

* Capitalize all buttons in dashboard page

* Fix org tests and remove old admin test

* Use only happy path for analytics

* Fix tests to use Pundit error

* Update org_policy spec
2018-06-28 09:38:20 -04:00
Ben Halpern
441a1ba8b8
Make channels list scroll to top on change (#514) 2018-06-27 22:30:38 -04:00
Ben Halpern
51ddc2f4fa
Track query across filters (#513) 2018-06-27 22:21:18 -04:00
Ben Halpern
62fc45865c
Add sticky activechannel during filtering (#511) 2018-06-27 21:46:58 -04:00
Ben Halpern
5842b73d6c
Add filters (#510) 2018-06-27 21:25:25 -04:00
Ben Halpern
d67bd4c13e
Add connect filters (#509) 2018-06-27 21:19:04 -04:00
Ben Halpern
258a6ea74f
Add filter buttons to /connect (#508) 2018-06-27 21:14:06 -04:00