69 Commits

Author SHA1 Message Date
0873fc748c
feat(backend): lint - detect unused typescript disables (#8425)
* detect unused typescript disables

* fix lint errors

uuid-types

remove debug

fix config

* lint fixes
2025-04-25 14:31:49 +00:00
507179738a
refactor(backend): types for neo4j & neode (#8409)
* 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
2025-04-25 08:04:58 +00:00
b464a380ca
refactor(backend): lint @typescript-eslint/recommended-requiring-type-checking (#8407)
* 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>
2025-04-21 10:32:44 +00:00
53f3a4e2e6
lint @typescript-eslint/recommended (#8406)
Co-authored-by: Wolfgang Huß <wolle.huss@pjannto.com>
2025-04-21 12:01:53 +02:00
8cf405c549
feat(backend): badges (#8391)
* delete all old badges

* reward/unrewardBadge

* verification Badges

* name all badged accordingly

* more tests, lint

* seed badges

* profileBadge mechanic

* badgesUnusedCount

* seed profileBadges set

* configure profile badge count

* insert badges db:data:badges:default

* seed commands to seed default badges and allow to seed branding data

* copy data migrations when building docker

* typo

* correct data:branding command & document it

* test new functionality

* Update backend/src/db/seed/badges.ts

Co-authored-by: Max <maxharz@gmail.com>

* Update backend/src/db/seed/badges.ts

Co-authored-by: Max <maxharz@gmail.com>

* Update backend/src/db/seed/badges.ts

Co-authored-by: Max <maxharz@gmail.com>

* naming coventions

* final naming fix

lint

fix build

fix badge type in test

renamed badge_ to trophy_

lint fixes

small renameing

fixes

fix users spec

fix webapp queries

fix display

* expose badge description

---------

Co-authored-by: Max <maxharz@gmail.com>
2025-04-17 23:08:54 +00:00
5d154bcb85
fix migrations (#8390)
async migrations should not call next()

Co-authored-by: mahula <lenzmath@posteo.de>
2025-04-16 11:08:30 +02:00
Wolfgang Huß
bda0de0249
fix(backend): fixing admin email notification settings (#8356)
* Fix admin e-mail notification settings

* Optimize migration '20250405030454-email-notification-settings.ts' down

* Update backend/src/db/admin.ts

Co-authored-by: Ulf Gebhardt <ulf.gebhardt@webcraft-media.de>

---------

Co-authored-by: Ulf Gebhardt <ulf.gebhardt@webcraft-media.de>
2025-04-11 10:00:15 +00:00
Moriz Wahl
abd13a6cff
migrate commenting users to observe commented posts (#8308) 2025-04-10 19:36:26 +02:00
fcc99ab58e
refactor(backend): clean migrate scripts (#8317)
* clean migrate scripts

- refactor migrate:init
  - separate admin seed
  - separate categories seed
- rework backend README regarding the database
- remove `db:clean` command as its a duplicate of `db:reset`
- remove `__migrate` helper alias

* renamed clean.ts to reset.ts

* set indices & constrains in init function

* fix comment

* disable migrations touching indices

* remove obsolete comment

* always run init on kubernetes

* reset db with or without migrations

* lint fixes

* Refine 'README.md'

* Refine more 'README.md'

* fix lint

---------

Co-authored-by: Wolfgang Huß <wolle.huss@pjannto.com>
2025-04-10 09:52:49 +02:00
Max
1b07b06ca7
feat(webapp): notification settings frontend (#8320)
Implements detailed settings for email notifications.

Issues
relates 🚀 [Feature] Drei neue Interaktions-Benachrichtigungen #8280
2025-04-09 13:21:38 +00:00
f782032563
refactor(backend): lint - import/order (#8350)
* lint - import/no-relative-parent-imports

fix build error

* fix md

* lint import/order

enabled rule import/order and fixed impot order in each file
2025-04-09 09:44:48 +02:00
a4f391930c
lint - import/no-relative-parent-imports (#8349)
enable import/no-relative-parent-imports
2025-04-08 23:18:07 +02:00
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
Moriz Wahl
72f469d823
migration adds OBSERVES relation between author and post (#8307) 2025-04-03 16:46:02 +00: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
fe3e5dc483 fix cypher statement 2023-10-17 15:35:38 +02:00
Moriz Wahl
fe416200fb migration to fix wrong event date times 2023-10-17 15:15:28 +02:00
23c2be3093
Merge branch 'master' into update-database 2023-06-16 15:02:58 +02:00
ebddfa7df4
all files as .ts 2023-06-12 13:25:21 +02:00
Moriz Wahl
44e2c1adf7 feat(backend): migration to add postType property to existing posts 2023-06-08 14:00:04 +02:00
Hannes Heine
41cd147258
Merge branch 'master' into update-database 2023-05-31 21:26:39 +02:00
Moriz Wahl
30ce9e8460 add description to migration 2023-05-22 17:06:32 +02:00
44700f8a41
lint + comment 2023-05-16 00:43:37 +02:00
a326b2777f
fix migrations 2023-05-16 00:38:02 +02:00
Moriz Wahl
84811d8937 feat(backend): add article label to posts 2023-03-29 15:48:35 +02:00
ceed23893a
remove console statement, lint fixes 2023-03-20 22:36:43 +01:00
bfca086e7b
only drop indexes if they exist 2023-03-20 22:17:07 +01:00
6e2b65e124
lint fixes 2023-03-20 21:40:57 +01:00
b3f5bf4e6a
new migration to create search indexes 2023-03-20 14:06:10 +01:00
Wolfgang Huß
da2c7dc684 Add migration with fulltext indeces and unique keys for groups 2022-08-03 07:29:51 +02:00
Wolfgang Huß
1a0819741f Fix 'add-donations-node' migration 2021-12-02 11:24:18 +01:00
Wolfgang Huß
d5468e5123 Add db mutation for adding sendNotificationEmails property to each user 2021-09-23 15:03:11 +02:00
Wolfgang Huß
8295ec5827 Change donations db migration from CREATE to MERGE to work in all circumstances 2021-09-20 11:05:41 +02:00
Wolfgang Huß
924f34be5f Migrate database by adding the donation info as node 2021-05-06 16:03:16 +02:00
Moriz Wahl
1c3f628fb2 count views of post teaser 2021-03-01 15:33:20 +01:00
Moriz Wahl
88fd83ec2b
Merge pull request #4248 from Ocelot-Social-Community/count-post-views
feat: 🍰 Count Post Clicks
2021-03-01 14:55:14 +01:00
Moriz Wahl
f2d34cc815 linting 2021-02-22 21:15:18 +01:00
Moriz Wahl
4611e298f5 migration for clickedCount 2021-02-22 21:03:12 +01:00
Moriz Wahl
a7489a044c add null mutation 2021-02-17 21:03:18 +01:00
Wolfgang Huß
814c1b88ae New file .gitkeep in migrations 2021-02-15 21:14:18 +01:00
Wolfgang Huß
063c730e5f Fix 'db:migrate up' by moving examples outside of migrations folder 2021-02-15 17:53:56 +01:00
Moriz Wahl
efec46d9d4 moved old migrations from HC to examples folder to avoid conflicts with new migrations 2021-02-11 13:14:57 +01:00
mattwr18
52b5a4b0f8 fix(migration): Set maxSockets to avoid rate limit 2020-03-30 14:14:06 +02:00
mattwr18
ff348fdd5c chore: remove image nodes that point to nothing
- remove their relationships to posts/users as well
2020-03-26 19:01:09 +01:00
roschaefer
cedd0ac9e8 Code creep: Avoid migration errors
..because of existing indices. I think this is unnecessary, e.g. in
development.
2020-03-26 16:41:32 +01:00
roschaefer
2e1d5b6bb8 chore(migration): Remove dangling urls 2020-03-26 16:39:03 +01:00
mattwr18
bde6bfc5fa fix(migration): fix errors after dry run
- avoid content-type is not a string, by checking if there is a mimeType
  or giving it a default 'image/jpeg'
- check if the file exists before trying to upload it (maybe this is
  only an issue locally, but about half the files didn't exist in the
file system.
2020-03-26 14:03:21 +01:00
roschaefer
32da8b2982 refactor: Remove redundant credentials
aws-sdk reads them from environment variables.
2020-03-25 11:09:06 +01:00
roschaefer
eb838257d4 Ensure overwritten images are deleted on S3 2020-03-25 11:09:06 +01:00
mattwr18
c33217c526 Find mimeType/update image.url 2020-03-25 11:07:57 +01:00