-
Notifications
You must be signed in to change notification settings - Fork 17
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
N21-1507 copy ctl tools #4674
N21-1507 copy ctl tools #4674
Conversation
…1-1507-copy-ctl-tools # Conflicts: # apps/server/src/modules/learnroom/service/course-copy.service.ts
apps/server/src/modules/board/service/board-do-copy-service/board-do-copy.service.ts
Outdated
Show resolved
Hide resolved
apps/server/src/modules/board/service/board-do-copy-service/recursive-copy.visitor.spec.ts
Outdated
Show resolved
Hide resolved
apps/server/src/modules/board/service/board-do-copy-service/recursive-copy.visitor.ts
Outdated
Show resolved
Hide resolved
); | ||
|
||
if (tool) { | ||
const copiedTool: ContextExternalTool = await this.contextExternalToolService.copyContextExternalTool( |
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.
The copy function seems to be really specific. We could think about to move the copy function into a own service which exports a functions which does the whole loading, copying and returns the new id
@@ -76,4 +77,39 @@ export class ContextExternalToolService { | |||
throw new RestrictedContextMismatchLoggable(externalTool.name, contextExternalTool.contextRef.type); | |||
} | |||
} | |||
|
|||
public async copyContextExternalTool( |
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.
I dont know how much tools we would have in a course or on a board, but we should test a copying a bunch of it
apps/server/src/modules/tool/context-external-tool/service/context-external-tool.service.ts
Outdated
Show resolved
Hide resolved
apps/server/src/modules/tool/context-external-tool/service/tool-version-service.ts
Outdated
Show resolved
Hide resolved
apps/server/src/modules/tool/context-external-tool/service/tool-version-service.ts
Show resolved
Hide resolved
...ver/src/modules/tool/school-external-tool/service/school-external-tool-validation.service.ts
Show resolved
Hide resolved
apps/server/src/modules/learnroom/service/course-copy.service.spec.ts
Outdated
Show resolved
Hide resolved
apps/server/src/modules/learnroom/service/course-copy.service.ts
Outdated
Show resolved
Hide resolved
Quality Gate passedThe SonarCloud Quality Gate passed, but some issues were introduced. 1 New issue |
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.
Approved but couldnt be tested on branch
Description
when copying a course the ctls are now also copied in the tolls tab as well as in the columnboard. When a custom paramter of a copied tool is protected, the value is not copied and the tool is in an incomplete status. With the addition of yet another status for tools, the validation logic is also being updated.
Links to Tickets or other pull requests
https://ticketsystem.dbildungscloud.de/browse/N21-1507
hpi-schul-cloud/nuxt-client#2979
hpi-schul-cloud/dof_app_deploy#748
Changes
Datasecurity
Deployment
New Repos, NPM pakages or vendor scripts
Approval for review
generate-client:server
was executed in vue frontend and changes were tested and put in a PR with the same branch name.