Skip to content
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

Module versions #1802

Draft
wants to merge 39 commits into
base: development
Choose a base branch
from
Draft

Module versions #1802

wants to merge 39 commits into from

Conversation

niekcandaele
Copy link
Collaborator

No description provided.

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 64 out of 79 changed files in this pull request and generated 1 suggestion.

Files not reviewed (15)
  • packages/app-api/package.json: Language not supported
  • packages/app-api/src/domainInit.ts: Evaluated as low risk
  • packages/app-api/src/controllers/tests/GameServerController.integration.test.ts: Evaluated as low risk
  • packages/app-api/src/controllers/GameServerController.ts: Evaluated as low risk
  • packages/app-api/src/controllers/tests/modifyBuiltinModules.integration.test.ts: Evaluated as low risk
  • packages/app-api/src/db/gameserver.ts: Evaluated as low risk
  • packages/app-api/src/controllers/tests/CronJobController.integration.test.ts: Evaluated as low risk
  • packages/app-api/src/controllers/tests/ModuleConfig.integration.test.ts: Evaluated as low risk
  • packages/app-api/src/controllers/tests/CommandController.integration.test.ts: Evaluated as low risk
  • packages/app-api/src/db/role.ts: Evaluated as low risk
  • packages/app-api/src/controllers/tests/ModuleAssignments.integration.test.ts: Evaluated as low risk
  • deploy/compose/docker-compose.yml: Evaluated as low risk
  • packages/app-api/src/controllers/tests/HookController.integration.test.ts: Evaluated as low risk
  • packages/app-api/src/controllers/Module/modules.ts: Evaluated as low risk
  • packages/app-api/src/controllers/tests/ModuleController.integration.test.ts: Evaluated as low risk
Comments skipped due to low confidence (5)

packages/app-api/src/controllers/Module/installations.ts:64

  • [nitpick] The method name getInstalledModules is misleading. It should be renamed to searchModuleInstallations to better reflect its functionality.
async getInstalledModules(@Req() req: AuthenticatedRequest, @Res() res: Response, @Body() query: ModuleInstallationSearchInputDTO) {

packages/app-api/src/controllers/Module/versions.ts:157

  • The description field in the BuiltinModule constructor is not always present in the version object.
const output = new BuiltinModule(mod.name, version.description, version.tag, version.configSchema, version.uiSchema);

packages/app-api/src/controllers/Module/versions.ts:136

  • The params parameter is not used in the tagVersion function.
async tagVersion(@Req() req: AuthenticatedRequest, @Params() params: ParamId, @Body() data: ModuleVersionCreateAPIDTO) {

packages/app-api/src/controllers/Module/versions.ts:136

  • Ensure that the tag field in ModuleVersionCreateAPIDTO is validated properly.
async tagVersion(@Req() req: AuthenticatedRequest, @Params() params: ParamId, @Body() data: ModuleVersionCreateAPIDTO) {

packages/app-api/src/db/module.ts:455

  • Ensure that InstallModuleDTO is correctly validated before being used.
async installModule(installDto: InstallModuleDTO) {

packages/app-api/src/controllers/Module/versions.ts Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants