mattwr18
c6f16497fa
Update Post slug to be non-nullable
2019-11-27 17:45:05 +01:00
mattwr18
d18d9228b0
Refactor tests/resolvers
...
- we were making multiple http requests to report resources in this
test, now we are bypassing these requests by setting the database up to
how we want to test, then testing what we want in isolation.
- also added tests for closing a report
- favor union for returning resource
- simplify review mutation
2019-11-27 17:35:30 +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
d03d669056
Remove reviewedByModerator from resources
...
- moved to Report node, as the report was reviewed by the moderator...
a resource can have many reports on them, so we are interested in
grouping reviewed/filed by report
2019-11-27 17:26:42 +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
mattwr18
38c5b9e4ec
Refactor reports resolver, REPORTED type
...
- return Claim instead of setting more properties on relationship
REPORTED
- use readTransaction for query to benefit from autmatic retries, follow
neo4j suggestion
- use map instead of forEach https://codeburst.io/javascript-map-vs-foreach-f38111822c0f
2019-11-25 18:56:58 +01:00
mattwr18
f36ae9a63c
Refactor softDeleteMiddleware spec
...
- We have been using http requests in our set up in this file, which can
be avoided. We are not trying to test that the report/review workflow
works properly here, we are trying to test that if a resource was
reported, and then disabled, some conditions are true. Certainly, we
will have tests that check that the report, review workflow works as
expected.
2019-11-25 17:05:04 +01:00
mattwr18
1a5fd29922
Add Claim model
2019-11-25 17:04:47 +01:00
Wolfgang Huß
4c91675838
Fix lint
2019-11-23 11:41:48 +01:00
Wolfgang Huß
67a5a00704
Clean up
2019-11-23 10:58:16 +01:00
Wolfgang Huß
6890ef25be
Add sorting to resource claims and reports lists
2019-11-23 10:34:55 +01:00
Wolfgang Huß
70d8830e4c
Add comment to Cypher of report mutation
2019-11-23 09:32:29 +01:00
Wolfgang Huß
8cc05ab910
More complex report and review seeding
2019-11-23 08:58:43 +01:00
Wolfgang Huß
0b7a0496a2
Merge branch 'master' of github.com:Human-Connection/Human-Connection into 1710-list-and-protocol-moderation
...
# Conflicts:
# webapp/locales/de.json
2019-11-23 08:07:53 +01:00
Wolfgang Huß
b2db3118f2
Add dubios vanished code again
2019-11-22 19:32:13 +01:00
Wolfgang Huß
99af6cbf8a
Implement displaying multiple claims in the frontend
2019-11-22 18:40:51 +01:00
Wolfgang Huß
0de778e743
Correct mutations report and review to overtake the resource disabled
2019-11-22 16:14:45 +01:00
Wolfgang Huß
7de34d3d55
Fix tests by first report before review
2019-11-22 15:56:21 +01:00
Wolfgang Huß
59f53a07c6
Clean up
2019-11-22 15:24:50 +01:00
roschaefer
ae360f2201
fix #2329 : Normalize email on login in the backend
2019-11-22 15:24:27 +01:00
Wolfgang Huß
9a7774ce86
Implement review validation with validateReview
2019-11-22 15:19:49 +01:00
Wolfgang Huß
ec8910d6eb
Rename decide mutation to review
2019-11-22 15:12:00 +01:00
Wolfgang Huß
02bdc5ea5d
Rename node CaseFolder to Claim and relation FLAGGED to BELONGS_TO
2019-11-22 12:18:43 +01:00
Wolfgang Huß
a7aaee98c1
No new review if a reviewer changes their opinion
2019-11-22 10:39:55 +01:00
Wolfgang Huß
a5689e2f67
Get implementing 'reviewedByModerator' further
2019-11-22 08:44:40 +01:00
Wolfgang Huß
c0fb53c2b5
Get frontend running by start implementing 'reviewedByModerator' right
2019-11-21 13:35:12 +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
Wolfgang Huß
6d9e6e7f0a
Get frontend runnig with new CaseFolder structure first try
2019-11-20 16:22:36 +01:00
Wolfgang Huß
0fdd46b656
Implement CaseFolder property rule
2019-11-20 15:30:37 +01:00
Wolfgang Huß
cf02ca4506
Refactor decide mutation to new CaseFolder structure
2019-11-20 15:17:37 +01:00
Wolfgang Huß
7c3ec289f7
Start refactor the decide mutation to CaseFolder structure
2019-11-20 08:33:47 +01:00
Robert Schäfer
9a985d464c
Merge pull request #2257 from Human-Connection/bump_metascraper_modules
...
build(deps): bump metascraper modules
2019-11-18 22:00:26 +01:00
mattwr18
19d2e2cd41
Merge pull request #2243 from Human-Connection/refactor_neo4j-graphql-js
...
Explicitly define our schema, improve performance
2019-11-18 21:46:56 +01:00
Robert Schäfer
735a31ed00
Merge pull request #2101 from Human-Connection/1747-show-shouts
...
1747 show shouts
2019-11-18 17:00:43 +01:00
Wolfgang Huß
3b4de22855
Refactor reports mutation to CaseFolder structure
2019-11-18 11:25:47 +01:00
Wolfgang Huß
3daba417de
Create CaseFolder GQL definition
2019-11-18 11:23:53 +01:00
Wolfgang Huß
240bd84b45
Refactor report mutation
2019-11-18 10:36:49 +01:00
Wolfgang Huß
4a732beb0a
Merge branch 'master' of github.com:Human-Connection/Human-Connection into 1710-list-and-protocol-moderation
2019-11-18 07:59:44 +01:00
Wolfgang Huß
b569f46dad
Refactor report mutation beginn
2019-11-18 07:57:52 +01:00
roschaefer
5d570c24a7
Fix tests
2019-11-16 20:21:27 +01:00
roschaefer
978347ba7b
Tell github-linguists to ignore snapshots
2019-11-16 20:09:05 +01:00
roschaefer
84d3323856
refactor: remove redundant port configuration
...
If you set GRAPQHL_URI the port is already in there
2019-11-15 11:45:52 +01:00
roschaefer
fe48c0f4f2
Revert the taggedCount and postCount
...
We need the order input types for our admin features.
This is a potential DOS vulnerability: Ordering the tags by taggedCount
might lead to very expensive cypher statements.
2019-11-15 11:04:07 +01:00
roschaefer
0e3ace36fb
Remove global filters for disabled/deleted
...
I think there is no use case for it and it looks to me like sth. you
shouldn't be able to query for.
2019-11-15 11:04:07 +01:00
roschaefer
034a353367
Hard-code graphql schema
...
Apparently, `neo4j-graphql-js` *replaces* the schema partly. When we use
join models like `EMOTED`, `neo4j-graphql-js` puts in a join model with
the two names of the connected types.
2019-11-15 11:04:07 +01:00
roschaefer
864f9db753
Remove potentially unused code
2019-11-15 11:04:07 +01:00
Wolfgang Huß
d2442b73c9
Refactor report mutation
2019-11-15 10:49:55 +01:00
roschaefer
c6e4c38de8
build(deps): remove deprecated debug flags
...
I deprecated the debug flags myself here:
https://github.com/neo4j-graphql/neo4j-graphql-js/pull/288
You can now debug the queries run by `neo4j-graphql-js` by starting
the backend like this:
```bash
DEBUG=neo4j-graphql-js yarn run backend
```
2019-11-14 14:22:20 +01:00