124 Commits

Author SHA1 Message Date
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
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
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
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
Matt Rider
6d5ffc0464 Rename labels, decrease replicas to 1 2019-07-10 10:50:39 +02:00
Matt Rider
c79ec1f6fe Add nginx maintenance and test locally 2019-07-10 10:50:39 +02:00
Matt Rider
2a76e9b18a Add service yaml for nginx(maintenance) service 2019-07-10 10:50:39 +02:00
Robert Schäfer
66740b0f55 Neo4j uses a different name for its env vars 2019-07-05 15:57:38 +02:00
44205e7268
delete follows correctly 2019-07-01 16:18:49 +02:00
760f899379
import emotions 2019-07-01 16:18:14 +02:00
Robert Schäfer
eb93127add
Merge pull request #893 from Human-Connection/deploy_development_mailserver
Deploy development mailserver
2019-06-24 21:25:51 +02:00
Robert Schäfer
91e7e2adaf The protocol is not supposed to go into SMTP_HOST 2019-06-24 14:49:45 +02:00
Robert Schäfer
6ce96d906b Fix configmap template 2019-06-24 13:31:13 +02:00
Robert Schäfer
ce0e3cb520 Write documentation for mailserver deployment 2019-06-24 13:24:56 +02:00
Robert Schäfer
dd1d77f2bb Add env to configmap 2019-06-24 13:24:56 +02:00
Robert Schäfer
a2d99c9831 Write kubernetes deployment for dummy mailserver 2019-06-24 13:24:56 +02:00
5653242c32
Merge branch 'master' into 2019/kw25/improve_import_accuracy 2019-06-24 12:16:05 +02:00
c14a4f3134
fixed deleted flag import 2019-06-24 12:06:09 +02:00
Robert Schäfer
181b4b48e6
Merge pull request #829 from Human-Connection/2019/kw24/fix_imported_img_urls
🍰 2019/kw24/fix_imported_img_urls
2019-06-21 23:41:32 +02:00
Robert Schäfer
6e1d334671 Add env to deployment 2019-06-21 14:06:20 +02:00
9cbb736d70
cleanup import todo 2019-06-19 13:54:20 +02:00
aa54433afb
improved accuracy of import to reflect different types of contributions & follows. Cleaned neo4j import folder structure 2019-06-19 13:35:21 +02:00
98dbf801ab
Merge branch 'master' into 2019/kw24/fix_imported_img_urls
# Conflicts:
#	backend/src/middleware/fixImageUrlsMiddleware.js
#	backend/src/middleware/fixImageUrlsMiddleware.spec.js
2019-06-17 13:24:29 +02:00