Kristaps Fabians Geikins
4b06f42db7
chore(server): run TS files directly (no compilation) ( #5134 )
...
* sort of works
* type fixes
* added option to run old way too
2025-07-23 11:20:40 +02:00
Kristaps Fabians Geikins
bde148f286
chore(server): migrating fully to ESM ( #5042 )
...
* wip
* some extra fixes
* stuff kinda works?
* need to figure out mocks
* need to figure out mocks
* fix db listener
* gqlgen fix
* minor gqlgen watch adjustment
* lint fixes
* delete old codegen file
* converting migrations to ESM
* getModuleDIrectory
* vitest sort of works
* added back ts-vitest
* resolve gql double load
* fixing test timeout configs
* TSC lint fix
* fix automate tests
* moar debugging
* debugging
* more debugging
* codegen update
* server works
* yargs migrated
* chore(server): getting rid of global mocks for Server ESM (#5046 )
* got rid of email mock
* got rid of comment mocks
* got rid of multi region mocks
* got rid of stripe mock
* admin override mock updated
* removed final mock
* fixing import.meta.resolve calls
* another import.meta.resolve fix
* added requested test
* nyc ESM fix
* removed unneeded deps + linting
* yarn lock forgot to commit
* tryna fix flakyness
* email capture util fix
* sendEmail fix
* fix TSX check
* sender transporter fix + CR comments
* merge main fix
* test fixx
* circleci fix
* gqlgen bigint fix
* error formatter fix
* more error formatting improvements
* esmloader added to Dockerfile
* more dockerfile fixes
* bg jobs fix
2025-07-14 10:26:19 +03:00
Kristaps Fabians Geikins
b406d0e32d
chore(server): node16 & export maps support for server ( #4698 )
...
* chore(server): node16 & export maps support for server
* moar cleanup
* lint fixc
2025-05-12 14:27:34 +03:00
Gergő Jedlicska
2fdcf1bd1d
refactor(shared): unified queue handling ( #4691 )
...
* feat(shared): unified queue initialization in shared
* feat(queues): use the new queue creation everywhere
* chore(shared): move to redis module
* chore(shared): fix export maps
* chore(fileimport): add deps properly
* fix(shared): import fix
* fix(everything): moear imports
* fix(server): cjs imports
2025-05-08 16:58:43 +02:00
Iain Sproat
920099c39f
chore(readable code): use TIME_MS for readable durations
...
- we recently added TIME_MS helper; this applies it to existing durations
2025-04-18 17:51:43 +01:00
Kristaps Fabians Geikins
f76a2c34d3
chore: add no floating promises lint rule ( #4249 )
...
* chore: add no floating promises lint rule
* minor cleanup
* fix test by only running if node 22 or greater
---------
Co-authored-by: Iain Sproat <68657+iainsproat@users.noreply.github.com >
2025-03-25 13:36:49 +02:00
Iain Sproat
ce08e5e02d
refactor(server): logging directory renamed to observability ( #4077 )
2025-02-28 08:43:54 +00:00
Iain Sproat
de4235a9d0
chore(healthchecks): refactor out of modules ( #3465 )
2024-11-08 13:36:02 +00:00
Kristaps Fabians Geikins
83d8035dc2
chore: upgrade to eslint 9 ( #2348 )
...
* root + server
* frontend
* frontend-2
* dui3
* dui3
* tailwind theme
* ui-components
* preview service
* viewer
* viewer-sandbox
* fileimport-service
* webhook service
* objectloader
* shared
* ui-components-nuxt
* WIP full config
* WIP full linter
* eslint projectwide util
* minor fix
* removing redundant ci
* clean up test errors
* fixed prettier formatting
* CI improvements
* TSC lint fix
* 'buildBatch' needs to be async since some batch types (like Text) require it. Removed a disabled liniting rule from ObjLoader
* removed unnecessary void
---------
Co-authored-by: AlexandruPopovici <alexandrupopoviciioan@gmail.com >
2024-06-12 14:38:02 +03:00
Iain Sproat
4d01e13a84
feat(structured logging) ( #1242 )
...
* Revert "Revert structured logging 2 (#1240 )"
This reverts commit 78ecaeffcb .
* Logging should not be bundled into core shared directory
* making sure observability stuff isnt bundled into frontend
Co-authored-by: Kristaps Fabians Geikins <fabis94@live.com >
2022-12-06 11:51:18 +00:00
Iain Sproat
78ecaeffcb
Revert structured logging 2 ( #1240 )
...
* Revert "'@' shortcut must come after it is configured in bootstrap (#1239 )"
This reverts commit 967329473f .
* Revert "Structured logging (attempt 2) (#1234 )"
This reverts commit 444d2ca7dd .
2022-12-05 15:46:09 +00:00
Iain Sproat
444d2ca7dd
Structured logging (attempt 2) ( #1234 )
...
* Revert "Revert "feat(structured logging): implements structured logging for backend (#1217 )" (#1227 )"
This reverts commit 63e6581162 .
* Use pino-http instead of express pino logger
* Use correct reference to knex and do not instantiate HttpLogger prematurely
* Adds missing dependency for pino to webhook-service
* Do not instantiate middleware when passed to express
* Refactor to move logging into shared
* Copy shared packages into dockerfiles
* Build shared workspace in docker build-stage for fileimport & webhook
2022-12-05 14:49:52 +00:00
Iain Sproat
63e6581162
Revert "feat(structured logging): implements structured logging for backend ( #1217 )" ( #1227 )
...
This reverts commit 84cb74e8b3 .
2022-11-25 16:57:28 +00:00
Iain Sproat
84cb74e8b3
feat(structured logging): implements structured logging for backend ( #1217 )
...
* each log line is a json object
* structured logging allows logs to be ingested by machines and the logs to be indexed and queried addresses #1105
* structured logging allows arbitrary properties to be appended to each log line, and ingestion of logs to remain robust
* Structured logging provided by `pino` library
* Add `express-pino-logger` dependency
* Remove `debug`, `morgan`, and `morgan-debug` and replace with structured logging
* `console.log` & `console.error` replaced with structured logging in backend
* Remove `DEBUG` environment variable and replace with `LOG_LEVEL`
- Note that there is a test which reads from a logged line on `stdout`. This is not robust, it would be better to use the childProcess.pid to look up the port number.
* Log errors at points we explicitly send error to Sentry
* Amend indentation of a couple of log messages to align indentation with others
2022-11-25 16:05:05 +00:00
Gergő Jedlicska
d1d5984e30
gergo/summaryEmails ( #979 )
...
* refactor(server emails): email transports module refactor to TypeScript
* refactor(docker-compose deps): move local email server to common dev compose file
* chore(server launch.json): add ts-node script running example
* chore(server deps): add nodemailer types package
* refactor(server activitystream): add strongly typed activity definitions
* feat(server activitystream): add activity repository
* feat(server info): add canonical url on the service level
* feat(server): add static file serving route to server core
* feat(server): add dependencies for periodical email digests
* feat(server activity stream): call the initialization step from the activity stream module
* feat(server activity digest): add WIP weekly email digest implementation
* feat(server digest email): smul upgrades and fixes to the email template and its contents
* just for Fabs to test
* chore(root package.json): remove deleted docker-compose references
* feat(frontend profile): add notification preferences panel
* feat(server digest emails): set prod ready cron tab and timespan
* refactor(server email digest): move templates into the email module
* refactor(server activity digests): refactor to use notifications infrastructure
* test(server activities): add tests and some refactor to activities and notification preferences
* refactor(notification preferences): fix minor issues
* test(server notification preferences test): fix describe nesting
* fix(server activities): add missing action types
* fix(server activities): fix errors after merging main
* test(server activity notifications): add test coverage for activity notifications service
* refactor(server activities): fixing tests and some cleanup
* feat(server cli): add summary notification command to cli
* chore(dev env db versions): upgrade local dev env versions
* chore(server deps): upgrade local dev db to pg 14
* fix(docker-compose): bind maildev to localhost
* process-scoped notifications test queues
* test(activity tests): add sleep to fix flaky CI
* feat(activity digests): add demo date for digest trigger
* feat(activity digest): add UK timezone trigger date
Co-authored-by: Iain Sproat <68657+iainsproat@users.noreply.github.com >
Co-authored-by: Fabians <fabis94@live.com >
2022-09-09 12:46:57 +02:00
Kristaps Fabians Geikins
af45fc2742
feat(server): notify on comment mention + notifications API ( #933 )
2022-08-19 10:27:48 +03:00