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-5522-Implementation of an API for deleting data #4533

Merged
merged 125 commits into from
Nov 30, 2023

Conversation

sszafGCA
Copy link
Contributor

@sszafGCA sszafGCA commented Nov 8, 2023

Description

Links to Tickets or other pull requests

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.

package.json Outdated Show resolved Hide resolved
@CeEv CeEv dismissed stale reviews from mamutmk5, SevenWaysDP, and Metauriel November 29, 2023 09:49

Code is updated.

Copy link
Member

@mamutmk5 mamutmk5 left a comment

Choose a reason for hiding this comment

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

We must add an condition to the ansible roles for the Delition api.
Name of the condition is WITH_API_ADMIN and to se how to set is lock at this PR
hpi-schul-cloud/dof_app_deploy#716

Comment on lines 164 to 165
template: admin-api-server-deployment.yml.j2

Copy link
Member

Choose a reason for hiding this comment

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

We must add an condition to the ansible Task that only if we want it deploy on ref and prod it will be deploy.
Condition name ist WITH_API_ADMIN

Suggested change
template: admin-api-server-deployment.yml.j2
template: admin-api-server-deployment.yml.j2
when: WITH_API_ADMIN is defined and WITH_API_ADMIN|boo

kubernetes.core.k8s:
kubeconfig: ~/.kube/config
namespace: "{{ NAMESPACE }}"
template: admin-api-server-svc.yml.j2
Copy link
Member

Choose a reason for hiding this comment

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

We must add an condition to the ansible Task that only if we want it deploy on ref and prod it will be deploy.
Condition name ist WITH_API_ADMIN

Suggested change
template: admin-api-server-svc.yml.j2
template: admin-api-server-svc.yml.j2
when: WITH_API_ADMIN is defined and WITH_API_ADMIN|boo

Copy link

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
2.1% 2.1% Duplication

@WojciechGrancow WojciechGrancow merged commit e3a1aca into main Nov 30, 2023
48 of 49 checks passed
@WojciechGrancow WojciechGrancow deleted the BC-5522-impl-of-deletion-api branch November 30, 2023 11:23
bergatco pushed a commit that referenced this pull request Dec 6, 2023
* endpoints preparation

* auth startegy impl

* api impl

* some changes

* some fixes need in KNL module

* changes in uc and register entities

* Pr fixes and minor changes

* rename file

* some fixes

* add exposing admin API port from the api-svc

* add server test module + delete FileEntity from allEntities

* change module

* admin api server module test impl

* add some tests

* add some test for API

* add some test

* x-api-key.strategy tests

* x-api-key-strategy-tests impl

* remove test for api-setup-helper, remove unused imports

* remove test file

* add info for the Admin API port

* add test for controller

* add test for deletionRequestResponse

* remove not needed parameter from constructor

* add test for deletionRequestLogResponse

* add test for executionParams and requestbodyParams

* replace hard-coded Admin API server port value with the one taken from the var

* change creation of API method location

* change default json

* fix import in server module

* fixes soma issues

* fixes after review

* add admin api object

* default json chnages

* Revert "default json chnages"

This reverts commit 6764f95.

* Revert "add admin api object"

This reverts commit aba6e1a.

* Revert "fixes after review"

This reverts commit 4fc4c70.

* Revert "fixes soma issues"

This reverts commit 3b58d13.

* fixes after review

* Revert "small fixes"

This reverts commit ccf0aef, reversing
changes made to 011b0f7.

* Revert "Revert "small fixes""

This reverts commit 30ab3f4.

* default ADMIN_API_KEY

* fix some imports

* small change in x-api-key.strategy

* Update apps/server/src/modules/deletion/uc/builder/deletion-log-statistic.builder.spec.ts

Co-authored-by: Bartosz Nowicki <[email protected]>

* change default.schema.json

* new changes to default.schema.json

* fix after review

* add logger for error in deeltionRequestUC

* fix problem with fileentity

* fix imports

* add logger to test in uc of deletionModule

* change module config

* hard-coded Admin API server port after the discussion with Paul

* fixes bug during deletion uders data from lessons

* fix pipeline

* fix pipeline #2

* fix pipeline

* fix lint

* fix modules imports

* fix providers in exports in deletion module

* split deletion module and  deletion-api.module

* move setup sessions to server config

* try to fix test coverage

* Revert "try to fix test coverage"

This reverts commit e336196.

* Revert "move setup sessions to server config"

This reverts commit 86b176d.

* remove api key from default.json

* changes to server module

* use timers in tests

* revert last commit

* add testXApiKeyClient

* deployment impl

* add newlines

* add test

* change character length

* fix imports

* fix deployment in PR

* PR fixes part 1

* fix build and push

* fix prettier

* default schema changes

* small fixes

* fix lint

* add registration pins module

* change sorting of code lines

* small fixes after review

* add enabled in admiApiServer

* add process.exit

* test revert enabled (testing purposes)

* Revert "test revert enabled (testing purposes)"

This reverts commit b2fa12f.

* add default for testers

* Revert "add default for testers"

This reverts commit d589435.

* fix with elsson entity

* fix lint

* changes in main.yml

* fix enabled

---------

Co-authored-by: WojciechGrancow <[email protected]>
Co-authored-by: Bartosz Nowicki <[email protected]>
Co-authored-by: WojciechGrancow <[email protected]>
Co-authored-by: Cedric Evers <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants