-
Notifications
You must be signed in to change notification settings - Fork 13.3k
feat: apps to service #27024
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
thassiov
wants to merge
103
commits into
develop
Choose a base branch
from
improve/apps-to-service
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+2,522
−948
Draft
feat: apps to service #27024
Changes from all commits
Commits
Show all changes
103 commits
Select commit
Hold shift + click to select a range
3bf93e2
Move apps/server to services
d-gubert 64e0dbc
WIP
d-gubert d63f8ab
Make apps-engine's orchestrator work as a service
thassiov 025892f
refactor: use triggerEvent method
854fbec
fix: remove Apps export
8cdb978
refactor: extract app statistics to service
90e8128
AE-4 feat: adapt management to use service
cc93ca7
AE-4 feat: move communication folder
9793f48
AE-4 refactor: remove unnecessary commentaries
1cf213d
AE-5 feat: add apps video manager service
9b21d6e
AE-5 refactor: use new service methods
aa2f88d
AE-5 feat: check if apps-engine is loaded
23cccd2
Merge pull request #27113 from RocketChat/refactor/AE-5_change-orch-u…
thassiov 369707b
Merge pull request #27095 from RocketChat/refactor/change-apps-to-ser…
thassiov 9d5c250
AE-67 refactor: replace Meteor random for uuid v4
9222699
AE-67 refactor: throw MeteorError instead of an error from meteor lib
90ec8e9
AE-67 feat: add new services
bec5641
AE-67 refactor: use service to avoid Meteor dependency
98e7341
AE-67 refactor: remove Meteor dependency
089e1ea
AE-67 fix: pass all params to triggerEvent
932447c
AE-67 refactor: use service to remove Meteor dependency
7ae0912
AE-67 refactor: pass db via constructor to avoid Meteor
5077c25
Merge branch 'develop' into improve/apps-to-service
thassiov b8c2e43
Add new models and interfaces
thassiov 052378c
Remove references to old apps models
thassiov fd73e58
Merge branch 'improve/apps-to-service' into improve/remove-meteor-app…
e017b62
Merge pull request #27380 from RocketChat/improve/remove-meteor-apps-…
thassiov b9111c3
refactor: remove unnecessary commentary
a15a3a8
Define methods used by apps engine and its types
thassiov c08d57e
Merge branch 'improve/apps-to-service' into chore/apps-raw-models
thassiov 7619990
Remove remainder 'Promise.await' instances
thassiov 43b1c42
Update yarn.lock
thassiov 28880dc
Adjust method calls to models
thassiov a636453
Merge pull request #27401 from RocketChat/chore/apps-raw-models
thassiov 4306795
Add new service for the app listener bridge
thassiov 49d6fd0
Fix faulty index creation for apps_logs col
thassiov a88bde2
Include method from Subscriptions model
thassiov ad38db7
Fix typo
thassiov 610e421
Move apps engine to ee
thassiov 25954c0
Updating file references
thassiov ddc08dd
refactor: update import to ee
8b29965
change function to handle promises
f532f1e
Partial commit of converter changes
thassiov f262697
Updates calls to async functions
thassiov 93cf7fb
Fixes the issue with triggerEvent sending a list instead of object
thassiov 28b143b
Removes meteor code from uikit comm module
thassiov 1bf2924
Merge pull request #27718 from RocketChat/fix/asyncawaitify-app-conve…
thassiov f176db3
Removing Meteor refs from ee directory
thassiov 8128bd5
[FIX] Use fibers on async calls (#27967)
thassiov 8778156
[NEW] Add internal federation bridge (#27615)
c1114b1
Remove the listener service
thassiov 1cad2c4
Merge pull request #27990 from RocketChat/chore/remove-async-from-lis…
27bb6ff
[FIX] Use apps.engine service (#27419)
73a0cb1
[FIX] Remove meteor dependencies from apps-engine (#27930)
6270877
[IMPROVE] Remove settings from apps-engine service (#27996)
c27deef
Merge remote-tracking branch 'origin/improve/apps-to-service' into ch…
d-gubert b3d989d
Make communicators start outside ee
thassiov f51041c
Merge branch 'chore/move-apps-to-ee' into chore/remove-communicator-r…
thassiov 49f745b
Merge branch 'chore/move-apps-to-ee' into chore/services-to-meteor-calls
thassiov 3c9214d
Merge pull request #28026 from RocketChat/chore/remove-communicator-r…
0dc2253
feat: unify startup in a single file
8a4cc83
Move meteor dependent methods to their services
thassiov a759158
Merge pull request #27920 from RocketChat/chore/services-to-meteor-calls
0b39212
Merge pull request #27678 from RocketChat/chore/move-apps-to-ee
df8e26c
Merge branch 'develop' into improve/apps-to-service
c45bc04
refactor: change imports to core-services
54dc4c3
fix: communication startup import
5426136
Merge branch 'develop' into improve/apps-to-service
43e709b
feat: extract closeRoom to livechat service
8a622bb
fix: move import from sdk to core-services package
3294fe3
fix: change params of MessageService
85f4cd9
Merge branch 'develop' into improve/apps-to-service
thassiov c7a3399
Merge branch 'develop' into improve/apps-to-service
thassiov 62df8c7
Merge branch 'develop' into improve/apps-to-service
thassiov 8b24d6a
Merge remote-tracking branch 'origin/develop' into improve/apps-to-se…
d9e9b7a
fix: remove duplicated code
829f744
Merge branch 'develop' into improve/apps-to-service
cdf8f8e
fix: remove old merge symbols
4f25b36
fix: solve typing issues and use orchestrator as service
aada98b
fix: remove old settings
8fb3449
Update apps-engine in all packages
d-gubert 40e1ac8
remove enabled prop from getAppsStatistics
33fbe0b
fix: update apps.engine services
ded466a
Move orchestrator back
d-gubert fd12db6
fix imports
1910bdc
fix startup files
2f2481e
fix cron file
6cf5bdf
fix imports and orchestrator usage
e5f968c
use orchestrator as service
5edda46
fix AppsEngineService
54da4e4
Merge branch 'develop' into improve/apps-to-service
d3ddacc
fix: load apps engine if isn't loaded
34392a7
fix: export communication startup
efd4a38
fix models import
c38ede5
Merge branch 'develop' into improve/apps-to-service
edb0847
Merge remote-tracking branch 'origin/develop' into improve/apps-to-se…
d04ee9f
yarn.lock
c513521
await to initialize settings
584a727
remove fetch service
5ef53b5
yarn lock
ffc4ca7
move bridges and converters back to outside ee
d300c7e
change update params
1d4fc4c
await for promises
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| import express from 'express'; | ||
| import { WebApp } from 'meteor/webapp'; | ||
| import { AppsApiService } from '@rocket.chat/core-services'; | ||
|
|
||
| import { authenticationMiddleware } from '../../../api/server/middlewares/authentication'; | ||
|
|
||
| const apiServer = express(); | ||
|
|
||
| apiServer.disable('x-powered-by'); | ||
|
|
||
| WebApp.connectHandlers.use(apiServer); | ||
|
|
||
| class AppsApiRoutes { | ||
| constructor() { | ||
| const rejectUnauthorized = false; | ||
| apiServer.use('/api/apps/private/:appId/:hash', authenticationMiddleware({ rejectUnauthorized }), AppsApiService.handlePrivateRequest); | ||
| apiServer.use('/api/apps/public/:appId', authenticationMiddleware({ rejectUnauthorized }), AppsApiService.handlePublicRequest); | ||
Check failureCode scanning / CodeQL Missing rate limiting
This route handler performs [authorization](1), but is not rate-limited.
This route handler performs [authorization](2), but is not rate-limited.
|
||
| } | ||
| } | ||
|
|
||
| export const AppsApiRoutesInstance = new AppsApiRoutes(); | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check failure
Code scanning / CodeQL
Missing rate limiting