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
7f2adfaa9e
Add back missing locale to type User
2019-10-18 15:20:06 +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
a6108f6a00
locale
...
change language to locale
2019-10-18 12:15:21 +02:00
Alexander Friedland
abaa9b7759
locale
...
change language to locale
2019-10-18 12:14:11 +02:00
Alexander Friedland
713feb4347
locale
...
change language to locale
2019-10-18 12:13:01 +02:00
Alexander Friedland
6d1bf2c3e8
locale
...
change language to locale
2019-10-18 12:10:44 +02:00
Alexander Friedland
3346048e3e
locale
...
change language to locale
2019-10-18 11:53:29 +02: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
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
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
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