roschaefer
e6d7d1a936
Fix #1650
2019-09-20 20:05:27 +02:00
Vasily Belolapotkov
37a0ab6902
update client to use proper follow/unfollow mutation
2019-09-20 16:57:55 +03:00
Robert Schäfer
d830fa4ae4
Merge pull request #1596 from Human-Connection/1583-follow-mutation
...
Improve follow/ufollow mutation
2019-09-19 16:54:35 +02:00
Vasily Belolapotkov
39db954ec6
improve follow/unfollow mutation usage
2019-09-19 12:10:59 +03:00
mattwr18
de0837bbd3
Merge pull request #1572 from Human-Connection/set_created_at_in_cypher
...
Fix bug where Post.createdAt is sometimes null
2019-09-16 14:38:13 +02:00
Wolfgang Huß
22a005eb1c
Show categories translated in all places and even in tooltips
...
Show `#` symbol in front of hashtags.
Minor design changes on posts more info page.
2019-09-16 11:14:13 +02:00
mattwr18
16d7e6c91a
Update notifications
...
- create only one relationship by using merge, but do not update
createdAt attribute/update test
- order by updatedAt_desc
2019-09-13 20:14:47 +02:00
Wolfgang Huß
379f7d1ed7
Merge branch 'master' of https://github.com/Human-Connection/Human-Connection into 1455-fix-update-comment-list
...
# Conflicts:
# webapp/components/Comment.vue
# webapp/components/CommentForm/CommentForm.spec.js
# webapp/components/CommentForm/CommentForm.vue
# webapp/components/EditCommentForm/EditCommentForm.vue
# webapp/store/editor.js
2019-09-11 07:58:40 +02:00
roschaefer
b656b5aeb9
Check that about actually gets saved
2019-09-10 15:39:34 +02:00
Wolfgang Huß
abf408e3c6
Merge branch 'master' of https://github.com/Human-Connection/Human-Connection into 1455-fix-update-comment-list
2019-09-09 16:03:42 +02:00
Wolfgang Huß
3f4e717163
Move user queries to graphql/User.js
2019-09-09 10:58:10 +02:00
Wolfgang Huß
f0923ad864
Add hashtag for the comment id to the comments links of the list
2019-09-06 15:55:11 +02:00
roschaefer
c129c3fbae
Admin page handles loading and error state
2019-09-05 17:22:04 +02:00
roschaefer
5f14b4c45f
Fix lint
2019-09-03 23:19:55 +02:00
roschaefer
99dd6ea20a
Centralize fragments, fix @mattwr18's bugs
...
Most of those bugs weren't even introduced in this PR, e.g. the missing
`this.$i18n` for the comments mutations.
2019-09-03 21:28:29 +02:00
roschaefer
bb3f419532
Refactor graphql queries and fix bug
...
It's sometimes unbelievable how many bugs you find when doing
refactoring. This time there was some apparent confusion about
`commentsCount` and `commentedCount`. The counters on the post card were
never showing the correct number.
2019-09-03 21:28:29 +02:00
roschaefer
491a626031
Replace deleteComment with a more KISS solution
2019-09-03 21:28:29 +02:00
roschaefer
c585b23d7a
Fix notification queries in webapp
2019-08-30 16:00:32 +02:00
Robert Schäfer
079ced0593
Merge pull request #1400 from Human-Connection/1391-fix-bug-where-apollo-cache-not-updated-on-comment-deletion
...
Update the apollo cache
2019-08-28 19:37:59 +02:00
Matt Rider
ba1e62da21
Update the apollo cache
2019-08-26 18:54:21 +02:00
Wolfgang Huß
df4f0627b5
Merge branch 'master' of https://github.com/Human-Connection/Human-Connection into 1062-notification-about-comment-on-post
...
# Conflicts:
# backend/src/middleware/index.js
2019-08-23 15:31:48 +02:00
roschaefer
37c12f6681
Fix post count always showing 0
2019-08-23 00:36:47 +02:00
Wolfgang Huß
793485c0fc
Write frontend tests
2019-08-22 15:20:40 +02:00
Wolfgang Huß
04fe6b0a8c
Merge branch 'master' of https://github.com/Human-Connection/Human-Connection into 1062-notification-about-comment-on-post
...
# Conflicts:
# backend/src/middleware/handleNotifications/handleNotificationsMiddleware.spec.js
Refactored there tests a little
2019-08-22 11:02:10 +02:00
Wolfgang Huß
9a799657e9
Merge branch 'master' of https://github.com/Human-Connection/Human-Connection into 1062-notification-about-comment-on-post
...
# Conflicts:
# backend/src/middleware/handleHtmlContent/handleContentData.js
2019-08-21 14:42:19 +02:00
Matt Rider
8735045d11
Update cypress tests, post query
2019-08-20 20:13:29 +02:00
Matt Rider
053d8bcf7b
Fix UserQuery
2019-08-19 11:41:23 +02:00
Matt Rider
caff74e58b
Merge branch 'master' of github.com:Human-Connection/Human-Connection into 1017-send-out-notifications-on-create-omment
2019-08-19 10:50:46 +02:00
Robert Schäfer
87461c21ca
Merge pull request #1280 from Human-Connection/refactor-graphql-queries
...
Refactor graphql queries
2019-08-19 09:58:38 +02:00
Wolfgang Huß
f653bac9e1
Merge branch 'master' of https://github.com/Human-Connection/Human-Connection into 1017-send-out-notifications-on-create-omment
...
# Conflicts:
# backend/src/middleware/handleHtmlContent/handleContentData.spec.js
2019-08-16 18:22:36 +02:00
Wolfgang Huß
efb5c75c24
Refactor after Roberts suggestions, number I
...
Start writing tests
2019-08-16 16:56:14 +02:00
Matt Rider
fdc0d808f6
Fix search query
2019-08-16 14:18:18 +02:00
Matt Rider
dbaa8e687f
Fix vue warnings, fix tests, refactor
...
- was throwing an error when trying to update commentsCount because of new implementation by @roschaefer which uses countResolver, but there was no related for commentsCount, it was r... also commentsCount is no longer needed anywhere in the code base, it is commentedCount now
2019-08-16 13:28:55 +02:00
Matt Rider
d511d6aa78
Refactor graphql queries
...
- Remove duplicate queries
- Use smart query in pages/post/_id/_slug/index.vue to avoid multiple db requests for a post and its comments.
We cannot update the apollo cache with asyncData and smart queries have a prefetch policy set to true by default, which
means that they will resolve in a similar timeframe. https://stackoverflow.com/questions/55885337/in-nuxt-should-i-use-asyncdata-or-default-apollo-queries
https://vue-apollo.netlify.com/api/smart-query.html#options
https://vue-apollo.netlify.com/guide/ssr.html#vue-cli-plugin
2019-08-16 11:25:53 +02:00
roschaefer
51b734275a
The name of the hashtag is now it's ID
...
`name` was just a redundant attribute
2019-08-16 01:49:29 +02:00
Matt Rider
569ace137b
Merge branch 'master' of github.com:Human-Connection/Human-Connection into 1017-send-out-notifications-on-create-omment
2019-08-15 10:14:47 +02:00
Robert Schäfer
b6c96b7a57
Merge pull request #1261 from Human-Connection/1201-localise-categories
...
Localise categories
2019-08-14 17:44:21 +02:00
Matt Rider
ee93efd6d9
Localise categories
2019-08-14 13:57:39 +02:00
Wolfgang Huß
825a5f235a
Merge branch 'master' of https://github.com/Human-Connection/Human-Connection into 1017-send-out-notifications-on-create-omment
2019-08-14 13:10:19 +02:00
Robert Schäfer
7f509b3201
Implement block/unbock UI
2019-08-13 11:05:29 +02:00
Robert Schäfer
824b2a5561
Implement page for blocked users
2019-08-13 11:05:29 +02:00
Robert Schäfer
963cbbef32
RemovePostEmotions should return deleted object
...
@mattwr18 I prefer (I believe it's even best practice) that a delete
mutation should return the deleted object. If you run the delete
mutation again, it should return `null` because there is no object like
that anymore. That way the client knows if a delete mutation has changed
any state in the database.
Also I fixed another bug in the resolver. If your graphql mutation looks
like this:
```gql
mutation {
RemovePostEmotions(to:{ id:"p15"}, data:{emotion: angry}) {
from {
id
name
}
to {
id
title
}
emotion
}
}
```
Then you get errors because your resolver does not return the name for
the user or the title for the post anymore. Just use spread operator...
and it's fixed.
2019-08-08 23:51:26 +02:00
Robert Schäfer
f3e545a913
Fix bug: Only add emotions for authenticated user
2019-08-08 23:10:01 +02:00
Matt Rider
21aa729edb
Merge branch 'master' of github.com:Human-Connection/Human-Connection into 1017-send-out-notifications-on-create-omment
2019-08-08 09:10:18 +02:00
Matt Rider
39a94a8aac
Refactor
...
- follow PR review by @roschaefer
2019-08-07 14:55:32 +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
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
3da986518e
Write component tests, refactor
2019-08-02 10:52:36 +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