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
62080a0afb
Merge pull request #2295 from Human-Connection/2294_fix_email_filter
...
If an admin searches for a user by email, don't crash if no user can be found
2019-11-27 14:46:16 +01:00
mattwr18
2332576e17
Add imageAspectRatio to seeded Post
2019-11-27 12:08:21 +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
mattwr18
d1606c6b1f
Add shoutedBy_some to _PostFilter
...
- we have a feature that allows users to publicly show their shouts with
their consent. we need this for the filter to work.
2019-11-25 12:35:32 +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
roschaefer
c010d4b0ae
refactor: remove obsolete code
...
Since we decided to open Human Connection for public registration, we
don't need to create artificial shortage of signups. The original
intention here was too:
1. Grow the network slowly and under control
2. Create an incentive for users to invite their friends
Point 2 is now obsolete, everyone can signup herself. Point 1 is based
on the (seemingly) wrong assumption that there will be a "run" on the
network if we open it for public registration. Our growth was fairly
stable so far.
2019-11-21 19:19:58 +01:00
roschaefer
2e3908c009
refactor: close session in isAuthor permission
2019-11-21 19:13:46 +01:00
Wolfgang Huß
c0fb53c2b5
Get frontend running by start implementing 'reviewedByModerator' right
2019-11-21 13:35:12 +01:00
mattwr18
b9d28e5a69
Set up frontend/backend to add imageAspectRatio
...
- on create and update
2019-11-21 11:32:42 +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
mattwr18
95be6eaee6
Initial commit to add placeholder image for Post
2019-11-20 16:52:20 +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
roschaefer
b0d20ede71
Fix #2294
...
Ideally we would not have this inconsistent edge case that we filter
through the user type. Much better would be a graphql query like:
```graphql
{
User(filter: { primary_email: { email: "something@example.org" } }) {
id
name
slug
}
}
```
2019-11-19 21:24:58 +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