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

Spsh-1574: Fortschrittsanzeige & Bulk-Transaktionen #844

Open
wants to merge 40 commits into
base: main
Choose a base branch
from
Open

Conversation

phaelcg
Copy link
Contributor

@phaelcg phaelcg commented Dec 16, 2024

Description

  • Implemented create many for the import-data-repository
  • Added totalDataItemImported to the importvorgang-entity
  • refactored import-workflow
  • refactored import-event-handler to import each 25 data-items
  • Added totalDataItemImported to the response status
  • Unit tests & integration tests

Links to Tickets or other pull requests

https://ticketsystem.dbildungscloud.de/browse/SPSH-1574

Changes

Datasecurity

Deployment

New Repos, NPM pakages or vendor scripts

Approval for review

  • 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.

phaelcg and others added 30 commits November 27, 2024 13:06
…tory of imports and import transactions updates.
…ems, added totalDataItemImported in the importvorgang entity and refactored import-workflow and the import event handler.
@phaelcg phaelcg marked this pull request as ready for review December 18, 2024 08:26
src/modules/import/domain/import-event-handler.ts Outdated Show resolved Hide resolved
src/modules/import/domain/import-event-handler.ts Outdated Show resolved Hide resolved
src/modules/import/domain/import-event-handler.ts Outdated Show resolved Hide resolved
Comment on lines 142 to 153
throw new ImportDomainError(
`The creation of person with personenkontexte for the import transaction:${importVorgang.id} failed`,
importVorgang.id,
);
}

if (!savedPersonWithPersonenkontext.person.newPassword) {
return this.logger.error(
`Person with ID ${savedPersonWithPersonenkontext.person.id} has no start password!`,
this.logger.error(`Person with ID ${savedPersonWithPersonenkontext.person.id} has no start password!`);

throw new ImportDomainError(
`The creation for a password for the person with ID ${savedPersonWithPersonenkontext.person.id} for the import transaction:${importVorgang.id} has failed`,
importVorgang.id,
Copy link
Contributor

Choose a reason for hiding this comment

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

If these errors occur, they aren't handled at all as far as I can see. They will just be logged and the import will never finish?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Great observation, i set the status to FAILED, when the FE requests the import status it will see that the import has failed

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.

4 participants