Commit Graph

32 Commits

Author SHA1 Message Date
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 18800c9fba fix(server): shouldnt use main region config if FF off (#5009) 2025-06-30 15:20:14 +03:00
Kristaps Fabians Geikins 5ef0e67ac7 fix: making pg LISTEN/NOTIFY skip pool (#5007) 2025-06-30 14:54:12 +03:00
Kristaps Fabians Geikins c57262aa44 chore: log listen/notify connection strings (#5006)
* chore: log listen/notify connection strings

* re-adding multiRegionConfig alias

* CR comments

* type fix
2025-06-30 11:59:28 +03:00
Kristaps Fabians Geikins 0ae4ba63a9 fix(server): externally managed DB connection for notifs (#5002)
* fix(server): externally managed DB connection for notifs

* weakMap based listener tracking
2025-06-27 17:31:32 +03:00
Kristaps Fabians Geikins c8bbab864a chore(server): improved db notif logging for issue troubleshooting (#5001) 2025-06-27 15:41:30 +03:00
Iain Sproat fb95dd3bdd Merge branch 'main' into iain/ratelimiter-should-respect-configuration 2025-02-28 09:23:48 +00:00
Iain Sproat ce08e5e02d refactor(server): logging directory renamed to observability (#4077) 2025-02-28 08:43:54 +00:00
Iain Sproat 8d1aceb7fc incorporate PR review comment - set rate limit enabled once 2025-02-25 11:37:51 +00:00
Iain Sproat c593990b22 Move ratelimiter from services to utils 2025-02-25 09:27:24 +00:00
Kristaps Fabians Geikins 1d2a594f0a chore: upgrade TS 5.2 -> 5.7.3 & ESLint to 9.20.1 (#4032)
* chore: upgrade TS 5.2 -> 5.7.3

* vite dts fix

* lint fix

* resolutions fix

* ui comp build fix

* precommit fix?

* latest eslint version

* autoloader fix

* undo unnecessary viewer change

* eslint fixes fe2 + trying disabled type linting

* lint fixes
2025-02-20 14:18:18 +02:00
Kristaps Fabians Geikins 4a7d49bb55 linter fix 2024-10-18 16:13:26 +03:00
Kristaps Fabians Geikins 4aac3670c2 linter fix 2024-10-18 16:13:26 +03:00
Kristaps Fabians Geikins 0b0a3dca87 chore(server): core IoC #89 - createObjectsBatchedFactory 2024-10-18 16:13:25 +03:00
Iain Sproat f93d9093a0 fix(errors): all error should define an appropriate status code (#3112)
* fix(errors): all error should define a status code (default is 500)
- rename NoInviteFoundError to InviteNotFoundError to match xNotFoundError pattern

* remove unused errors
2024-09-25 13:08:13 +02:00
Iain Sproat 7b1c46ba9a chore(server): addn'l observability around db connections (#2628)
* chore(server): addn'l observability around db connections
* improvement to logging and metrics
* Instrument the knex connection pool
2024-08-12 13:17:53 +01:00
Iain Sproat f2c5677b4a fix(server): revert 55cad9662a (#2633)
* Revert "refactor(server/upload): convert js to ts (#2618)"

This reverts commit e9f7286f67.

* Revert "feat(logging): pass request logger to core/services/objects (#2599)"

This reverts commit ee3e9af78d.

* Revert "feat(server): configurable maximum objects POST size and improved logging (#2594)"

This reverts commit 55cad9662a.
2024-08-12 10:26:53 +01:00
Iain Sproat 55cad9662a feat(server): configurable maximum objects POST size and improved logging (#2594) 2024-08-08 16:19:25 +01:00
Kristaps Fabians Geikins 9aebb3f286 fix(server): db listener redis retry fix 2024-01-25 17:07:37 +02:00
Kristaps Fabians Geikins ff5c965df9 fix(fe2): redis connection leakage 2024-01-25 10:50:04 +02:00
Iain Sproat a3cb8b180b fix(server): explicit db listener redis cleanup (#1989)
Co-authored-by: Kristaps Fabians Geikins <fabis94@live.com>
2024-01-24 22:01:58 +00:00
Gergő Jedlicska c2085d6b13 Hotfix/2.17 (#1955)
* gergo/apolloQueryDuration (#1949)

* add apollo query duration

* feat: add more details to apollo query logging

* fix: pr review

* feat: format log messages as clef (#1950)

* fix(logging): pinoClef log levels must be a string

* chore(fe2): reducing log level for some spammy req logs

* minor adjustment

* more robust path resolution

* better req log text

* feat(fe2): improved and more thorough logging to help with observability (#1948)

* better req log text

* minor improvements to server logging

* WIP FE2 req logging

* FE2 apollo operation logging

* undid apolloPlugin changes due to Gergos PR

* seq message templates introduced

* fix: request logs (#1964)

* fix: request logs

* chore: remove comments

* feat: add graphql subscription metrics (#1970)

* optimized preview msg resultListener

* fix(server): locking to avoid postgres notification listeners processing the same message multiple times (#1972)

* fix(server): locking to avoid postgres notification listeners processing the same message multiple times

* optimized locking

* minor cleanup

* msg update

* log level adjustments

* reduce failsafe expiry

---------

Co-authored-by: Iain Sproat <68657+iainsproat@users.noreply.github.com>
Co-authored-by: Kristaps Fabians Geikins <fabis94@live.com>
Co-authored-by: Kristaps Fabians Geikins <fabians@speckle.systems>
2024-01-17 16:39:33 +01:00
Gergő Jedlicska ac7da4ae09 chore(server): remove console log 2023-08-01 15:36:36 +02:00
Gergő Jedlicska 42d90b71cd rename string size calculator function to estimate 2023-07-28 17:55:24 +02:00
Gergő Jedlicska b8f0cee93e refactor(server objects): all object inserts use the memory optimized query 2023-07-28 17:43:44 +02:00
Gergő Jedlicska 426bd3465f feat(server): user faster string size calculation 2023-07-28 12:12:07 +02:00
Gergő Jedlicska 53e5e28ffc fix(server chunkin): fix string size calculation 2023-07-20 13:11:35 +02:00
Gergő Jedlicska b71dce61c0 feat(server objects): add insertion object chunking logic 2023-07-20 12:52:24 +02:00
Kristaps Fabians Geikins c650bd3fec fix(server): re-enabling functionality we disabled when we encountered performance degradation (#1602) 2023-05-30 09:50:18 +03:00
Kristaps Fabians Geikins c9e8f2984a fix: dbnotificationlistener precommit 2023-05-22 17:10:07 +03:00
Kristaps Fabians Geikins bc6bffc72e quickfix: disabling db listener for testing 2023-05-22 16:52:13 +03:00
Kristaps Fabians Geikins b02a07e2b6 feat: Frontend 2.0 MVP 2023-05-08 10:47:01 +03:00