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
2019-06-11 15:47:10 -03:00
2019-08-28 12:57:32 +02:00
2019-08-28 12:57:32 +02:00
2019-08-28 12:57:32 +02:00
2019-07-14 01:45:38 +02:00
2019-04-12 11:26:13 +02:00
2019-06-21 16:22:54 +02:00
2019-08-25 13:03:46 +02:00
2019-08-08 20:18:32 +02:00
2019-04-12 11:32:43 +02:00
2019-08-08 10:51:06 +02:00

Human-Connection

Build Status Codecov Coverage MIT License Discord Channel

Human Connection is a nonprofit social, action and knowledge network that connects information to action and promotes positive local and global change in all areas of life.

  • Social: Interact with other people not just by commenting their posts, but by providing Pro & Contra arguments, give a Versus or ask them by integrated Chat or Let's Talk
  • Knowledge: Read articles about interesting topics and find related posts in the More Info tab or by Filtering based on Categories and Tagging or by using the Fulltext Search.
  • Action: Don't just read about how to make the world a better place, but come into Action by following provided suggestions on the Action tab provided by other people or Organisations.

Human-Connection

Technology Stack

Live demo

Try out our deployed staging environment.

Logins:

email password role
user@example.org 1234 user
moderator@example.org 1234 moderator
admin@example.org 1234 admin

Documentation

Learn how to set up a local development environment in our Docs 🔎

Translations

You can help translating the interface by joining us on lokalise.co. Thank you lokalise for providing us with a premium account 🙌.

Developer Chat

Join our friendly open-source community on Discord 😻 Just introduce yourself at #introduce-yourself and mention @@Mentor to get you onboard :neckbeard: Check out the contribution guideline, too!

Attributions

Locale Icons made by Freepik from www.flaticon.com is licensed by CC 3.0 BY

License

See the LICENSE file for license rights and limitations (MIT).

Languages
TypeScript 36%
JavaScript 20.4%
Vue 19.2%
HTML 18.3%
SCSS 4.6%
Other 1.4%