Alexander Friedland
3346048e3e
locale
...
change language to locale
2019-10-18 11:53:29 +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
mattwr18
64f9d02c1a
Start refactoring backend to pin posts on update
...
- we want to give the admins the ability to create posts, then pin them
later, or pin other admins posts, etc...
2019-10-17 17:56:15 +02:00
aonomike
56d88d6e84
Resolve failing test
2019-10-17 17:56:15 +02:00
aonomike
ab06e8a91f
Add relationship for pinned posts and user
...
- The CreateUser mutation now returns the user who pinned a post and so we can see the user who pinned the post
2019-10-17 17:56:15 +02:00
mattwr18
774581f2e0
Allow admins to create a post as pinned
...
- at the moment, it is created as a property of Post, but will be
refactored to create a relationship[:PINNED] from the admin to the Post
- Co-authored-by: kachulio1 <jngugi88@gmail.com>
2019-10-17 17:56:15 +02:00
Wolfgang Huß
72290e1c8a
Add ascendant ordering as enum to ReportOrdering
2019-10-17 10:16:27 +02:00
Alexander Friedland
cca1e2c04a
remove change
2019-10-17 09:44:26 +02:00
ogerly
54465c04a3
Fix Jest tests
2019-10-17 08:26:15 +02:00
Kapil Jain
6b72772bbb
Added tests for SHOUT and FOLLOW relationships to make sure they have "createdAt" date.
2019-10-16 22:47:02 -04:00
ogerly
dd2efad937
fix lint
2019-10-16 15:02:17 +02:00
ogerly
97dad41b27
Set language will be saved in the database of the user during registration
2019-10-16 15:01:07 +02:00
Wolfgang Huß
30f268525f
Add Cypher statement for ordering
...
- minor db manipulation text change
2019-10-16 13:32:45 +02:00
Wolfgang Huß
6dff10b236
Merge branch 'master' of github.com:Human-Connection/Human-Connection into 1707-reporting-with-specific-information
2019-10-16 09:27:13 +02:00
Wolfgang Huß
7067867f76
Changed mentioned file in comment
2019-10-16 09:25:50 +02:00
mattwr18
e8c6941142
Follow @roschaefer 's PR review suggestions
...
- disable button if form.reasonCategory is falsy
- extract valuesReasonCategoryOptions to global constant
- extract reasonCategoryOptions to created lifecycle hook to keep data()
clean and use map
- extract formSchema to components/utils and test
- remove validator from formSchema and validate based on "Deep Rules" https://github.com/yiminghe/async-validator#deep-rules
- Use v-model to update reasonCategory and reasonDescription
- default to error message in English from backend
- Update template slot to use new syntax
2019-10-15 20:28:25 +02:00
Kapil Jain
f73ff995e1
fixed lint errors
2019-10-14 15:17:49 -04:00
mattwr18
faf0a15aee
Update to use enum in tests, seed data, etc, refactor resolver
...
- Extract validations to the validations middleware to clean it up
- Remove resourceId since it throws an error in the mutation if the user
asks for it back, and the resourceId is returned in post/comment/user.id
- use writeTxResultPromise to benefit from automatic retries
- more descriptive variable naming
- extract cypher query to make db manipulation into script so that it
can be run from the command line, at least locally.
2019-10-14 21:07:55 +02:00
Wolfgang Huß
cae897808b
Follow Matts suggestions from his review
2019-10-14 17:38:38 +02:00
mattwr18
2818b63fe9
Fix lint
2019-10-14 16:42:11 +02:00
mattwr18
db48e522cf
Enforce a 16/9 aspect ratio
...
- if we set the max height any greater than this, it takes up the entire
page on a desktop screen
2019-10-14 16:42:11 +02:00
Wolfgang Huß
fd27583c1d
Merge branch '1707-reporting-with-specific-information' of github.com:Human-Connection/Human-Connection into 1707-refactor-db-reporting-with-specific-information
...
# Conflicts:
# shared/moderation/report.js
2019-10-14 16:21:08 +02:00
Wolfgang Huß
c7849cedd8
Rename report reason category names to have '_' instead '-'
2019-10-14 16:12:21 +02:00
Wolfgang Huß
6365d3df54
Implement enum for report reason categories after Matts suggestion
2019-10-14 15:53:36 +02:00
aonomike
47a2a21fc0
Resolve review comments
2019-10-14 16:46:37 +03:00
Wolfgang Huß
19facb22a9
Merge branch '1707-refactor-db-reporting-with-specific-information' of github.com:Human-Connection/Human-Connection into 1707-refactor-db-reporting-with-specific-information
2019-10-14 15:37:29 +02:00
Wolfgang Huß
3c472293ac
Update backend/src/schema/resolvers/reports.spec.js
...
Co-Authored-By: mattwr18 <mattwr18@gmail.com>
2019-10-14 15:22:25 +02:00
Wolfgang Huß
b50896bb45
Update backend/src/schema/resolvers/reports.spec.js
...
Co-Authored-By: mattwr18 <mattwr18@gmail.com>
2019-10-14 15:22:07 +02:00
Wolfgang Huß
663cfeb0b2
Merge branch 'master' of github.com:Human-Connection/Human-Connection into 1707-reporting-with-specific-information
2019-10-14 13:37:58 +02:00
Wolfgang Huß
8bc939c2da
Merge branch 'master' of github.com:Human-Connection/Human-Connection into 1707-refactor-db-reporting-with-specific-information
2019-10-14 13:36:24 +02:00
aonomike
0fe94a5d82
Complete refactor rewards spec
...
- Refactor unreward path
- refactor to use variables constant
2019-10-12 17:39:29 +03:00
aonomike
dcb40c2c33
refactor moderator user path
2019-10-12 17:00:36 +03:00
aonomike
bd83482465
Complete refactor of logged in administrator spec path
2019-10-12 16:50:58 +03:00
aonomike
b87f2a52cf
Refactor rewards spec
...
- Refactor unauthorised path
2019-10-12 15:04:43 +03:00
Kapil Jain
0da37d6af8
updated shout resolver to add createdAt
2019-10-11 15:52:35 -04:00
Wolfgang Huß
82228c6c99
Refactored backend database to a single REPORTED relation
2019-10-11 16:35:15 +02:00
mattwr18
b0e7ef34ed
Update findProviders.json path
2019-10-11 15:22:59 +02:00
mattwr18
dab05d9e67
Fix embeds settings page
...
- Dockerfile was not copying providers.json
- Fix file path to providers.json
- Update template to show message based on allowEmbedIframes
Co-authored-by: Robert Schäfer <git@roschaefer.de>
Co-authored-by: Mike Aono <aonomike@gmail.com>
2019-10-11 14:01:39 +02:00
mattwr18
596b8de615
Merge pull request #1805 from Human-Connection/1754-fix-buggy-profile-page-posts-duplicates
...
Update profile posts apollo query
2019-10-11 10:05:21 +02:00