-
-
Notifications
You must be signed in to change notification settings - Fork 0
koa migration for server-core, server, taskserver and instance server #7923
Conversation
packages/server-core/src/analytics/analytics/analytics.class.ts
Outdated
Show resolved
Hide resolved
packages/server-core/src/setting/redis-setting/redis-setting.class.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR looks good from my side, though it would be good to have @barankyle take a 2nd look of it.
packages/server-core/src/media/file-browser/file-browser.service.ts
Outdated
Show resolved
Hide resolved
@@ -1,7 +1,8 @@ | |||
import { Params } from '@feathersjs/feathers' | |||
import { bodyParser, koa } from '@feathersjs/koa' | |||
import Multer from '@koa/multer' | |||
import { Route53RecoveryControlConfig } from 'aws-sdk' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the aws-sdk upgrade PR gets merged in before this, make sure this is changed to use the new SDK.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will do if needed
packages/server-core/src/user/accept-invite/accept-invite.service.ts
Outdated
Show resolved
Hide resolved
@barankyle , i fixed the issues raised and pushed the code |
for the merge conflict, i had to do that to ensure no build error, if its fine without the changes, ill be happy to change it back |
@barankyle , added back koa-mount and multer |
@barankyle , reverted to use require, do i make any specific changes there? |
There's a couple things that I'm going to push up to this branch. |
b097a12
to
9e95de6
Compare
Pushed those, I think that will work. I rebased it around the latest dev, please double-check that I didn't cause any problems when resolving merge conflicts. |
thanks a lot, can you tell me, why we do |
and is there a more automatic way like prettier, which works for package.json files? i did go over those files quite a lot of times, missing ascending order because i was looking over them manually doesnt sound like the most efficient way, is there a better way i am missing? |
When I tried to run that file, it complained that Koa was not a constructor. I looked at the structure of Koa and saw there was a function koa on it, so I tried to call that, and it seemed to work.
For some reason I thought prettier did cover package.json files, but I see it does not (or at least we don't have it configured to handle them). I believe if you run |
There was one last minor issue I fixed, the usage of multer in upload-asset.service.ts had had a file limit of 1 added to it, but that service shouldn't have a limit; there are some situations, like avatar upload, where we upload multiple files at the same time. It's a little confusing since other file upload services have that 1-file limit, but it's intentionally not the same. It all looks good now. |
yay |
Summary
migrated server-core to utilize koa over express within feathersjs
actively changed services
file browser
upload asset
scene
for other services, the declaration was changed to use application definition from feathersjs/koa over featherjs/express
package.json is updated to include koa packages as well
References
completes #7802
Checklist
QA Steps
List any additional steps required to QA the changes of this PR, as well as any supplemental images or videos.