-
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
BC-5522-Implementation of an API for deleting data #4533
Conversation
apps/server/src/modules/deletion/controller/dto/deletion-request.body.params.ts
Outdated
Show resolved
Hide resolved
apps/server/src/modules/deletion/controller/dto/deletion-request.body.params.ts
Show resolved
Hide resolved
apps/server/src/modules/deletion/controller/dto/deletion-request-log.response.ts
Outdated
Show resolved
Hide resolved
apps/server/src/modules/deletion/controller/dto/deletion-execution.params.ts
Outdated
Show resolved
Hide resolved
apps/server/src/modules/deletion/uc/builder/deletion-request-log.builder.ts
Outdated
Show resolved
Hide resolved
apps/server/src/modules/deletion/uc/deletion-request.uc.spec.ts
Outdated
Show resolved
Hide resolved
apps/server/src/modules/deletion/controller/deletion-requests.controller.ts
Outdated
Show resolved
Hide resolved
apps/server/src/modules/deletion/controller/deletion-requests.controller.ts
Outdated
Show resolved
Hide resolved
apps/server/src/modules/deletion/controller/deletion-executions.controller.ts
Outdated
Show resolved
Hide resolved
apps/server/src/modules/deletion/controller/deletion-executions.controller.ts
Outdated
Show resolved
Hide resolved
…-schul-cloud/schulcloud-server into BC-5522-impl-of-deletion-api
Code is updated.
This reverts commit b2fa12f.
This reverts commit d589435.
…-schul-cloud/schulcloud-server into BC-5522-impl-of-deletion-api
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.
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
template: admin-api-server-deployment.yml.j2 | ||
|
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.
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
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 |
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.
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
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 |
Kudos, SonarCloud Quality Gate passed! |
* 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]>
Description
Links to Tickets or other pull requests
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.