1268 Commits

Author SHA1 Message Date
d6cb9b51c3
feat(backend): lint rules (#8339)
* eslint import

* eslint comments

* eslint security

* eslint import - rules

* eslint n

* eslint promise

* eslint no-catch-all

* eslint jest

* missing ignore

* disable import/unambiguous as conflicting
2025-04-07 10:53:44 +00:00
5462a5b4c1
fix(backend): typo in groups resolver (#8318)
* fix typo

* fixed all related typos in unittests and found another in groups

---------

Co-authored-by: mahula <lenzmath@posteo.de>
2025-04-03 22:01:10 +00:00
Moriz Wahl
130da7509b
fix(backend): users observing post count (#8295)
* do not count users that are deleted or disbled
2025-04-03 16:03:53 +00:00
01027e42cc
feat(webapp): track online status (#8312)
* client

* backend

* tests

* also save awaySince timestamp

* remove console.log
2025-04-03 17:19:53 +02:00
Moriz Wahl
316c12bd35
provide information of the observing status of the post after creating a comment (#8310) 2025-03-31 20:41:39 +02:00
Moriz Wahl
538f409086
feat(backend): observe posts (#8292)
* After creating the post, the author of it automatically observes it to get notifications when there are interactions

* a user that comments a post, automatically observes that post to get notifications when there are more interactions on that post

* mutation that switches the state of the observation of a post on and off
2025-03-26 22:16:06 +01:00
Robert Schäfer
628b57aa29
feat(other): major improvement of deployment (#7925)
* feat(other): major improvement of deployment

Motivation
----------

Kubernetes:
* backend becomes a statefulset (exclusive volume mount)
  See: https://spacelift.io/blog/statefulset-vs-deployment
* implement neo4j backup with job

Docker:
* consistent targets across all dockerfiles
* remove redundant labels
* remove unnecessary build args
* remove obsolete networks
* remove development dependencies for production

Rebranding:
* add image tags for local tagging and pulling
* use Github's docker build workflows
* use Github container registry
* ONBUILD to simplify caller Dockerfiles
* docker compose for branding

Tooling:
* same node --version as in dockerfile

Docs:
* missing step in README.md

* refactor: remove submodules

It's better to keep them all in a separate repository

* improve kubernetes chart

* better image tag defaults
* split neo4j into its own chart (for re-use)
* use application defaults where possible

* optional resources for all pods

* remove obsolete key/value pair from secrets

* remove obsolete build argsand

and add labels for neo4j enterprise

* env vars for webapp

* allow to define redirect domains

Define a list of Domains that redirect to the domain of the project. The
idea is to provide the ability to redirect eg. www.domain.tld to
domain.tld

* remove maintenance part regarding database

* move backup job outside template folder

* name the ingress

* updated ingress

* handle empty case of middlewares

* try to default the ingress

* use quote

* restore todo-next-update

* fix docu check

* fix naming

* try using prod:migrate

* try using override config

* copy src folder

* try using base as image instead of build

* fix test build

* force build

* comment for the problem

* fix webapp tests (potentially)

---------

Co-authored-by: Ulf Gebhardt <ulf.gebhardt@webcraft-media.de>
2025-02-28 18:22:23 +01:00
mahula
42e039f338 fix geodata in mapbox-related resolver test 2024-10-20 13:52:31 +02:00
Wolfgang Huß
0691b8eb79 Fix backend test which uses 'newlyCreatedNodesWithLocales' in file 'backend/src/schema/resolvers/users/location.spec.ts' 2024-08-29 13:48:21 +02:00
Wolfgang Huß
27777eedaa Fix backend tests 'valid event input with location name' 2024-08-29 13:42:40 +02:00
mahula
936ccf9877 due to changes in 9.0.0 use named import 2024-03-02 13:24:00 +01:00
Wolfgang Huß
6a87ed5cb4 Fix backend tests to new default group description length without HTML 2024-01-04 14:49:55 +01:00
Moriz Wahl
ed5149c41e raise backend unit test coverage, no promise all in notification spec 2023-11-02 19:16:41 +01:00
Moriz Wahl
fdf38af4e9 unit tests for ISO format of event dates 2023-10-26 16:49:15 +02:00
Moriz Wahl
44d6f31574 timezone offset in migration 1 hour, check event date string for ISO format 2023-10-26 16:40:41 +02:00
Moriz Wahl
eedc93f7c5 fix cypher statement in unit test 2023-10-02 17:01:42 +02:00
Moriz Wahl
b1b26862a6 fix(backend): postType as array in searchPosts 2023-09-26 15:02:47 +02:00
mahula
60d971233b add back language detector scraper to scraper file 2023-09-07 20:46:47 +02:00
1ab4009536
fix metascraper crash, remove metascraper-lang-detector 2023-09-05 23:10:25 +02:00
fbd2b08737
Merge branch 'master' into fix-security-subscriptions 2023-07-20 17:11:20 +02:00
604e1d8465
subscription roomCountUpdated security fix 2023-07-20 13:44:23 +02:00
f7c381efd8
subscription chatMessageAdded security fix 2023-07-20 13:44:04 +02:00
1b8b356432
notification subscription 2023-07-20 13:41:59 +02:00
e2c23ad4a2
more lint fixes 2023-07-20 13:10:32 +02:00
93aaea4aa1
only take 2000 chat message characters 2023-07-19 11:51:41 +02:00
4a474a6a4a
convert indexId to string (neo4j number problem) 2023-07-18 16:35:18 +02:00
Moriz Wahl
c0fe7028e5 fix unit test 2023-07-18 13:23:03 +02:00
Moriz Wahl
eed89f8c4b add chat middleware to add new message subscription 2023-07-18 12:46:19 +02:00
ae2d6c7ad5
fix recipient selection 2023-07-18 10:52:18 +02:00
d7aba44fbe
removed console log and fixed reloading of messages 2023-07-18 10:48:42 +02:00
98cad5b568
changed order of room to lastMessageAt 2023-07-18 10:47:56 +02:00
2e7adb4eb3
Merge branch 'master' into chat-notifications2 2023-07-17 22:29:03 +02:00
Moriz Wahl
dfd7107714 remove unused ubscription test, fix subscription params in test 2023-07-17 20:37:52 +02:00
Moriz Wahl
27fe3068e0 remove emacs fragment 2023-07-17 19:30:44 +02:00
Moriz Wahl
2eb94d91e1 no subscription on message query 2023-07-17 18:54:17 +02:00
Moriz Wahl
829ea5ee0c Merge branch 'master' into chat-notifications 2023-07-17 18:37:28 +02:00
Moriz Wahl
fb1d540eb2 subscription send on message query 2023-07-17 18:35:10 +02:00
Moriz Wahl
887f2c9362 more subscription tests for create message 2023-07-17 17:42:45 +02:00
Moriz Wahl
ea28f4afeb recipient user of message to send subscription, test subscription 2023-07-17 17:33:51 +02:00
Moriz Wahl
884ee1713c unread room count query as function 2023-07-17 16:36:39 +02:00
45db186dfd
more merge errors 2023-07-17 16:00:08 +02:00
27600f0e79
fix merge error 2023-07-17 15:59:32 +02:00
Moriz Wahl
edeb22e70c room avatar is working (returns other users avatar image if present) 2023-07-17 15:58:46 +02:00
94bb798d72
Merge branch 'master' into chat-notifications 2023-07-17 15:51:52 +02:00
b8f0e1ef59
"fix" room avatar query 2023-07-17 15:23:34 +02:00
ced4996f47
implement chatMessageAdded subscription 2023-07-17 14:55:57 +02:00
Moriz Wahl
c05d39f4e6
Merge branch 'master' into new-room-properties 2023-07-17 14:11:33 +02:00
mahula
58e25e6361
Merge branch 'master' into chat-order-by-indexid 2023-07-17 13:36:52 +02:00
e09c91235e
properly propagte user into unreadRoomCount subscription 2023-07-17 13:11:33 +02:00
Moriz Wahl
1ac3553200
Merge branch 'master' into new-room-properties 2023-07-17 13:06:35 +02:00