roschaefer
2a79c53765
Refactor user factory
2020-01-28 22:43:26 +01:00
roschaefer
b063847849
refactor: Make db:setup init stage of migrate
2020-01-20 11:00:52 +01:00
roschaefer
cc7cd6b8b0
Fix backend tests
2019-12-10 18:13:34 +01:00
mattwr18
4f0df2f28f
Remove disable from query request
...
- we removed it, prevent null pointer error
2019-12-10 18:09:32 +01:00
roschaefer
8f0ce19f09
Implement getDriver() and getNeode() the same way
...
I want to introduce `neode` and `neo4j-graphql-js` to my students and
saw this.
2019-12-05 21:00:24 +01:00
mattwr18
4ac3f92989
Fix lint
2019-12-02 15:54:51 +01:00
mattwr18
e4aba5d4df
Add test case/Fix message
...
- Test that the rule is automatically created for new reviews
- Improve English message
2019-12-02 13:56:44 +01:00
mattwr18
89daa3356c
Return reviews with reports, rename variables
...
- Instead of just returning the moderator who reviewed, we return the
review as well
2019-11-28 16:10:33 +01:00
mattwr18
21be2c08ba
Update to return resource instead of to
...
- more verbose makes it easier to understand
2019-11-28 13:44:00 +01:00
mattwr18
3a05844356
Refactor tests/resolvers
...
- Favor union as it's cleaner and less code
- refactor tests to new implementation
- add reviewedByModerator resolver
2019-11-27 17:31:51 +01:00
mattwr18
eceeecd9b7
Refactor reports query, tests
...
- Query returns an array of Reports with all the filedReports that
belong to them
- Mutation returns the same
2019-11-26 21:34:21 +01:00
mattwr18
2f249a73c5
Rename REPORTED Claim to FILED Report
2019-11-26 15:35:48 +01:00
mattwr18
20d693b921
Add tests for Claim, refactor tests
2019-11-25 19:00:58 +01:00
Wolfgang Huß
ef84e9991f
Merge branch 'master' of github.com:Human-Connection/Human-Connection into 1710-list-and-protocol-moderation
...
# Conflicts:
# backend/src/schema/index.js
2019-11-21 08:09:50 +01:00
roschaefer
978347ba7b
Tell github-linguists to ignore snapshots
2019-11-16 20:09:05 +01:00
Wolfgang Huß
2a23bbf101
Refactor frontend and 'reports' query again
2019-11-07 15:54:26 +01:00
aonomike
86907f2800
Fix code review issues
2019-10-21 13:25:56 +03: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
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
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ß
82228c6c99
Refactored backend database to a single REPORTED relation
2019-10-11 16:35:15 +02:00
Wolfgang Huß
a07010f50c
First step of implementing direct report relation
2019-10-10 15:38:20 +02:00
Wolfgang Huß
b41f340ad6
Fix Cypher test by correcting syntax of GraphQL report mutation
2019-10-10 08:15:17 +02:00
Wolfgang Huß
bb73ff43e4
Sanitize reason description and test, fix report in 'seed-db.js'
2019-10-04 16:58:32 +02:00
Wolfgang Huß
935252a16e
Rename variables, parameters and properties
2019-10-04 15:21:07 +02:00
Wolfgang Huß
e7fbd169d9
Get backend test to work with new properties
2019-10-04 10:23:31 +02:00
Wolfgang Huß
6ad9dc27e9
Write and refactor backend test which are supposed to fail at first
...
Implemented the new properties in the GraphQL schema.
2019-10-02 17:25:36 +02:00
roschaefer
3f5ac61b73
Fix users and report resolver specs
...
This time I did not refactor the whole tests suites because of time and
complexity of the PR review.
2019-09-03 21:28:29 +02:00
Matt Rider
29f39c4f45
Update backend tests
...
- Every test that created or updated a post needed to be updated to add categoryIds
2019-08-20 15:54:51 +02:00
senderfm
6c7ee1ef42
das einmalige melden eines User, Beitrags oder Kommentars
...
ist jetzt möglich
2019-06-25 17:51:14 +02:00
177e33c022
fixed spec include paths
2019-06-03 19:34:58 +02:00
f78c54a3e8
refactored backend structure
2019-05-31 19:31:39 +02:00