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

Fix Import Cancellation Flow #4014

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

mikaelweave
Copy link
Contributor

Description

Describe the changes in this PR.

Related issues

Addresses [issue #].

Testing

Describe how this change was tested.

FHIR Team Checklist

  • Update the title of the PR to be succinct and less than 65 characters
  • Add a milestone to the PR for the sprint that it is merged (i.e. add S47)
  • Tag the PR with the type of update: Bug, Build, Dependencies, Enhancement, New-Feature or Documentation
  • Tag the PR with Open source, Azure API for FHIR (CosmosDB or common code) or Azure Healthcare APIs (SQL or common code) to specify where this change is intended to be released.
  • Tag the PR with Schema Version backward compatible or Schema Version backward incompatible or Schema Version unchanged if this adds or updates Sql script which is/is not backward compatible with the code.
  • CI is green before merge Build Status
  • Review squash-merge requirements

Semver Change (docs)

Patch|Skip|Feature|Breaking (reason)

@mikaelweave mikaelweave changed the title added initial split out for analysis Fix Import Cancellation Flow Aug 12, 2024
@@ -31,12 +31,12 @@
public class GetImportRequestHandlerTests
{
private readonly IMediator _mediator;
private IQueueClient _queueClient = Substitute.For<IQueueClient>();
private IFhirOperationDataStore _fhirOperationDataStore = Substitute.For<IFhirOperationDataStore>();

Check notice

Code scanning / CodeQL

Missed 'readonly' opportunity Note

Field '_fhirOperationDataStore' can be 'readonly'.
Comment on lines +139 to +146
if (record.FailureDetails == null)
{
record.FailureDetails = new JobFailureDetails("Processing job had no results", HttpStatusCode.InternalServerError);
}
else
{
record.FailureDetails = new JobFailureDetails(record.FailureDetails.FailureReason + "\r\nProcessing job had no results", HttpStatusCode.InternalServerError);
}

Check notice

Code scanning / CodeQL

Missed ternary opportunity Note

Both branches of this 'if' statement write to the same variable - consider using '?' to express intent better.
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.

1 participant