Matt Rider
d795ee50a9
Add backend tests for custom queries
2019-08-06 10:58:30 +02:00
Matt Rider
1593eab9cf
Merge branch 'master' of github.com:Human-Connection/Human-Connection into 384-emotions-on-posts
2019-08-06 08:07:39 +02:00
Matt Rider
cb7217f5a7
Fix bug
...
- apollo query fetchPolicy set to no-cache so that it will refetch a post's emotions count on page transition
2019-08-06 08:05:35 +02:00
Robert Schäfer
1aeb93f9fb
Merge remote-tracking branch 'origin/master' into storybook
2019-08-05 12:47:46 +02:00
Wolfgang Huß
22b9bf77fa
Merge branch 'master' of https://github.com/Human-Connection/Human-Connection into 1017-send-out-notifications-on-create-omment
...
# Conflicts:
# backend/src/schema/resolvers/notifications.spec.js
2019-08-05 10:15:20 +02:00
Matt Rider
295b7e7769
Merge branch 'master' of github.com:Human-Connection/Human-Connection into 384-emotions-on-posts
2019-08-05 09:50:54 +02:00
Matt Rider
97ff2e9457
Make emotionsArray a const, fix lint
2019-08-05 09:50:25 +02:00
Robert Schäfer
26958f6641
Explicitly disallow User.name == null in model
2019-08-03 00:43:18 +02:00
Matt Rider
d1d82a0051
Merge branch 'master' of github.com:Human-Connection/Human-Connection into 384-emotions-on-posts
2019-08-02 16:55:54 +02:00
Robert Schäfer
a6aa974179
Merge remote-tracking branch 'origin/master' into storybook
2019-08-02 14:28:49 +02:00
Robert Schäfer
f1b28c83a0
Meld commits from master
2019-08-02 14:26:06 +02:00
Matt Rider
76a720caec
Merge branch 'master' of github.com:Human-Connection/Human-Connection into 384-emotions-on-posts
2019-08-02 08:02:54 +02:00
Robert Schäfer
e1bb6ed74e
Fix lint
2019-08-02 01:45:36 +02:00
Matt Rider
fb9a632d55
Query a currentUsers emotions for a post, translations
2019-08-01 15:11:41 +02:00
Robert Schäfer
fdef9db74f
Update metascraper-youtube
2019-08-01 14:19:24 +02:00
Robert Schäfer
b6a59460bd
Merge remote-tracking branch 'origin/master' into storybook
2019-08-01 12:22:09 +02:00
Robert Schäfer
c9e6d182ec
Followed @mattwr18's suggestions here:
...
https://github.com/Human-Connection/Human-Connection/pull/952#pullrequestreview-269406016
2019-08-01 12:20:33 +02:00
Matt Rider
08899a4af9
Merge branch 'master' of github.com:Human-Connection/Human-Connection into 384-emotions-on-posts
2019-08-01 09:22:57 +02:00
Robert Schäfer
72edf78889
Meld a chaotic commit history into one commit
...
Some important commit messages:
```
Fix youtu.be not being embedded
And also try to maintain the old behaviour matching
`provider.provider_url`.
```
```
Remove confusing code comments and obsolete code
I discovered that the behaviour of no duplicate notifications being send
out is caused by the frontend: When the editor reads html from the
backend, it will parse hashtags and mentions as ordinary links, not as
their respective nodes during editing. Also, we don't have to worry
about duplicate ids being found: The cypher statement will implicitly
suppress duplicate notification nodes for the same user.
So let's remove the code to avoid confusing the next developer.
```
```
Test editor.getHTML()
I do this because I'm not able to test the content of `this.editor` from
a wrapper of `vue-test-utils`. If I call `this.editor.getHTML` directly
and use it as a computed property `renderedContent` to populate a `<div
v-html="renderedContent" />` this will not work for the embeds. So, my
current best bet is to test the editor object isolated from a real
component. ;(
```
```
Add core-js as explicit dependency
Because of build errors on Travis.
See: https://stackoverflow.com/a/55313456
Remove as soon as this issue is resolved:
https://github.com/storybookjs/storybook/issues/7591
```
```
Refactor: Keep Runtime-only builds
See: https://vuejs.org/v2/guide/installation.html#Runtime-Compiler-vs-Runtime-only
```
2019-08-01 00:28:22 +02:00
Robert Schäfer
c65cc3e0e5
Implement+test SocialMedia.ownedBy resolver
...
Explicitly define `SocialMedia` graphql type and exclude it from
`neo4j-graphql-js`.
2019-07-31 18:07:48 +02:00
Robert Schäfer
448706ab18
Merge remote-tracking branch 'origin/master' into refactor-social-media-backend
2019-07-31 17:36:02 +02:00
Matt Rider
5423412958
Set up UI
2019-07-31 14:58:05 +02:00
Matt Rider
0a98113c2d
Add backend tests for RemovePostEmotions
2019-07-30 13:28:30 +02:00
Alina Beck
d83819dae3
add social media back into user resolver
2019-07-29 23:19:09 +02:00
Alina Beck
afe61ce4a2
add social media back into user schema
2019-07-29 22:51:11 +02:00
Alina Beck
c7d72bfdee
use apollo test client in social media tests
2019-07-29 17:22:37 +02:00
Alina Beck
e161416eff
use neode instance in social media resolver
2019-07-29 17:22:05 +02:00
Alina Beck
355c7c764c
remove social media from user resolver
2019-07-29 17:20:36 +02:00
Alina Beck
0e1abad123
adjust social media types to fit new definition
2019-07-29 17:19:13 +02:00
Alina Beck
ab3fea19d5
add SocialMedia model
2019-07-29 17:17:18 +02:00
Alina Beck
4f068116b9
add social media permissions in middleware
2019-07-29 17:16:40 +02:00
Alina Beck
0439b4407b
remove social media validations from middleware
2019-07-29 17:16:05 +02:00
Matt Rider
3e43539e23
Set up some backend tests for emotions
2019-07-29 17:08:07 +02:00
Wolfgang Huß
a542b33f79
Merge pull request #1053 from Human-Connection/refine-social-media
...
🍰 Refine social media
2019-07-29 16:08:08 +02:00
Matt Rider
322ec597a3
Merge branch 'master' of github.com:Human-Connection/Human-Connection into 384-emotions-on-posts
2019-07-29 12:40:01 +02:00
Alina Beck
b16a98f1aa
mark backend auth tests as todo
2019-07-23 14:58:11 +02:00
Alina Beck
59321ec8f4
add more thorough backend tests (wip)
2019-07-23 14:54:11 +02:00
Alina Beck
cb33d0c267
rename social media mutations in backend tests
2019-07-23 12:09:35 +02:00
Robert Schäfer
4ee20d4e7e
Coerce undefinedToNull in embed resolver
2019-07-22 00:38:56 +02:00
Robert Schäfer
c5789cbf90
Fix get-video-id expects a string bug
2019-07-22 00:20:43 +02:00
Robert Schäfer
657a5ac1f5
Fix resolve function returns undefind
...
I'm also trying to make sense of the attribute `sources` - probably it's
indicating where the data is coming from.
2019-07-21 23:31:44 +02:00
Robert Schäfer
3d7a30d419
Remove metascraper-logo-favicon altogether
...
It's doing http requests which are hard to test and hard to maintain.
Therefore let's remove it until we really need it.
2019-07-21 22:20:44 +02:00
Robert Schäfer
75743cae32
Passing jest test, not all requests stubbed out
2019-07-21 13:41:39 +02:00
Robert Schäfer
579ec7e7dc
Re-add embed attribute as html
2019-07-20 17:51:20 +02:00
Robert Schäfer
f5730fce7e
Start to mock+test embeds resolver
...
+ Put oembed providers into a file
+ Add test snapshots
+ Remove unnecessary request-native dependency
2019-07-20 17:47:18 +02:00
Robert Schäfer
d81c38c4e3
Remove obscure embed attribute and remove cache
...
The cache is a possible memory leak: It grows over time and never gets
cleaned.
2019-07-20 15:58:55 +02:00
Robert Schäfer
73e879eb68
Fix lint
2019-07-19 22:29:53 +02:00
Robert Schäfer
f82b2c37b3
Refactor scraper.js with ES6 imports
2019-07-19 21:29:07 +02:00
Robert Schäfer
2e6ea62144
Replace got with node-fetch => -1 dependency
2019-07-19 21:06:05 +02:00
Robert Schäfer
d4c3b7ac10
Merge embed service with backend
2019-07-19 20:32:53 +02:00