25 Commits

Author SHA1 Message Date
roschaefer
978347ba7b Tell github-linguists to ignore snapshots 2019-11-16 20:09:05 +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