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

[#IC-349] Add fiscalCode to message_status in CreateMessage process #195

Merged

Conversation

fabriziopapi
Copy link
Contributor

Currently, the message_status collection do not contain the message owner fiscalCode. This will reduce the performace of querying the message from its status (with messageId alone, the query on messages collection is 8 times more RU consuming).

List of Changes

add fiscalCode on create message process
add fiscalCode on failed process

Motivation and Context

We need to retrieve the message from its status in order to keep aligned the view used by paginated list messages and search messages operations.

How Has This Been Tested?

unit tests

Screenshots (if appropriate):

Types of changes

  • Chore (nothing changes by a user perspective)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

@pagopa-github-bot
Copy link
Contributor

pagopa-github-bot commented Mar 14, 2022

Warnings
⚠️ This PR changes a total of 353 LOCs, that is more than a reasonable size of 250. Consider splitting the pull request into smaller ones.
⚠️ Please include a Pivotal story at the beginning of the PR title (see below).

Example of PR titles that include pivotal stories:

  • single story: [#123456] my PR title
  • multiple stories: [#123456,#123457,#123458] my PR title

Generated by 🚫 dangerJS against 46c1d0b

@fabriziopapi fabriziopapi marked this pull request as ready for review March 14, 2022 18:37
@fabriziopapi fabriziopapi requested a review from a team as a code owner March 14, 2022 18:37
OnFailedProcessMessage/handler.ts Outdated Show resolved Hide resolved
OnFailedProcessMessage/handler.ts Outdated Show resolved Hide resolved
OnFailedProcessMessage/handler.ts Outdated Show resolved Hide resolved
OnFailedProcessMessage/handler.ts Outdated Show resolved Hide resolved
OnFailedProcessMessage/__tests__/handler.test.ts Outdated Show resolved Hide resolved
OnFailedProcessMessage/__tests__/handler.test.ts Outdated Show resolved Hide resolved
OnFailedProcessMessage/__tests__/handler.test.ts Outdated Show resolved Hide resolved
fabriziopapi and others added 6 commits March 17, 2022 12:24
Co-authored-by: Daniele Manni <BurnedMarshal@users.noreply.github.com>
Co-authored-by: Daniele Manni <BurnedMarshal@users.noreply.github.com>
(-) Removed useless decode
(+) replaced toUnion with getOrElse
(+) moved aMessageStatus to mock to reduce duplication
Copy link
Contributor

@BurnedMarshal BurnedMarshal left a comment

Choose a reason for hiding this comment

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

LGTM, just some other minor changes

OnFailedProcessMessage/handler.ts Outdated Show resolved Hide resolved
__mocks__/mocks.ts Outdated Show resolved Hide resolved
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@fabriziopapi fabriziopapi merged commit 77c231b into master Mar 21, 2022
@fabriziopapi fabriziopapi deleted the IC-349--add-fiscalcode-to-messagestatus-in-createmessage branch March 21, 2022 14:06
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.

4 participants