Kristaps Fabians Geikins
6051917b59
chore(server): refactor activityStream invocations - batch #7 - streams ( #4014 )
...
* chore(server): refactor activityStream invocations - batch #7 - streams
* test fix
* more test fixes
* CR comment fix
2025-02-24 12:34:56 +02:00
Kristaps Fabians Geikins
4b7740eb17
Merge branch 'main' into fabians/web-2415-6
2025-02-17 15:15:52 +02:00
Gergő Jedlicska
c4a6da410b
feat(core): drop the closure table pls ( #3900 )
...
* feat(core): drop the closure table pls
* feat(core): remove closures feature flag
* feat(core): remove more closure stuff
* feat(core): only drop closure table if it exists
2025-02-07 14:06:53 +01:00
Kristaps Fabians Geikins
9b46747815
chore(server): refactor activityStream invocations - batch #6 - project invites
2025-01-24 18:35:21 +02:00
Kristaps Fabians Geikins
aee14edc5b
chore(server): getting rid of module-scoped event emitters - batch #1 ( #3766 )
...
* got rid of models emitter + added tests
* got rid of projects emitter + added tests
* replaced user event bus
* test migrate
2025-01-13 11:39:46 +02:00
Iain Sproat
a1ee8a89a7
chore(server): graceful shutdown ( #3125 )
...
* chore(server): graceful shutdown
- stop() on the apollo server should be called
* chore(server): gracefully drain apollo server
* Allow grace period to be configured
* Terminus manages the readiness and liveness endpoints
* terminus is responsible for stopping the graphql server
* remove logging on shutdown
* Remove redundant parameter
* move healthchecks out of business modules to top-level directory
- terminus can only handle readiness check, not liveness
- app needs to return readiness handler, so that server terminus can use it
* fix tests
* Fix broken merge
* fix broken merge
* incorporate review comments
* fix invalid merge
* fix readinesscheck not being passed as parameter
2024-11-19 11:08:38 +01:00
Gergő Jedlicska
73cc7e67d3
gergo/webhookRegions ( #3459 )
...
* feat(webhooks): multi region webhook resolver
* feat(webhooks): multi region webhook cleanup
* fix(webhooks): DI fixes
* feat(activitystream): region aware save activity
* feat(accessrequests): multi region
* feat(cli): allow multi region project and commit download
* feat(postgres): make docker postgres 0 day multi region ready
* feat(cli): allow multi region project and commit download properly
* fix(cross-server-sync): di fix
* feat(activitystream): non region aware activities, they are not project data
* fix(webhooks): triggers need to be included
* feat(stream/projectCreate): activity save is not needed any more, its all event based
* feat(multiRegion): get all registered db clients
* fix(regions): test equal in any order
* fix(projectDownload): need to await
2024-11-08 10:45:39 +01:00
Kristaps Fabians Geikins
f33dcb0849
chore(server): core IoC #88 - createObjectFactory
2024-10-18 16:13:15 +03:00
Kristaps Fabians Geikins
f27f289dc6
chore(server): core IoC #78 - getServerInfoFactory
2024-10-17 12:37:43 +03:00
Kristaps Fabians Geikins
da88f5925c
chore(server): core IoC #72 - createPersonalAccessTokenFactory
2024-10-16 17:13:03 +03:00
Kristaps Fabians Geikins
573970fc6c
chore(server): core IoC #55 - createUserFactory
2024-10-15 12:55:33 +03:00
Kristaps Fabians Geikins
1cb27e6fdd
chore(server): core IoC #51 - getUser(s)Factory
2024-10-14 17:24:11 +03:00
Kristaps Fabians Geikins
6cb5022ac4
chore(server): IoC 35 - updateStreamRoleAndNotify
2024-10-09 16:31:20 +03:00
Kristaps Fabians Geikins
ad9cb3aafd
chore(server): IoC 33 - deleteStreamAndNotifyFactory
2024-10-09 12:37:57 +03:00
Kristaps Fabians Geikins
aa4f319277
chore(server): IoC 32 - createStreamFactory ( #3204 )
2024-10-09 11:10:20 +03:00
Kristaps Fabians Geikins
5b5dd201e2
chore(server): IoC 29 - getStream(s)Factory
2024-10-09 10:39:00 +03:00
Alessandro Magionami
86c1e84c7c
Activitystream IoC 3 createActivitySummary ( #3147 )
...
* chore(activitystream): refactor createActivitySummary
* chore(activitystream): fix imports
2024-09-27 11:58:48 +03:00
Alessandro Magionami
25bc4477d6
chore(activitystream): refactor sendActivityNotification
2024-09-26 15:38:22 +02:00
Alessandro Magionami
07a6778fb0
chore(activitystream): refactor saveActivity
2024-09-26 10:34:27 +02:00
Alessandro Magionami
c3abd854ff
chore(activitystream): refactor getUserActivity
2024-09-25 15:58:49 +02:00
Iain Sproat
60251e45cb
Revert "fix(server): revert 55cad9662a ( #2633 )" ( #2650 )
...
This reverts commit f2c5677b4a .
2024-08-13 11:48:20 +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
ee3e9af78d
feat(logging): pass request logger to core/services/objects ( #2599 )
...
* chore(logging): include additional detail on object upload logs
* allow max file size to be configurable
* feat(logging): add logger to core/services/objects
* fix log line
* fix tests
* typo
* fix variable name
* convert values to megabytes
* calculating memory was causing the system to freeze
* calculating memory was causing the system to freeze
* DRY the logging metadata
* all required variables should be passed to calculateLogMetadata
* fix many things with the logging
2024-08-09 10:15:37 +02:00
Kristaps Fabians Geikins
37d51072fb
feat(server): resource limits on app tokens ( #1959 )
...
* WIP new mutation arg
* limited resource token creation done
* token resource rule creation validation
* updated authorizeResolver implementation
* introduced resource access rule checks in authorizeResolver everywhere
* more checks added
* updated projects resolvers
* updated stream resolvers
* more checks added
* error page theme resolution fix
* WIP testss
* more tests
* implemented checks in REST auth pipeline
* REST API coverage & tests
* some tests fixed
* test fixess
* added tests
* feat(server): new automation result reporting scope (#1976 )
* feat(server): new automation result reporting scope
* tests fix
2024-01-19 18:14:49 +01:00
Gergő Jedlicska
c22e0dfe23
refactor(server scopes): use constants for profile email scope
2023-07-26 13:32:08 +02:00
Gergő Jedlicska
61c4869091
refactor(server scopes): use constants for profile read scopes
2023-07-26 13:29:54 +02:00
Gergő Jedlicska
f1e64e3b83
refactor(server scopes): use constants for tokens read scopes
2023-07-26 13:27:33 +02:00
Gergő Jedlicska
9b09a2d1c8
refactor(server scopes): use constants for tokens write scopes
2023-07-26 13:26:49 +02:00
Gergő Jedlicska
d12cb9d34a
refactor(server scopes): use constants for users email scopes
2023-07-26 13:25:09 +02:00
Gergő Jedlicska
4d9078a6d7
refactor(server scopes): use constants for users read scopes
2023-07-26 13:15:09 +02:00
Gergő Jedlicska
878f97baa2
refactor(server scopes): use constants for streams write scopes
2023-07-26 13:13:09 +02:00
Gergő Jedlicska
bb5778bf2d
refactor(server scopes): use constants for streams read scopes
2023-07-26 13:09:34 +02: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
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
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
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
Fabians
1c7436e7ff
extra prefer-const & object-shorthand
2022-04-04 19:00:24 +03: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
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
8172328257
feat(server): activity stream args
2021-06-23 15:06:21 +01:00
cristi8
8c328c3947
after discussisons
2021-06-22 14:29:37 +03:00