Kristaps Fabians Geikins
c5edff0105
fix(server): more adjustments
2023-05-08 15:05:21 +03:00
Kristaps Fabians Geikins
8369f678c3
fix(server): more adjustments
2023-05-08 15:05:07 +03:00
Kristaps Fabians Geikins
31b8a4b29c
fix(server): back to legacy commitUpdated/created structs
2023-05-08 14:26:55 +03:00
Kristaps Fabians Geikins
b02a07e2b6
feat: Frontend 2.0 MVP
2023-05-08 10:47:01 +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
3d6653f73b
hotfix/2.9.2 ( #1175 )
...
* Update to new specklepy (#1173 )
* Publish images for all branches but limit tagging
* only tag 'latest' and '2' when 'SHOULD_PUBLISH' variable is 'true'
* Publishing helm chart should check for `SHOULD_PUBLISH`
* Move blocking step to publish-helm chart, and allow images to be published
* Pin python requirements and bump to latest versions
* Fix EOL whitespace
* use valid version for psycopg2-binary (the clue is in the 2!)
* fix(fileimports): add exception printing to file imports
* fix(fileimports): bump specklepy version
move to a specklepy version that contains a fix for send without writing to disk
Co-authored-by: Iain Sproat <68657+iainsproat@users.noreply.github.com >
* Fixes liveness and readiness checks to prevent CSRF error message (#1169 )
- provides content-type header
- check that status code is 200
* Fixes broken helm template by adding quotation marks around liveness probe command (#1171 )
* fix(server activities): make sure the stream events are properly dispatched
* feat(server webhooks): add scheduled orphaned webhook cleanup
* test(server webhooks): add test to webhook cleanup service
* feat(server webhooks): drop foreign key reference for webhooks schema to streams
* refactor(server req context): refactor req context to have the ip attribute for all requests
* feat(server objects rest api): add ratelimits to objects rest api endpoints
* fix(server rest api): properly handle returning 419
Co-authored-by: Iain Sproat <68657+iainsproat@users.noreply.github.com >
2022-11-09 13:23:32 +01:00
Kristaps Fabians Geikins
5f48ae8086
feat(server): optimized command for importing commits from other servers ( #1113 )
2022-10-17 10:32:01 +03:00
Kristaps Fabians Geikins
8e59ee7243
refactor: moving away from 'user' query ( #1046 )
...
* refactor: moving away from 'user' query + various fixes
* fix: linting issue in stream tests
* fix(server): some tests broken after rebase onto main
2022-10-06 12:08:08 +03:00
Kristaps Fabians Geikins
db6a3e9367
refactor(server): apollo server v2 -> v3 migration ( #1071 )
2022-10-06 11:12:16 +03:00
Gergő Jedlicska
8b386ff078
gergo/weeklyDigestProdConfig ( #1072 )
...
* feat(server task scheduler): sketch out core task scheduler implementation
* feat(server weekly activity digests): add function lock duration to the weekly digest execution
* feat(server scheduled tasks): add scheduled tasks type definition, db schema and migration
* feat(server scheduled tasks): add scheduled tasks repository
* feat(server task scheduler): add task scheduler service implementation
* chore(server deps): add mocha type definitions
* refactor(server scheduled tasks): refactor scheduled tasks migration
* refactor(server scheduled tasks): refactor scheduled task db schema and type definitions
* feat(server scheduled tasks): implement db side lock acquire
* refactor(server scheduled tasks): refactor task scheduler with lock on query mechanism
* test(server scheduled tasks): add tests for scheduled tasks implementation
* refactor(server weekly activity digests): refactor to new task scheduler implementation
* feat(server weekly activity digest): switch to a 1000 seconds trigger period for testing purposes
* fix(server task scheduler): fix not catching lock acquire function errors
* feat(server weekly digest): switch weekly digest cron trigger to the prod ready value
2022-10-04 16:55:08 +02:00
Kristaps Fabians Geikins
1351b6b82a
feat(server): fixing double summary emails per week ( #1054 )
...
* feat(server task scheduler): sketch out core task scheduler implementation
* feat(server weekly activity digests): add function lock duration to the weekly digest execution
* feat(server scheduled tasks): add scheduled tasks type definition, db schema and migration
* feat(server scheduled tasks): add scheduled tasks repository
* feat(server task scheduler): add task scheduler service implementation
* chore(server deps): add mocha type definitions
* refactor(server scheduled tasks): refactor scheduled tasks migration
* refactor(server scheduled tasks): refactor scheduled task db schema and type definitions
* feat(server scheduled tasks): implement db side lock acquire
* refactor(server scheduled tasks): refactor task scheduler with lock on query mechanism
* test(server scheduled tasks): add tests for scheduled tasks implementation
* refactor(server weekly activity digests): refactor to new task scheduler implementation
* feat(server weekly activity digest): switch to a 1000 seconds trigger period for testing purposes
* fix(server task scheduler): fix not catching lock acquire function errors
Co-authored-by: Gergő Jedlicska <gergo@jedlicska.com >
2022-10-04 16:11:01 +02: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
f991504932
feat: stream access requests ( #976 )
2022-09-06 11:10:38 +03:00
Kristaps Fabians Geikins
ecb9f825bb
refactor: email verification flow & email template ( #967 )
2022-08-31 17:11:19 +03:00
Kristaps Fabians Geikins
af45fc2742
feat(server): notify on comment mention + notifications API ( #933 )
2022-08-19 10:27:48 +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
Kristaps Fabians Geikins
fec9b5345c
fix(frontend): timeline items duplicating after going to stream page and back ( #842 )
2022-07-29 14:08:44 +03:00
Kristaps Fabians Geikins
b55f12d6bc
feat: apollo client v3 + vue apollo v4 ( #831 )
2022-07-25 12:24:59 +03:00
Kristaps Fabians Geikins
da9224a069
feat: server & stream invites rework
...
feat: server & stream invites rework
Co-authored-by: Dimitrie Stefanescu <didimitrie@gmail.com >
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-07-19 13:01:19 +03:00
Gergő Jedlicska
0ac118e05c
(refactor) server for less app-root-path
2022-05-03 13:10:00 +02:00
Gergő Jedlicska
89d0d9e0ed
style: fix eslint warnings
2022-04-04 22:32:34 +02:00
Fabians
1c7436e7ff
extra prefer-const & object-shorthand
2022-04-04 19:00:24 +03:00
Gergő Jedlicska
1355ddab6f
style(all): some extra formatting fixes
2022-04-01 09:40:47 +02:00
Gergő Jedlicska
d53df11f77
style(server): fix all eslint errors and break the tests
2022-03-31 14:18:44 +02:00
Gergő Jedlicska
569b4688fa
style(all): reformat with print width 88
2022-03-29 19:46:49 +02:00
Fabians
aa5e94d640
chore: reformatting everything with prettier
2022-03-29 17:12:31 +03:00
Gergő Jedlicska
68a4a95d90
refactor(server): rework test hooks
...
drop db migration before and after hooks, add helpers and root hooks
fix #531
2022-02-05 15:05:17 +01:00
Gergő Jedlicska
8050c30d6d
test((server) archival tests): add archived user scope tests
...
also i'm trying to fix flaky tests
2021-11-04 13:33:22 +01:00
Dimitrie Stefanescu
ff166927d4
feat(server): received receipts cleanup
2021-10-05 16:28:13 +01:00
KatKatKateryna
bef4974360
adding "received" property to Commit
2021-10-05 13:55:14 +02:00
KatKatKateryna
d5298a4aab
NA
2021-09-15 19:39:30 +08:00
KatKatKateryna
44076033cc
Revert "just save"
...
This reverts commit 64f52bd9d0 .
2021-09-15 19:36:10 +08:00
KatKatKateryna
e6a0d1fc2d
NA
2021-09-15 19:35:27 +08:00
KatKatKateryna
64f52bd9d0
just save
2021-09-15 19:23:10 +08:00
KatKatKateryna
4a51a4bc9c
Activity timeline now includes Commit_received
2021-09-14 19:50:12 +08:00
Dimitrie Stefanescu
7b28e8de37
feat(server/frontend): example first pass implementation re rrs (received receipts)
2021-09-13 15:30:46 +01:00
Cristian Balas
8d53b08608
correct activity count with filters ( #379 )
2021-08-11 11:45:19 +03:00
cristi8
157db23f45
Added server info and user info to webhook payload
2021-07-21 20:45:57 +03:00
cristi8
ddc86eb157
Webhooks - microservice + hooks into activityStreams
2021-07-12 11:32:54 +03:00
cristi8
150956ad1b
db indexes
2021-06-25 01:53:52 +03:00
izzy lyseggen
36e22b61e8
fix(server): adjust activity stream tests
2021-06-24 16:17:14 +01:00
izzy lyseggen
b4275888c7
feat(server): activity stream timeline and tests
2021-06-24 16:07:16 +01:00
izzy lyseggen
b671baf171
feat(server): activity stream timeline fixes
2021-06-24 16:05:26 +01:00
izzy lyseggen
3e2c90e6a6
feat(server): chat w cristi - bring limits back!
2021-06-23 15:39:47 +01:00
izzy lyseggen
8172328257
feat(server): activity stream args
2021-06-23 15:06:21 +01:00
izzy lyseggen
35dde4bdac
feat(server): fill out activity stream queries
2021-06-23 10:19:04 +01:00