* refactor(backend): types for global config
I saw merge conflicts in these files for #8463 so let's get some parts of this PR into `master` already.
I believe this fixes a small bug. They guard clause didn't ensure that all of REDIS_ configurations were set.
* remove old email mechanism
* refactor(backend: react to @ulfgebhardt's review
See: https://github.com/Ocelot-Social-Community/Ocelot-Social/pull/8485#pullrequestreview-2813528327
* build(backend): optional commit
@ulfgebhardt this is how I tested the configurations. We don't need to include this commit but I wouldn't expect to send out real emails from a `docker-compose` setup.
---------
Co-authored-by: Moriz Wahl <moriz.wahl@gmx.de>
* email templates with pug for all possible notification emails
* more information in emails
* Individual email subjects to all notification emails
---------
Co-authored-by: Ulf Gebhardt <ulf.gebhardt@webcraft-media.de>
Co-authored-by: mahula <lenzmath@posteo.de>
* type for neo4j and neode
* fix build
* remove flakyness
* wait for neode to install schema
* remove flakyness
* explain why we wait for a non-promise
* refactor context
missing change
missing change
* adjust test setup
proper cleanup after test
* lint fixes
* fix failing test to use new context
* calculate distance between current user and queried user
* fix query for unset location
* use database to calculate distance
* rename distance to distance to me, 100% calculation done in DB
* distanceToMe tests
* lint fixes
* allow the rbanding to provide middlewares
lint fix
fix config
* whitelist instead o blacklist when to exclude middlewares
fix config whitelisting
* fix lint
* copy from branding folder to backend public folder
provide default branding/public folder
* copy public folder correctly
* copy files again for providers.json
* copy more public folders
* more copy
* revert change
* fix naming of called script when using db:data:branding
* prod command for branding data
* close database connection
* lint fixes
* increase test timeout again
* type for neo4j and neode
* fix build
* remove flakyness
* wait for neode to install schema
* remove flakyness
* explain why we wait for a non-promise
* fix diffent name notifications
We had emails sent with incorrect names.
This PR combines the query for the email with the user the notification
is sent to since the notification in database was correct.
The underlying problem is the unstable order in which the database can
return values. The results of the two queries were matched by id since
it was assumed that they always return the same order of elements.
lint fixes
fix typo
fix factory
fix tests
* fix tests accoridng to review
also test for the right amount of emails in every test
* default badges, always return a badge
- default badges for trophy and verification
- always return a badge instead of null
- isDefault field on Badge
lint fixes
* default_verification svg
* add default-trophy
Co-authored-by: Sebastian Stein <sebastian@codepassion.de>
---------
Co-authored-by: Sebastian Stein <sebastian@codepassion.de>
* allow to set selected badgeslot to null
Free a specific badge slot by setting it to null
* Update backend/src/schema/resolvers/users.ts
Co-authored-by: Wolfgang Huß <wolle.huss@pjannto.com>
---------
Co-authored-by: Wolfgang Huß <wolle.huss@pjannto.com>
Co-authored-by: Max <maxharz@gmail.com>
Images now display properly and there is diffent images now
allow to provide url, urls msut be valid in seed
Co-authored-by: Wolfgang Huß <wolle.huss@pjannto.com>
* separate all queries into one file each
* fix merge error
* fix lint
---------
Co-authored-by: mahula <lenzmath@posteo.de>
Co-authored-by: Wolfgang Huß <wolle.huss@pjannto.com>
* lint @typescript-eslint/recommended
* lint @typescript-eslint/recommended-requiring-type-checking
fix type not detected locally due to wierd uuid typings
missing save
error not reported locally
* lint @typescript-eslint/strict
---------
Co-authored-by: Wolfgang Huß <wolle.huss@pjannto.com>
* lint @typescript-eslint/recommended
* lint @typescript-eslint/recommended-requiring-type-checking
fix type not detected locally due to wierd uuid typings
missing save
error not reported locally
---------
Co-authored-by: Wolfgang Huß <wolle.huss@pjannto.com>