143 Commits

Author SHA1 Message Date
roschaefer
af3bdaef52 Don't create accounts for unverified users 2019-09-17 19:16:56 +02:00
roschaefer
5555e64f0f Fix #1555 2019-09-13 13:52:54 +02:00
roschaefer
5804b1352c Remove old docker files 2019-09-11 08:43:26 +02:00
roschaefer
cce4ce07df Increase default split size a little 2019-09-05 12:52:20 +02:00
roschaefer
ab96e30bf4 Always pull down the maintenance-worker image 2019-09-05 12:50:47 +02:00
mattwr18
60659626c8 Merge branch 'master' of github.com:Human-Connection/Human-Connection into update-legacy-migration-config 2019-09-05 08:11:01 +02:00
roschaefer
66ed78e19b Remove a lot of unused code, reduce graphql schema 2019-09-05 03:20:32 +02:00
mattwr18
17941678b1 Update export syntax, update maintenance worker/neo4j config
- I was getting an error locally  Failed: error parsing query as Extended JSON: invalid JSON input
- updating the syntax to wrap the json in single quotes, and key/values
in double quotes fixed the issue
- update memory limits
2019-09-04 16:53:13 +02:00
mattwr18
32388549a0 Revert use of variables in cql file
- breaks the import functionality
2019-09-04 16:24:48 +02:00
Wolfgang Huß
0df086e07f Rename variables 2019-09-04 15:38:28 +02:00
mattwr18
9bb0884f89 Follow @alina-beck's PR suggestions
- save regex to descriptive variables
2019-09-03 22:10:02 +02:00
Matt Rider
62e7aee4a3 Revert changes from commit #ca88d1a
- we need to remove the whitespaces first, then check if there are still illegitimate characters in the hashtag before removing them
- this is to maintain the maximum number of hashtags imported from the legacy database as possible
2019-09-02 15:07:22 +02:00
Matt Rider
d1309d2b8f Merge branch 'master' of github.com:Human-Connection/Human-Connection into 1395-hashtags-imported-with-not-allowed-chars 2019-09-02 12:51:11 +02:00
roschaefer
4ea47eafab Move Neo4j configuration in configmap
I think it's beneficial to have these settings in a central location.
That way, we're not running into the danger of overwriting the
`nitro-deployment` by accident with a `kubectl apply -f ...`.
2019-08-30 22:11:12 +02:00
Matt Rider
ca88d1a369 Remove redundant code, simplify import
- follow @Tirokk's suggestion
- good catch!!
2019-08-30 15:21:29 +02:00
mattwr18
f275799856
Merge pull request #1351 from Human-Connection/1333-fix_checks_for_deleted_and_disabled
Fix database import, pagination and counters on user profile page
2019-08-30 13:51:41 +02:00
Matt Rider
ecb32f2c48 Add backslashes to regex contributions.cql 2019-08-29 18:46:46 +02:00
Wolfgang Huß
0bc4c558ae Refactore the import and hashtags to all unicode characters
Co-Authored-By: mattwr18 <mattwr18@gmail.com>
2019-08-29 17:02:02 +02:00
Wolfgang Huß
fe2d21c5c2 Merge branch 'master' of https://github.com/Human-Connection/Human-Connection into 1395-hashtags-imported-with-not-allowed-chars 2019-08-29 09:29:36 +02:00
roschaefer
e4d57f80aa Fix #1333
Ok, so here are multiple issues:
1. In cypher, `NOT NULL` will return `NULL` not `FALSE`. If we want
`FALSE` to be set in the database import, we should use `COAELESCE`
to find the first not-null value.
See:
https://neo4j.com/docs/cypher-manual/current/syntax/working-with-null/
https://markhneedham.com/blog/2017/02/22/neo4j-null-values-even-work/

2. I removed the `disabled` and `deleted` checks on the commented
counter. With `neo4j-graphql-js` it is not possible to filter on the
join models (at least not without a lot of complexity) for disabled or
deleted items. Let's live with the fact that the list of commented posts
will include those posts, where the user has deleted his comment or where
the user's comment was disabled. It's being displayed as "not available"
so I think this is OK for now.

3. De-couple the pagination counters from the "commented", "shouted"
etc. counters. It might be that the list of posts is different for
different users. E.g. if the user has blocked you, the "posts" list
will be empty. The "shouted" or "commented" list will not have the
posts of the author. If you are a moderator, the list will include
disabled posts. So the counters are not in sync with the actual list
coming from the backend. Therefore I implemented "fetch and check if
resultSet < pageSize" instead of a global counter.
2019-08-28 12:57:32 +02:00
Matt Rider
907233cbc9 Increase nginx client max body size, split size legacy migration
- allows the client to send files at least the size we agreed in the vue-dropzone
- we don't need such a small split size as we don't run it on the remote server
2019-08-27 18:03:50 +02:00
Matt Rider
20c625a827 Update broken cypher statement
- I think this does what you want @Tirokk, but let me know if I missed something
- this removes all white spaces in the hashtag, then removes any hashtags that have special characters, or that start with a number, but do not have any letters after
- it does not check that the size is greater or equal to 1 because the regex already removes anything that does not have at least one character
2019-08-27 01:35:28 +02:00
Wolfgang Huß
25bac9a84c Correct the import of tags from the Alpha
Remove the tags which can not be corrected.

