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

BC-4256 integration tldraw #4277

Closed
wants to merge 90 commits into from
Closed

Conversation

blazejpass
Copy link
Contributor

@blazejpass blazejpass commented Jul 28, 2023

Description

Integration of tldraw client and tldraw server

Links to Tickets or other pull requests

https://ticketsystem.dbildungscloud.de/browse/BC-4256
hpi-schul-cloud/nuxt-client#2691
hpi-schul-cloud/dof_app_deploy#586

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.

@@ -7,7 +7,7 @@ jobs:
clean:
permissions:
contents: read
uses: hpi-schul-cloud/dof_app_deploy/.github/workflows/clean_workflow.yml@main
uses: hpi-schul-cloud/dof_app_deploy/.github/workflows/clean_workflow.yml@BC-4256-Integration-tldraw
Copy link
Member

Choose a reason for hiding this comment

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

Please set it beck to main

@@ -138,7 +138,7 @@ jobs:
needs:
- build_and_push
- branch_meta
uses: hpi-schul-cloud/dof_app_deploy/.github/workflows/deploy.yml@main
uses: hpi-schul-cloud/dof_app_deploy/.github/workflows/deploy.yml@BC-4256-Integration-tldraw
Copy link
Member

Choose a reason for hiding this comment

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

Please set it beck to main

@@ -4,7 +4,7 @@ sonar.sources=.
sonar.tests=.
sonar.test.inclusions=**/*.spec.ts
sonar.exclusions=**/*.js,jest.config.ts,globalSetup.ts,globalTeardown.ts,**/*.app.ts,**/seed-data/*.ts
sonar.coverage.exclusions=**/board-management.uc.ts,**/*.module.ts,**/*.factory.ts
sonar.coverage.exclusions=**/modules/tldraw/**/*.ts,**/board-management.uc.ts,**/*.module.ts,**/*.factory.ts
Copy link
Member

Choose a reason for hiding this comment

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

Why is it exluded from code coverage?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We will change whole directory, for specific files. As me and Dawid Wasik tried, we could't do tests for every line in those files and as i understand sonar requires 100% coverage

Copy link
Member

Choose a reason for hiding this comment

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

Yes it's required and not optional and you should not try to slip out of it.
@CeEv @Metauriel cann you say somthing about it?

@@ -4,7 +4,7 @@ sonar.sources=.
sonar.tests=.
sonar.test.inclusions=**/*.spec.ts
sonar.exclusions=**/*.js,jest.config.ts,globalSetup.ts,globalTeardown.ts,**/*.app.ts,**/seed-data/*.ts
sonar.coverage.exclusions=**/board-management.uc.ts,**/*.module.ts,**/*.factory.ts
sonar.coverage.exclusions=**/modules/tldraw/gateway/tldraw.gateway.ts,**/modules/tldraw/utils/utils.ts,**/board-management.uc.ts,**/*.module.ts,**/*.factory.ts
Copy link
Member

Choose a reason for hiding this comment

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

Please don't add not tested code to the nest server

Copy link
Contributor

Choose a reason for hiding this comment

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

you can write a mock for the external dependencies these files are dealing with, to make it easier to test them. see the ldap.service.ts for an example.

And thanks for reminding me that the board-management is still excluded here, that has to be removed as well (it has been excluded when sonarcloud was first activated, since its not used in production anyway, but it still needs to go)

@sonarcloud
Copy link

sonarcloud bot commented Aug 18, 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 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

warning The version of Java (11.0.20) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17.
Read more here

Błażej Szczepanowski and others added 3 commits August 24, 2023 20:05
@blazejpass blazejpass closed this Aug 28, 2023
@blazejpass blazejpass reopened this Aug 28, 2023
@blazejpass blazejpass closed this Aug 28, 2023
@blazejpass blazejpass deleted the BC-4256-Integration-tldraw branch August 28, 2023 11:31
@blazejpass blazejpass restored the BC-4256-Integration-tldraw branch August 28, 2023 11:31
@blazejpass blazejpass deleted the BC-4256-Integration-tldraw branch August 28, 2023 13:33
@blazejpass blazejpass removed the WIP This feature branch is in progress, do not merge into master. label Oct 10, 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.

5 participants