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

feat: or-2031 registreer inschrijving when adding kbo verenigingen #633

Merged
merged 3 commits into from
Mar 5, 2024

Conversation

koenmetsu
Copy link
Member

No description provided.

@koenmetsu koenmetsu requested a review from a team as a code owner February 9, 2024 14:27
@koenmetsu
Copy link
Member Author

to be deployed after json-ld deploy

var duplicateResult = await CheckForDuplicate(command.KboNummer);

if (duplicateResult.IsFailure()) return duplicateResult;

var vereniging = await _magdaGeefVerenigingService.GeefVereniging(command.KboNummer, message.Metadata, cancellationToken);
var registreerInschrijvingResult = await RegistreerInschrijving(command.KboNummer, message.Metadata, cancellationToken);
Copy link
Contributor

Choose a reason for hiding this comment

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

Why trycatch -> return Result -> throw new?

Copy link
Member Author

Choose a reason for hiding this comment

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

todo: let private method RegistreerInschrijving throw.


return await RegistreerVereniging(vereniging, message.Metadata, cancellationToken);
if (geefVerenigingResult.IsFailure()) throw new GeenGeldigeVerenigingInKbo();
Copy link
Contributor

Choose a reason for hiding this comment

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

What if server stops on this line?


var response = _mapper.Map(gebeurtenissen);

return Ok(response);
Copy link
Member Author

Choose a reason for hiding this comment

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

Maybe return object

Copy link

sonarqubecloud bot commented Mar 4, 2024

@koenmetsu koenmetsu merged commit 43984cb into main Mar 5, 2024
7 checks passed
@koenmetsu koenmetsu deleted the or-2031-registreer branch March 5, 2024 14:33
@talboomerik
Copy link
Contributor

🎉 This PR is included in version 8.79.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants