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-1494 Contextual info outdated CTL #4572

Merged
merged 28 commits into from
Dec 4, 2023
Merged

Conversation

mrikallab
Copy link
Contributor

@mrikallab mrikallab commented Nov 23, 2023

Description

This PR handles the generation of infos about ctl tools in the tool board element and in courses/rooms. Specific outdated message will be shown for teacher and students.

Links to Tickets or other pull requests

https://ticketsystem.dbildungscloud.de/browse/N21-1494
hpi-schul-cloud/nuxt-client#2931

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.

isOutdatedOnScopeContext: false,
isOutdatedOnScopeSchool: false,
});

try {
Copy link
Contributor

Choose a reason for hiding this comment

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

You could try to use a Boolean in the validation functions if it's easy possible

isOutdatedOnScopeSchool: true,
});

const latestConfigurationStatus: ToolConfigurationStatus = new ToolConfigurationStatus({
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you really need two instances ? I could imagine a static function or class which you could use here

# Conflicts:
#	apps/server/src/modules/tool/context-external-tool/controller/api-test/tool-reference.api.spec.ts
#	apps/server/src/modules/tool/context-external-tool/service/tool-reference.service.ts
#	apps/server/src/modules/tool/context-external-tool/uc/tool-reference.uc.spec.ts
#	apps/server/src/modules/tool/tool-launch/service/tool-launch.service.ts
# Conflicts:
#	apps/server/src/modules/tool/common/service/common-tool.service.spec.ts
#	apps/server/src/modules/tool/common/service/common-tool.service.ts
#	apps/server/src/shared/testing/factory/index.ts
#	backup/setup/external-tools.json
#	backup/setup/school-external-tools.json
Copy link

sonarqubecloud bot commented Dec 4, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@mrikallab mrikallab merged commit ece3f0d into main Dec 4, 2023
48 of 49 checks passed
@mrikallab mrikallab deleted the N21-1494-info-outdated-ctl-tools branch December 4, 2023 13:49
bergatco pushed a commit that referenced this pull request Dec 6, 2023
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