Wolfgang Huß
f380915b2c
Refactor GQL and tests, first approach
2020-02-19 08:09:14 +01:00
mattwr18
0a50a02f88
Follow @roschaefer suggestion/remove guard clauses
2019-12-10 18:09:32 +01:00
mattwr18
12236c9324
Convert to transaction function/refactor
...
- update incorrect variables
2019-12-10 18:09:32 +01:00
roschaefer
b2ccc1b61e
Better debugging
2019-12-10 18:09:32 +01:00
roschaefer
5271337b49
Reduce the number of database calls even more
2019-12-09 18:49:27 +01:00
mattwr18
79c6bd5c20
Paginate moderations page without losing filtering
...
Co-authored-by: Tirokk <wolle.huss@pjannto.com>
2019-12-09 16:37:04 +01:00
roschaefer
fdca5b008b
Return empty array instead null for "not reviewed"
...
@mattwr18 why did you add the null check in th resolver?
2019-12-06 02:47:14 +01:00
roschaefer
2f2bf571ed
Eliminate database calls for filed and reviewed
...
I learned map projections and list comprehensions in cypher tonight!
🎉 So much wow!
2019-12-06 01:57:49 +01:00
mattwr18
c05065f684
Refactor backend
...
- update script
- use readTxResult for validateReview
- favor more verbose variables
- do not set review.closed as we close the report and the rule at the
moment is set to 'latestReviewUpdatedAtRules' rule, so it's clear the
last review must have been the one that closed the report
2019-12-02 13:38:35 +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
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
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ß
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ß
59f53a07c6
Clean up
2019-11-22 15:24:50 +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ß
c0fb53c2b5
Get frontend running by start implementing 'reviewedByModerator' right
2019-11-21 13:35:12 +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ß
3b4de22855
Refactor reports mutation to CaseFolder structure
2019-11-18 11:25:47 +01:00
Wolfgang Huß
240bd84b45
Refactor report mutation
2019-11-18 10:36:49 +01:00
Wolfgang Huß
b569f46dad
Refactor report mutation beginn
2019-11-18 07:57:52 +01:00
Wolfgang Huß
d2442b73c9
Refactor report mutation
2019-11-15 10:49:55 +01:00
Wolfgang Huß
f4a62b03dc
Clarify 'decide' resolver, rename to 'latest' property
2019-11-08 09:12:49 +01:00
Wolfgang Huß
2a23bbf101
Refactor frontend and 'reports' query again
2019-11-07 15:54:26 +01:00
Wolfgang Huß
72290e1c8a
Add ascendant ordering as enum to ReportOrdering
2019-10-17 10:16:27 +02:00
Wolfgang Huß
30f268525f
Add Cypher statement for ordering
...
- minor db manipulation text change
2019-10-16 13:32:45 +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ß
6365d3df54
Implement enum for report reason categories after Matts suggestion
2019-10-14 15:53:36 +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ß
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
Robert Schäfer
e1bb6ed74e
Fix lint
2019-08-02 01:45:36 +02:00
senderfm
6c7ee1ef42
das einmalige melden eines User, Beitrags oder Kommentars
...
ist jetzt möglich
2019-06-25 17:51:14 +02:00
f78c54a3e8
refactored backend structure
2019-05-31 19:31:39 +02:00