-
Notifications
You must be signed in to change notification settings - Fork 24
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
Psp 9893 mayan document queue corrections. #4611
Conversation
349a71d
to
c1e88c3
Compare
databaseDocumentQueue.DocProcessRetries += 1; | ||
databaseDocumentQueue.DocProcessEndDt = null; | ||
} | ||
|
||
bool isValid = ValidateQueuedDocument(databaseDocumentQueue, documentQueue); |
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.
the above logic needs to run after this check - to avoid the processDocRetries from being changed.
if (databaseDocumentQueue.DocumentQueueStatusTypeCode == DocumentQueueStatusTypes.PIMS_ERROR.ToString() || databaseDocumentQueue.DocumentQueueStatusTypeCode == DocumentQueueStatusTypes.MAYAN_ERROR.ToString()) | ||
{ | ||
this.Logger.LogDebug("Document Queue {documentQueueId}, previously errored, retrying", documentQueue.DocumentQueueId); | ||
databaseDocumentQueue.DocProcessRetries = ++databaseDocumentQueue.DocProcessRetries ?? 1; |
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.
using += does not work on a null value.
@@ -243,12 +243,6 @@ public async Task<PimsDocumentQueue> Upload(PimsDocumentQueue documentQueue) | |||
UpdateDocumentQueueStatus(databaseDocumentQueue, DocumentQueueStatusTypes.PIMS_ERROR); | |||
return databaseDocumentQueue; | |||
} | |||
else if (relatedDocument?.MayanId != null && relatedDocument?.MayanId > 0) |
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 is incorrect, in addition to having a mayanId, we need to wait for the filedetail to be available.
See CodeCov Report Here: https://app.codecov.io/github/bcgov/psp/pull/4611 |
2 similar comments
See CodeCov Report Here: https://app.codecov.io/github/bcgov/psp/pull/4611 |
See CodeCov Report Here: https://app.codecov.io/github/bcgov/psp/pull/4611 |
@devinleighsmith - this doesn't look right... |
2689904
to
24f274f
Compare
See CodeCov Report Here: https://app.codecov.io/github/bcgov/psp/pull/4611 |
No description provided.