-
Notifications
You must be signed in to change notification settings - Fork 4
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
[#IC-303] Add Message View to User Data Extract and Delete #186
[#IC-303] Add Message View to User Data Extract and Delete #186
Conversation
Example of PR titles that include pivotal stories:
Generated by 🚫 dangerJS |
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.
perfect, thanks guys!
I'm not sure if the "extract" part is strictly required. |
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.
Just few comments
ExtractUserDataActivity/handler.ts
Outdated
messagesView: pipe( | ||
messageViewModel.getQueryIterator({ | ||
parameters: [ | ||
{ | ||
name: "@fiscalCode", | ||
value: fiscalCode | ||
} | ||
], | ||
query: `SELECT * FROM m WHERE m.fiscalCode = @fiscalCode | ||
ORDER BY m.fiscalCode, m.id DESC` | ||
}), | ||
TE.of, | ||
TE.chain(iterable => | ||
TE.tryCatch( | ||
() => asyncIterableToArray(iterable), | ||
toCosmosErrorResponse | ||
) | ||
), |
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.
asyncIterableToArray
or asyncIteratorToArray
?
expect(E.isRight(result)).toBe(true); | ||
}); | ||
|
||
it("should stop if there is an error while looking for a message View (404)", async () => { |
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.
Add
expect(mockDeleteMessageView).not.toHaveBeenCalled();
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
List of Changes
Motivation and Context
This PR is needed by legal behaviour in order to manage new
message-view
collection, introduced by pagination.How Has This Been Tested?
Unit tests
Screenshots (if appropriate):
Types of changes
Checklist: