Commit graph

1093 commits

Author SHA1 Message Date
Christine Yen
cff6b5d589 Add Honeycomb gem and initial instrumentation (#695)
* Add basic Honeycomb initializers

* Add some basic instrumentation, capture basic IDs

* Correctly alphabetize Gemfile, embed env in dataset names

* Actually reorder Gemfile because I can read

* Add custom tracing instrumentation to RssReader

* Improve timing/tracing info in RssReader

* Even make sure Errors show up in trace if possible

* Make sure we capture this as Rails traffic

* Swap in dev/test Libhoney::Clients as appropriate

* Move context-snagging bits into lib/instrumentation.rb

* Merging Gemfile lines seems to be my Achilles heel
2018-11-28 10:08:27 -05:00
Maksim Litvinov
f2f889af77 Replace long string with array and join (#795) 2018-11-28 09:20:13 -05:00
Ben Halpern
1672098388
Removing clear notifications attempt (#1209)
* Removing clear notifications dealy

* Fix user_id issue
2018-11-27 18:29:50 -05:00
Ben Halpern
db6232adf3
Add initial ios push notifications to server (#1207)
* Add initial push notification logic for iOS

* Adjust notification form css

* Clean up schema.rb

* Add mark-all-as-read functionality for ios notifications

* Update app/models/notification.rb

Fix `find` to `find_by`

Co-Authored-By: benhalpern <bendhalpern@gmail.com>
2018-11-27 17:40:43 -05:00
dependabot[bot]
13280c24ef [Security] Bump rails from 5.1.6 to 5.1.6.1 (#1208)
Bumps [rails](https://github.com/rails/rails) from 5.1.6 to 5.1.6.1. **This update includes security fixes.**
- [Release notes](https://github.com/rails/rails/releases)
- [Commits](https://github.com/rails/rails/compare/v5.1.6...v5.1.6.1)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-11-27 17:40:24 -05:00
Anna Buyanova
48dbe55d05 Remove database.yml from the repo (#1162)
* Remove database.yml file from the repo, fixes #478

* Update dev.to docs

* Switch to the bullet list for the database.yml docs
2018-11-27 16:42:10 -05:00
dependabot[bot]
a9a23ca79d Bump rouge from 3.2.1 to 3.3.0 (#1191) [ci skip]
Bumps [rouge](https://github.com/jneen/rouge) from 3.2.1 to 3.3.0.
- [Release notes](https://github.com/jneen/rouge/releases)
- [Changelog](https://github.com/jneen/rouge/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jneen/rouge/compare/v3.2.1...v3.3.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-11-27 16:41:30 -05:00
dependabot[bot]
93fb8f95ce Bump uglifier from 4.1.19 to 4.1.20 (#1193) [ci skip]
Bumps [uglifier](https://github.com/lautis/uglifier) from 4.1.19 to 4.1.20.
- [Release notes](https://github.com/lautis/uglifier/releases)
- [Changelog](https://github.com/lautis/uglifier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/lautis/uglifier/compare/v4.1.19...v4.1.20)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-11-27 16:39:23 -05:00
dependabot[bot]
4448455555 Bump rspec-rails from 3.8.0 to 3.8.1 (#1195) [ci skip]
Bumps [rspec-rails](https://github.com/rspec/rspec-rails) from 3.8.0 to 3.8.1.
- [Release notes](https://github.com/rspec/rspec-rails/releases)
- [Changelog](https://github.com/rspec/rspec-rails/blob/master/Changelog.md)
- [Commits](https://github.com/rspec/rspec-rails/compare/v3.8.0...v3.8.1)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-11-26 13:28:13 -05:00
dependabot[bot]
5813854df4 Bump jest-fetch-mock from 1.7.4 to 1.7.5 (#1187) [ci skip]
Bumps [jest-fetch-mock](https://github.com/jefflau/jest-fetch-mock) from 1.7.4 to 1.7.5.
- [Release notes](https://github.com/jefflau/jest-fetch-mock/releases)
- [Commits](https://github.com/jefflau/jest-fetch-mock/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-11-26 13:13:27 -05:00
dependabot[bot]
10081c4719 Bump marked from 0.5.1 to 0.5.2 (#1190) [ci skip]
Bumps [marked](https://github.com/markedjs/marked) from 0.5.1 to 0.5.2.
- [Release notes](https://github.com/markedjs/marked/releases)
- [Commits](https://github.com/markedjs/marked/compare/v0.5.1...v0.5.2)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-11-26 13:06:17 -05:00
dependabot[bot]
1fd7bbd62b Bump codemirror from 5.41.0 to 5.42.0 (#1188) [ci skip]
Bumps [codemirror](https://github.com/codemirror/CodeMirror) from 5.41.0 to 5.42.0.
- [Release notes](https://github.com/codemirror/CodeMirror/releases)
- [Changelog](https://github.com/codemirror/CodeMirror/blob/master/CHANGELOG.md)
- [Commits](https://github.com/codemirror/CodeMirror/compare/5.41.0...5.42.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-11-26 13:05:28 -05:00
dependabot[bot]
5e83a86c98 Bump husky from 1.1.4 to 1.2.0 (#1189) [ci skip]
Bumps [husky](https://github.com/typicode/husky) from 1.1.4 to 1.2.0.
- [Release notes](https://github.com/typicode/husky/releases)
- [Changelog](https://github.com/typicode/husky/blob/master/CHANGELOG.md)
- [Commits](https://github.com/typicode/husky/compare/v1.1.4...v1.2.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-11-26 12:57:33 -05:00
dependabot[bot]
3f6c7837ef Bump parallel_tests from 2.26.0 to 2.27.0 (#1192) [ci skip]
Bumps [parallel_tests](https://github.com/grosser/parallel_tests) from 2.26.0 to 2.27.0.
- [Release notes](https://github.com/grosser/parallel_tests/releases)
- [Commits](https://github.com/grosser/parallel_tests/compare/v2.26.0...v2.27.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-11-26 12:57:13 -05:00
dependabot[bot]
ac6e223260 Bump bullet from 5.8.1 to 5.9.0 (#1194) [ci skip]
Bumps [bullet](https://github.com/flyerhzm/bullet) from 5.8.1 to 5.9.0.
- [Release notes](https://github.com/flyerhzm/bullet/releases)
- [Changelog](https://github.com/flyerhzm/bullet/blob/master/CHANGELOG.md)
- [Commits](https://github.com/flyerhzm/bullet/compare/5.8.1...5.9.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-11-26 12:56:13 -05:00
dependabot[bot]
c6bd699f6c Bump lint-staged from 8.0.5 to 8.1.0 (#1186) [ci skip]
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 8.0.5 to 8.1.0.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v8.0.5...v8.1.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-11-26 12:54:05 -05:00
Mario See
8e18df003e remove stream from docs (#1199)
since stream was removed in the notifications update, just removing stream in the set up part of the docs
2018-11-26 12:35:40 -05:00
Ben Halpern
759d7540a7
Add guard to stop negative notifications (#1200) 2018-11-26 12:34:38 -05:00
Phil Nash
0df793a6fe Adds rel='me' to profile links. (#1183)
rel='me' is used on hyperlinks from one page about a person to other pages about that same person. (http://microformats.org/wiki/rel-me)

rel='me' is supported on other social sites, such as Twitter and GitHub. Thought it might have a place here on DEV too.
2018-11-26 10:53:18 -05:00
Anna Buyanova
c1eb30e02a Make less sql queries when loading comments (#1197) 2018-11-26 10:51:38 -05:00
Ben Halpern
73b1616bb5
Fix notification pagination reaction issue (#1181) 2018-11-22 12:48:54 -05:00
Ben Halpern
031a3bd751
Fix parsing error in header tags. (#1180)
* Strip HTML from anchor link in header names

* Skip one test which is not passing for unknown reasons
2018-11-22 12:48:46 -05:00
Ben Halpern
3b94e1d1a6
Quick notifications fix (#1179) 2018-11-22 11:40:05 -05:00
Ben Halpern
eccee11106
Initial basic paginionation-ish for notifications (#1175) 2018-11-21 20:03:56 -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
b34ee48c1f
Fix hanging /connect notification issue (#1174)
* Adjust channel opened check to mitigate race conditions maybe

* Add fix to jump user straight to apporpriate unopened channel
2018-11-21 12:08:09 -05:00
rhymes
915e2d77b6 Export articles/posts (#576)
* Add EditorConfig file for all editors

* Add article export service

* Add setting to request an export of all articles

* On the outside they are called posts

* Add articles exported email to mailer and service

* Refactor to one public method and test flags

* Trigger the export if it was requested and send the email

* Recreated migration file with generic export fields

* Rename fields and switch to a whitelist

* Refactor ArticleExportService into a more generic structure

* Rename articles_exported_email to export_email

* Fix notify mailer spec

* Rename Exporter::Exporter to Exporter::Service

* Remove commented out line

* Removed body_html, coordinates and updated_at from export

* Invert DJ config

* Update spec
2018-11-21 11:13:36 -05:00
Ben Halpern
86c60307d2
Small notification update (#1169)
* Small notification update

* Rescue errors in notifications
2018-11-20 20:03:55 -05:00
Gabriel Lebec
1e2749be24 feat(markdown): add ids to headers (#713)
* feat(markdown): add anchors for headers

* Fix markdown anchors impl and spec

* Fixes tests for markdown anchors

* Use name for anchors instead of IDs

* Fix approval file

* Remove emojis in links and hyphenate only spaces
2018-11-20 18:17:07 -05:00
Ben Halpern
5ee5c931fc
Fix small details in notification results and add filtering (#1166)
* Fix small details in notification results and add filtering

* Adjust filter styling

* Fix filtering

* Add reaction render to comments
2018-11-20 18:00:11 -05:00
Ben Halpern
0e76bdcd33
Fix typo (#1165) 2018-11-20 15:27:08 -05:00
Ben Halpern
115e52c748
Move follow and reaction aggregation into Notification model to avoid… (#1164)
* Move follow and reaction aggregation into Notification model to avoid re-compute

* Ugh. Fixing schema

* Update tests

* Skip some tests in notifications_spec
2018-11-20 15:00:21 -05:00
Mac Siri
912b6e75f2 Remove focus [ci skip] 2018-11-20 11:12:18 -05:00
dependabot[bot]
ba25932627 Bump google-api-client from 0.24.3 to 0.25.0 (#1144)
Bumps [google-api-client](https://github.com/google/google-api-ruby-client) from 0.24.3 to 0.25.0.
- [Release notes](https://github.com/google/google-api-ruby-client/releases)
- [Changelog](https://github.com/googleapis/google-api-ruby-client/blob/master/CHANGELOG.md)
- [Commits](https://github.com/google/google-api-ruby-client/compare/0.24.3...0.25.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-11-20 10:53:43 -05:00
dependabot[bot]
69ef775f66 Bump test-prof from 0.7.2 to 0.7.3 (#1140) [ci skip]
Bumps [test-prof](https://github.com/palkan/test-prof) from 0.7.2 to 0.7.3.
- [Release notes](https://github.com/palkan/test-prof/releases)
- [Changelog](https://github.com/palkan/test-prof/blob/master/CHANGELOG.md)
- [Commits](https://github.com/palkan/test-prof/compare/v0.7.2...v0.7.3)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-11-20 10:50:27 -05:00
Móricz Gergő
79860ee1fa Added series front matter variable to the editor guide, (#1152) 2018-11-20 08:58:03 -05:00
Ben Halpern
b2d46fed65
Lessen amount of notifications queried slightly to improve performance (#1159)
* Lessen amount of notifications queried slightly to improve performance

* Guard for last_user_reaction
2018-11-19 20:36:35 -05:00
Andy Zhao
044de6a8b5 Make reads controller async and sanitize notification titles (#1158) 2018-11-19 19:33:00 -05:00
Andy Zhao
a1010201f2 Notifications part 2 (#1156)
* Remove stream and add new notification views

* Actually remove Stream

* Move followers query to async method

* Remove unused tests and fix query

* Try using without delay instead

* Add without delay and escape HTML

* Make all tests pending for now
2018-11-19 18:14:24 -05:00
Andy Zhao
2db2dd1e5a WIP Refactor/notifications (#1131)
* Add new columns to notifications table

* Remove stream from notifications and add new methods

* Turn off moderation comment notifications

* Add notifiable_type index to migration

* Stop creation of Stream-based notification model instances

* Add notification model create hooks

* Add badge achievement notification creation hook

* Fix some specs

* Add missing @ symbol

* Fix for tests and rename a few things

* forgot to uncomment code sigh
2018-11-19 16:09:02 -05:00
Mario See
faf1c6719b more testing for connect components (#1046)
* adding more tests

- covers article.jsx and elements created from its props and state
- added png as static file that needs stubbing

* video + channelDetails test coverage

* chat + channels tests

* channels cc refactor

* yarn install

* update snapshot and string spacing

* chat.jsx test

mostly tests rendering elements
- does not test imported components, as those are already tested separately
- does not imported functions from actions or utils as those will be tested separately as well

* cleaning up

- mocked response with flush promises for state/component to reflect appropriate changes

* snapshot updates
2018-11-19 15:07:54 -05:00
dependabot[bot]
dded7dc343 Bump fake_stripe from 0.1.0 to 0.2.0 (#1142) [ci skip]
Bumps [fake_stripe](https://github.com/thoughtbot/fake_stripe) from 0.1.0 to 0.2.0.
- [Release notes](https://github.com/thoughtbot/fake_stripe/releases)
- [Changelog](https://github.com/thoughtbot/fake_stripe/blob/master/CHANGELOG.md)
- [Commits](https://github.com/thoughtbot/fake_stripe/compare/v0.1.0...v0.2.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-11-19 12:41:56 -05:00
dependabot[bot]
7f61b2e2fe Bump lint-staged from 8.0.4 to 8.0.5 (#1146) [ci skip]
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 8.0.4 to 8.0.5.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v8.0.4...v8.0.5)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-11-19 12:40:14 -05:00
dependabot[bot]
d530510e93 Bump eslint-plugin-babel from 5.2.1 to 5.3.0 (#1145) [ci skip]
Bumps [eslint-plugin-babel](https://github.com/babel/eslint-plugin-babel) from 5.2.1 to 5.3.0.
- [Release notes](https://github.com/babel/eslint-plugin-babel/releases)
- [Commits](https://github.com/babel/eslint-plugin-babel/compare/v5.2.1...v5.3.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-11-19 12:39:08 -05:00
dependabot[bot]
a4ce3e31ea Bump husky from 1.1.3 to 1.1.4 (#1147) [ci skip]
Bumps [husky](https://github.com/typicode/husky) from 1.1.3 to 1.1.4.
- [Release notes](https://github.com/typicode/husky/releases)
- [Changelog](https://github.com/typicode/husky/blob/master/CHANGELOG.md)
- [Commits](https://github.com/typicode/husky/compare/v1.1.3...v1.1.4)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-11-19 12:38:29 -05:00
dependabot[bot]
ed368829aa Bump guard from 2.14.2 to 2.15.0 (#1143) [ci skip]
Bumps [guard](https://github.com/guard/guard) from 2.14.2 to 2.15.0.
- [Release notes](https://github.com/guard/guard/releases)
- [Changelog](https://github.com/guard/guard/blob/master/CHANGELOG.md)
- [Commits](https://github.com/guard/guard/compare/v2.14.2...v2.15.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-11-19 12:38:07 -05:00
Alex B
ca72083019 Added retina compatible favicon #1116 (#1139) 2018-11-19 09:41:10 -05:00
Anna Buyanova
deb7e794a6 Fixes #708 the reading list pagination (#1149) 2018-11-19 09:09:10 -05:00
John Woodruff
0f23de50c6 Add stackblitz support (#1120)
* Add stackblitz support

* Add stackblitz tests

* Remove test I accidentally copied over.
2018-11-19 08:38:12 -05:00
Harsh Patel
63acd40521 fix a typo in CONTRIBUTING.md (#1136) 2018-11-17 10:43:08 -05:00