Kristaps Fabians Geikins
3ff32d639d
feat(server): allow running migrations w/o having to build ( #5178 )
...
* feat(server): allow running migrations w/o having to build
* package.json fix
* avoid string mutation
* CLI for purging test DB
2025-08-04 13:40:28 +03: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
e3d3c1446b
feat: enable domain discoverability on workspace creation ( #4235 )
...
* frontend changes implemented
* WIP BE
* backend seems to work
* CR fixes
2025-04-07 12:34:45 +03:00
Kristaps Fabians Geikins
28b49107b7
feat(server): upgrade workspace seat type ( #4158 )
...
* feat(server): upgrade workspace seat type
* test/lint fixes
2025-03-11 12:41:18 +02:00
Kristaps Fabians Geikins
fb6dc448ca
feat(server): prevent viewer seat from becoming project contributor/owner + extra fixes ( #4117 )
...
* unrelated fixes that i noticed
* tests for fix
* tests & working restrictions
* test fix
* test fixx
2025-03-06 13:26:16 +02:00
Iain Sproat
ce08e5e02d
refactor(server): logging directory renamed to observability ( #4077 )
2025-02-28 08:43:54 +00:00
Kristaps Fabians Geikins
347fa4b462
feat(server): improving knex query stack traces ( #3855 )
...
* feat(server): improving knex query stack traces
* minor cleanup
* more improvements
2025-01-21 10:59:09 +01:00
Adam Hathcock
89882c4fd6
Add otel tracing ( #3294 )
...
* add OpenTelemetry
* fix local tracing and add pino
* fix otel as seperate file
* Rework provider initialization
* Use env vars
* review comments
* lock update
* updates to env var handling
* Helm chart for opentelemetry environment variables
- also adds try/catch when detecting if environment variable exists
* review fixes
---------
Co-authored-by: Iain Sproat <68657+iainsproat@users.noreply.github.com >
2024-10-22 15:23:39 +01: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
Kristaps Fabians Geikins
0427f5cfd1
feat(server): new base email template + implementation for invites emails ( #903 )
...
Co-authored-by: Dimitrie Stefanescu <didimitrie@gmail.com >
2022-08-11 11:00:01 +03:00
Kristaps Fabians Geikins
b966f20fdb
refactor(server): typescript support ( #874 )
...
Co-authored-by: Gergő Jedlicska <gergo@jedlicska.com >
2022-08-04 14:21:39 +02:00
Iain Sproat
90847e422d
Feat: configurable file limits ( #835 )
...
* Feat: configurable file limits
* ci(circleci): container build speed imporvements
* feat(frontend nginx): add file size limit configurability to frontend nginx
* feat(server blobstorage): use the new file size limit customization value
* feat(helm chart): implement the file size configuration in the helm chart
* fix(frontend docker): fix entrypoint script
* fix(server blobstorage): fix env var parsing NaN
* feat(fileimport-service): add customizable import timeout
* feat(helm chart): add fileimport service timeout value to helm chart
* feat(blobstorage): add server side blob storage size limits
* feat(docker-compose): add blob size limit env var to docker-compose files
* refactor(frontend file uploads): refactor file uploads to use `useQuery`
* refactor(server env helper): move env helper to shared module
* refactor(blobstorage): use env helper for file size limit
* refactor(frontend file uploads): use generated query document
* fix(server blob sotrage): fix file size limit function call
Co-authored-by: Gergő Jedlicska <gergo@jedlicska.com >
2022-07-29 12:00:29 +02:00
Kristaps Fabians Geikins
86c63c29db
feat: adding extra apollo studio env vars to helm chart ( #830 )
...
* feat: adding extra apollo studio env vars to helm chart
* made apollo read version from SPECKLE_SERVER_VERSION
* moved from graph_ref to graph_id
* changing up some values
2022-07-19 16:36:16 +02:00
Gergő Jedlicska
472f83c8e9
(fix) server
...
turns out you do need to use appRoot here
2022-05-05 11:45:34 +02:00
Gergő Jedlicska
8f1ec5f5ae
(refactor) server
...
use require.resolve in bootstrap
2022-05-05 10:38:34 +02:00
Gergő Jedlicska
bd543ed38e
refactor(server): completely remove app-root-path package
2022-05-03 15:36:18 +02:00
Fabians
b4aeb266c4
fix: throwing error if running tests without .env.test
2022-04-29 10:44:03 +03:00
Kristaps Fabians Geikins
aeeb88340d
feat: favoriting streams #620 ( #633 )
2022-03-29 16:30:49 +03:00
Kristaps Fabians Geikins
94b0174b16
feat(server): configurable .env.test & auto-creation of the test db
2022-03-17 13:08:27 +02:00
Gergő Jedlicska
dce9efbb55
chore(server): ignore boostrap file from coverage
2022-03-17 10:12:11 +01:00
Kristaps Fabians Geikins
b157a98901
feat(server): simplified test running & IDE integrations
2022-03-16 17:31:53 +02:00