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

N21-1507 copy ctl tools #4674

Closed
wants to merge 30 commits into from
Closed

N21-1507 copy ctl tools #4674

wants to merge 30 commits into from

Conversation

IgorCapCoder
Copy link
Contributor

@IgorCapCoder IgorCapCoder commented Jan 3, 2024

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

  • DEV: If api was changed - generate-client:server was executed in vue frontend and changes were tested and put in a PR with the same branch name.
  • QA: In addition to review, the code has been manually tested (if manual testing is possible)
  • All points were discussed with the ticket creator, support-team or product owner. The code upholds all quality guidelines from the PR-template.

Notice: Please remove the WIP label if the PR is ready to review, otherwise nobody will review it.

@IgorCapCoder IgorCapCoder added the WIP This feature branch is in progress, do not merge into master. label Jan 3, 2024
@IgorCapCoder IgorCapCoder removed the WIP This feature branch is in progress, do not merge into master. label Jan 4, 2024
);

if (tool) {
const copiedTool: ContextExternalTool = await this.contextExternalToolService.copyContextExternalTool(
Copy link
Contributor

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(
Copy link
Contributor

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

Copy link

sonarqubecloud bot commented Jan 8, 2024

Quality Gate Passed Quality Gate passed

The SonarCloud Quality Gate passed, but some issues were introduced.

1 New issue
0 Security Hotspots
100.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link
Contributor

@arnegns arnegns left a 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

@IgorCapCoder IgorCapCoder deleted the N21-1507-copy-ctl-tools branch January 8, 2024 09:44
@IgorCapCoder IgorCapCoder restored the N21-1507-copy-ctl-tools branch January 8, 2024 09:52
@IgorCapCoder IgorCapCoder deleted the N21-1507-copy-ctl-tools branch January 8, 2024 09:55
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.

3 participants