Co-Authored-By: Ulf Gebhardt <ulf.gebhardt@webcraft-media.de>
2019-08-26 18:24:21 +02:00
roschaefer
f206d40e86 Add memory limits to neo4j deployment
I cannot increase the memory above "2G" without getting an error that no
node has capacity for it. So I believe we have to change the kubernetes
cluster if we want to assign more memory to neo4j.

The other settings were suggested to me by neo4j-admin memrec:
https://neo4j.com/docs/operations-manual/current/tools/neo4j-admin-memrec/
2019-08-26 13:03:48 +02:00
Robert Schäfer
89b377fee1
Merge pull request #1281 from Human-Connection/272-add_error_reporting
272 add error reporting
2019-08-20 19:07:49 +02:00
roschaefer
175b187f69 Update the COMMIT env var on every deployment
This should do the trick: First update the configmap, then trigger a
rollout. The new pods should have the update environment variables.
2019-08-20 11:28:41 +02:00
roschaefer
df2949a6ca Configure dbms.security.procedures
Bug:
> apoc.cluster.graph is unavailable because it is sandboxed and has dependencies
> outside of the sandbox. Sandboxing is controlled by the
> dbms.security.procedures.unrestricted setting

See: https://stackoverflow.com/a/48773575
2019-08-19 22:08:53 +02:00
roschaefer
fcb944b7c4 Add documentation to setup error reporting 2019-08-19 21:21:51 +02:00
mattwr18
90e5579cab
Merge pull request #1278 from Human-Connection/fix_hashtag_db_import
Fix hashtag db import
2019-08-16 14:37:09 +02:00
roschaefer
bb4b3196a7 Fix various issues in legacy db import
Most important: Remove `#` symbol from Tags and snakeCase them.
2019-08-16 00:29:42 +02:00
roschaefer
d3b256e99e Fix user mention menu on production data
Apparently some of our users in production have no slug, this will
assign an (hopefully unique) random slug to them.
2019-08-15 21:07:23 +02:00
Matt Rider
ee93efd6d9 Localise categories 2019-08-14 13:57:39 +02:00
Robert Schäfer
ff7143dcb1 Remove obsolete "MOCKS"
It's unused code after all and I think we can improve the code base by
removing confusing code.
2019-08-08 20:18:32 +02:00
Wolfgang Huß
3a153c47c2
Merge pull request #956 from Human-Connection/906-maintenace-mode
Maintenance service to support maintenance mode
2019-07-29 10:50:52 +02:00
Wolfgang Huß
fbe304685a
Merge pull request #1132 from Human-Connection/gitignore-ssh-directory
Gitignore ssh directory
2019-07-29 10:06:16 +02:00
Matt Rider
6ba550f198 Make page mobile responsive, use styleguide font 2019-07-29 09:13:38 +02:00
Matt Rider
733d3333c9 Merge branch 'master' of github.com:Human-Connection/Human-Connection into 906-maintenace-mode 2019-07-29 08:52:10 +02:00
Matt Rider
08504ad2ff Gitignore ssh directory 2019-07-29 08:36:16 +02:00
Robert Schäfer
9fcc5202d1 Give more space to neo4j-data 2019-07-25 15:34:43 +02:00
Robert Schäfer
99bfd56ea7 Merge remote-tracking branch 'origin/master' into refactor_email_address 2019-07-16 20:20:21 +02:00
Robert Schäfer
db84afa20b Move secrets into secrets kubernetes template 2019-07-15 23:15:20 +02:00
Robert Schäfer
904142cf6e Create a separate node for email in data import 2019-07-15 18:35:38 +02:00
Robert Schäfer
43a2c502c9 Fix regression of data import 2019-07-14 01:43:44 +02:00
mattwr18
4c91d8fbc5
Merge pull request #1016 from Human-Connection/277_reward_badges
Refactor reward/unreward Badges in backend
2019-07-13 10:08:52 -03:00
Robert Schäfer
99740e6ad6 Follow @Tirokk's suggestion and rename key=>id 2019-07-13 14:27:19 +02:00
Matt Rider
3d487757bc Improve maintenance.html
- add image, basic styling
2019-07-12 07:31:25 -03:00
Matt Rider
7a3c432a0b Merge branch 'master' of github.com:Human-Connection/Human-Connection into 906-maintenace-mode 2019-07-11 11:54:13 -03:00
Robert Schäfer
e2eba389cc
Merge pull request #944 from Human-Connection/2019/kw27/data_import_emotions
🍰 2019/kw27/data_import_emotions
2019-07-11 12:27:48 +02:00
Robert Schäfer
2e9c4ad40a Add documentation how to enable maintenance mode 2019-07-10 10:51:40 +02:00
Robert Schäfer
97aaff92a5 Remove unnecessary config 2019-07-10 10:50:39 +02:00