50 Commits

Author SHA1 Message Date
mattwr18
1f06a862e7
Merge pull request #2262 from Human-Connection/1463-search-for-users
🍰 Search For Users
2020-01-10 13:59:44 +01:00
dependabot-preview[bot]
06277c89b8
build(deps): bump neo4j in /neo4j
Bumps neo4j from 3.5.13-enterprise to 3.5.14-enterprise.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-24 04:23:23 +00:00
mattwr18
3ef04f8391 Merge branch 'master' of github.com:Human-Connection/Human-Connection into 1463-search-for-users 2019-12-19 17:16:48 +01:00
mattwr18
e002ed0b49 Add back layout changes/update db_manipulation
- we had removed these changes till we could deploy them by themselves
and run the db_manipulation

Co-authored-by: Alina Beck <alina.beck@mail.com>
2019-12-18 15:39:42 +01:00
Moriz Wahl
77cdc34bfd backend still not working 2019-12-10 10:36:08 +01:00
mattwr18
4d0df181b6
Merge pull request #2432 from Human-Connection/remove-query-for-disable-property-for-reports
Remove disable from reports.disable Query
2019-12-05 21:14:55 +01:00
mattwr18
b82e6f4d81 Move db script to neo4j/db_manipulation directory 2019-12-05 19:57:53 +01:00
mattwr18
517963174b We are not setting disable on Report node
- we are adding the report rule which says that if a resource was
disabled by a report with this rule, then the latest review was the one
that disabled it.
- fix db script/ add new directory for keeping record of db scripts
2019-12-05 19:52:05 +01:00
mattwr18
42540eb909 Remove dead code, code creep 2019-12-04 19:55:48 +01:00
mattwr18
085b59bf4d Merge branch 'master' of github.com:Human-Connection/Human-Connection into 1710-list-and-protocol-moderation 2019-12-04 13:23:06 +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
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
dependabot-preview[bot]
2885661e60
build(deps): bump neo4j in /neo4j
Bumps neo4j from 3.5.12-enterprise to 3.5.13-enterprise.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-29 04:22:40 +00:00
mattwr18
2f249a73c5 Rename REPORTED Claim to FILED Report 2019-11-26 15:35:48 +01:00
Wolfgang Huß
1574a6cdb6 Check database manipulation script again 2019-11-23 12:32:01 +01:00
Wolfgang Huß
d5afb6c790 Add old script again as template 2019-11-22 19:31:19 +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ß
0fdd46b656 Implement CaseFolder property rule 2019-11-20 15:30:37 +01:00
Wolfgang Huß
9d4c1b8753 Renamed Case to CaseFolder in database restructure script 2019-11-18 10:35:52 +01:00
Wolfgang Huß
733f5c4d44 Rename db manipulation script file 2019-11-15 18:25:10 +01:00
Wolfgang Huß
5c4eb36b12 Get db manipulation script running 2019-11-15 17:18:12 +01:00
Wolfgang Huß
d2442b73c9 Refactor report mutation 2019-11-15 10:49:55 +01:00
Wolfgang Huß
bcd60c364d Refactor script for db change 2019-11-14 18:21:26 +01:00
Wolfgang Huß
f2ab84a5e9 Change database script 2019-11-08 09:56:06 +01:00
Wolfgang Huß
2a23bbf101 Refactor frontend and 'reports' query again 2019-11-07 15:54:26 +01:00
Wolfgang Huß
f826039777 Get the backend tests with decide mutation to work #1 2019-11-04 18:33:55 +01:00
Wolfgang Huß
47d5cc89dd Implement last property on DECIDED relation 2019-10-30 15:48:46 +01:00
Wolfgang Huß
7b3224327e Prepare backend for next implementation step 2019-10-30 13:51:00 +01:00
Wolfgang Huß
98029a6d46 Script to change the database structure from DISABLED to DECIDED relation
- Apply default properties to the relation.
2019-10-25 16:47:42 +02:00
dependabot-preview[bot]
484917d922
build(deps): bump neo4j in /neo4j
Bumps neo4j from 3.5.11-enterprise to 3.5.12-enterprise.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-21 04:23:31 +00: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
mattwr18
b1573cc25a Update neo4j to Enterprise edition
- accept license agreement
2019-10-03 16:11:29 +02:00
dependabot-preview[bot]
8fe1787190
Bump neo4j from 3.5.9 to 3.5.11 in /neo4j
Bumps neo4j from 3.5.9 to 3.5.11.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-27 04:22:58 +00:00
dependabot-preview[bot]
0568f049bd
Bump neo4j from 3.5.8 to 3.5.9 in /neo4j
Bumps neo4j from 3.5.8 to 3.5.9.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-06 04:23:18 +00:00
roschaefer
66ed78e19b Remove a lot of unused code, reduce graphql schema 2019-09-05 03:20:32 +02:00
roschaefer
67f5dd53e2 Remove the custom entrypoint from the docker image
.. add documentation how to setup indices manually.
2019-08-25 13:03:46 +02:00
roschaefer
51b734275a The name of the hashtag is now it's ID
`name` was just a redundant attribute
2019-08-16 01:49:29 +02:00
Robert Schäfer
423f7de40d Linux distro of neo4j image suddenly debian based
So replace `apk` with `apt-get`...
2019-08-01 23:10:01 +02:00
dependabot-preview[bot]
d4cce87e91
Bump neo4j from 3.5.5 to 3.5.8 in /neo4j
Bumps neo4j from 3.5.5 to 3.5.8.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-26 04:22:07 +00:00
Robert Schäfer
cec3eddcef Fix more test cases 2019-07-15 18:35:38 +02:00
Alina Beck
4725f41a0d update neo4j readme 2019-07-08 18:26:22 +02:00
Robert Schäfer
900b05c280 Automatically push neo4j docker image to dockerhub 2019-06-05 00:31:54 +02:00
Robert Schäfer
d2130d64f4 Write documentation for Neo4J
@Tirokk FYI
2019-06-05 00:31:54 +02:00
Robert Schäfer
82ce576ba4 Setup db indexes constraints on neo4j startup
Credits go to @javamonkey79
See here: https://github.com/neo4j/docker-neo4j/issues/166
2019-06-05 00:11:38 +02:00
Robert Schäfer
bcc2c4dbbb Configure scripts and docker-compose.yml
After endless try/error I found the way to share volumes between
multiple docker-compose.ymls: You have to place those files in the same
folder. Also the import scripts must be adapted.
2019-05-07 21:48:09 +02:00
Robert Schäfer
13906c29aa Setup unique constraints on ids
This will
* speed up data import from production
* make sure we never have the same ids on certain labels
2019-05-07 19:23:42 +02:00
dependabot[bot]
2fa0635658
Bump neo4j from 3.5.4 to 3.5.5 in /neo4j
Bumps neo4j from 3.5.4 to 3.5.5.

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-30 11:28:54 +00:00
Robert Schäfer
c7a08b792e Move maintenance & neo4j in dedicated folders 2019-04-23 23:12:16 +02:00