-
Notifications
You must be signed in to change notification settings - Fork 23
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(sd): add process steps for sd creation #1189
Conversation
Quality Gate failedFailed conditions |
64c6989
to
25f04c3
Compare
{ | ||
con.SelfDescriptionMessage = data.Message!; | ||
con.DateLastChanged = DateTimeOffset.UtcNow; | ||
}); | ||
} | ||
|
||
var processData = await connectorsRepository.GetProcessDataForConnectorId(data.ExternalId); | ||
if (processData == null) |
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.
this check processData == null guarantees that the subsequent call to CreateManualProcessData will throw NorFoundException. I suspect this is not intended ;-)
} | ||
|
||
var processData = await companyRepository.GetProcessDataForCompanyIdId(data.ExternalId); | ||
if (processData == null) |
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.
same here - checking processData == null seems to be incorrect.
b90b40c
to
c7b1da6
Compare
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.
In my previous review I mention 2 null checks that seem to be incorrect. I've fixed those but apparently this is not covered by unit-tests. Can you please double check and add respective test-code for those null-checks?
Please be aware that I did rebase and recreate the migration.
if (context.ProcessStepTypeId.HasValue) | ||
{ | ||
context.ProcessRepositories.GetInstance<IProcessStepRepository<TProcessTypeId, TProcessStepTypeId>>().AttachAndModifyProcessSteps( | ||
ModifyStepStatusRange(context.ProcessSteps.Where(step => step.ProcessStepTypeId.Equals(context.ProcessStepTypeId.Value)), ProcessStepStatusId.FAILED, message)); |
Check warning
Code scanning / CodeQL
Dereferenced variable may be null Warning
context.ProcessStepTypeId
3b7db37
to
8eedda1
Compare
tests/externalsystems/SdFactory.Library.Tests/SdFactoryBusinessLogicTests.cs
Fixed
Show fixed
Hide fixed
tests/externalsystems/SdFactory.Library.Tests/SdFactoryBusinessLogicTests.cs
Fixed
Show fixed
Hide fixed
tests/externalsystems/SdFactory.Library.Tests/SdFactoryBusinessLogicTests.cs
Fixed
Show fixed
Hide fixed
Quality Gate failedFailed conditions |
* feat(sd): add process steps for sd creation + retrigger * update framework minor version * add and adjust unit tests Refs: #1182 --------- Co-authored-by: Norbert Truchsess <[email protected]>
* feat(sd): add process steps for sd creation + retrigger * update framework minor version * add and adjust unit tests Refs: #1182 --------- Co-authored-by: Norbert Truchsess <[email protected]>
Description
Why
To be able to display the current progress of the sd document recreation a await step has been added for the self description creation process
Issue
Refs: #1182
Checklist