mattwr18
b38fde0fd0
Fix production error "User.locale" returned undefined
2019-11-13 18:00:35 +01:00
mattwr18
a0fe9cb94c
Merge pull request #2218 from Human-Connection/fix_locations_resolver
...
fix: return `null` for missig translations
2019-11-12 22:38:59 +01:00
mattwr18
ecf0e5948b
Commit to trigger build
...
- prefer variables on one line
2019-11-12 21:09:02 +01:00
roschaefer
deb4b4f698
fix: return null for missig translations
...
A query such as `{ notifications }` would return `null` for Locations
with a missing translation, e.g. `nameRU`. This would not happen for
queries implemented by `neo4j-graphql-js` because they nullify all
missing attributes automatically.
2019-11-12 19:14:34 +01:00
mattwr18
3b5e40efaa
Merge branch 'master' of github.com:Human-Connection/Human-Connection into donation-info
2019-11-12 15:18:10 +01:00
mattwr18
a215093bc3
Make Donations reactive
...
Co-authored-by: @alina-beck <alina.beck@mail.com>
2019-11-12 13:26:30 +01:00
mattwr18
afb443ac0d
Update resolver to match one Donations node
...
- there should only ever be one Donations node to start off with, if
that changes in the future for some reason, then we'd need to look into
changing the match to something that makes more sense.
2019-11-11 19:14:06 +01:00
mattwr18
835a098731
Set up backend for DonationsInfo
...
Co-authored-by: Mike Aono <aonomike@gmail.com>
2019-11-11 18:14:33 +01:00
mattwr18
780a418254
Fix lint
2019-11-11 08:52:04 +01:00
roschaefer
8e129c6001
fix: update counter when notification is read
...
@mattwr18 vue-apollo rocks! Taking the time to study the docs is a
rewarding investment.
My first idea was to cache the `unreadNotificationsCount` with Vuex.
But the docs of apollo even suggest to use apollo's local state as a
complete replacement of Vuex:
https://vue-apollo.netlify.com/guide/local-state.html
Then I further investigated why the updated `NOTIFIED` objects won't
update the notification counter. Turns out: They don't have an ID and
the computed property didn't fire when the notifications array would
change. I fixed both in this commit and yes, it works as expected.
No additional code required 💪
2019-11-11 08:52:04 +01:00
mattwr18
715261238a
Protect against cypher injection vulnerability
...
- following @roschaefer PR review suggestion
2019-11-11 08:52:04 +01:00
mattwr18
f34c8f44e0
Update resolver for paginated notifications
2019-11-11 08:50:35 +01:00
mattwr18
cb2b8ddad7
Merge pull request #2148 from Human-Connection/2128-close-all-sessions
...
close all open sessions
2019-11-07 10:05:59 +01:00
Youri Seichter
d262ed678c
close all open sessions
2019-11-06 18:32:25 +01:00
roschaefer
807ac00a12
Fix backend tests
2019-11-05 18:06:10 +01:00
roschaefer
61a8914989
Always normalize email in backend
2019-11-05 00:06:15 +01:00
roschaefer
bcf06dff25
Implement backend lookup with normalizeEmail
2019-11-05 00:06:15 +01:00
roschaefer
2a9e182649
fix: performance issue with ordering
...
@mattwr18 @aonomike
You must never `ORDER BY` a property with a `@cypher` directive. Reason:
The order by performance will be terribly poor.
See my issue:
https://github.com/neo4j-graphql/neo4j-graphql-js/issues/239
And my PR:
https://github.com/neo4j-graphql/neo4j-graphql-js/pull/247
2019-10-22 20:00:12 +02:00
mattwr18
46fd534a28
Merge pull request #1840 from Human-Connection/1205-pinned-post-for-admins
...
Allow admins to pin a post
2019-10-21 14:37:14 +02:00
mattwr18
9d37099984
Merge pull request #1957 from Human-Connection/1955_refactor-reports-resolver-spec
...
Refactor reports resolver spec
2019-10-21 13:22:17 +02:00
aonomike
86907f2800
Fix code review issues
2019-10-21 13:25:56 +03:00
mattwr18
3163f6c9b1
Merge pull request #1853 from Human-Connection/219-add-createDate-follow-shout
...
Added createdAt date for follow and shout
2019-10-21 10:13:20 +02:00
Kapil Jain
aaa1fea582
Implemented review comments - moved new tests in their own 'it' blocks.
2019-10-20 11:12:54 -04:00
Kapil Jain
58e3429c31
Implemented review comments - moved new tests in their own 'it' blocks.
2019-10-20 10:52:20 -04:00
aonomike
4e42017afa
Refactor tests for querying reported resources
2019-10-19 15:50:48 +03:00
aonomike
08adff74bf
Refactor tests for reporting a tag
2019-10-19 15:08:26 +03:00
aonomike
55abe975d9
Refactor tests for reporting a comment
2019-10-19 14:57:10 +03:00
aonomike
58d1ce6515
Refactor tests for reporting a post
2019-10-19 14:27:51 +03:00
aonomike
28f0431ffa
Refactor tests for reporting a user
2019-10-19 13:34:54 +03:00
aonomike
bcb880db5e
Start refactor of authenticated user path
...
- Refactor report invlid resource
- Start refactor of valid resource path
2019-10-19 12:51:16 +03:00
aonomike
cf5042d9a4
Refactor report resolver spec
...
- Set up the apollo server testing
- Refactor unauthenticated path for the mutation
2019-10-19 11:35:36 +03:00
mattwr18
8872dc16cf
Follow @Tirokk 's PR review suggestions
...
- add type :User to match
- remove unneeded outdated pinPost
2019-10-18 18:27:20 +02:00
mattwr18
9f70012556
Fix lint
2019-10-18 15:55:47 +02:00
mattwr18
ddf8b657be
Merge branch 'master' of github.com:Human-Connection/Human-Connection into 1205-pinned-post-for-admins
2019-10-18 15:17:03 +02:00
Alexander Friedland
c819edc293
Merge pull request #1927 from Human-Connection/Set_and_save_language_in_user_settings
...
Language will be saved in the database of the user during registration
2019-10-18 15:11:04 +02:00
mattwr18
be0c8044e8
Return pinnedAt date from pinPost resolver/clean up
...
- it's good to return the pinnedAt date for ordering
- move test to a better describe block
- remove unneeded outdated variables from graphql/PostQuery UpdatePost
- fix indentation in Post.gql
- fix pinnedAt to return pinned.createdAt, not post.createdAt
Co-authored-by: Mike Aono <aonomike@gmail.com>
2019-10-18 15:10:26 +02:00
Alexander Friedland
f6e87b87ff
locale
...
change language to locale
2019-10-18 12:54:55 +02:00
Alexander Friedland
713feb4347
locale
...
change language to locale
2019-10-18 12:13:01 +02:00
Kapil Jain
dad9626656
fixed lint errors
2019-10-17 20:20:01 -04:00
Kapil Jain
202316e0a3
Fixed formatting
2019-10-17 19:45:39 -04:00
mattwr18
411bbabcd5
Add profilePagePostsQuery to deal with bug
...
- we do not want to add pinnedPosts to every user's profile page
2019-10-18 00:42:44 +02:00
mattwr18
b800c7d5c9
Resolve pinnedAt undefinedToNull, clean up
...
- this was causing the noftications to break since they were using the
post fragment and pinnedAt was returning null
- remove unused bits of code
- revert changes to cypress since they were not causing the error
- can be changed in another PR
2019-10-18 00:01:46 +02:00
mattwr18
8b27250393
Fix vue warning webapp, try to find source of cypress failure
...
- clean up
2019-10-17 22:44:44 +02:00
mattwr18
973912fb87
Add tests for unpinPost, refactor
...
- following @roschaefer 's PR review suggestions
- simplify UpdatePost by using pinPost/unpinPost
- did not remove filtering because attempting to have two queries caused
problems as well to do with duplicate records, etc... and it's working
now
2019-10-17 21:51:41 +02:00
Kapil Jain
f6e70bee25
fix conflicts with merge
2019-10-17 15:17:54 -04:00
mattwr18
cbeecce775
Prefer persistent pinnedPost filter in backend
2019-10-17 17:56:16 +02:00
mattwr18
36f6be9e36
Support unpinning Post
2019-10-17 17:56:16 +02:00
mattwr18
dd55d11739
Add backend test for PostOrdering
2019-10-17 17:56:16 +02:00
mattwr18
f1243c6df0
Add createdAt attribute to PINNED and test
2019-10-17 17:56:16 +02:00
mattwr18
0007533b8c
Add tests that admin can pin anyone's post/limit 1 pinned post
2019-10-17 17:56:16 +02:00