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

[#174850132] Prevent errors on missing notification #82

Merged
merged 3 commits into from
Sep 18, 2020

Conversation

balanza
Copy link
Contributor

@balanza balanza commented Sep 17, 2020

This PR solves a bug for which, when a user request his/her data to be downloaded, if he/she has at leas one message with no related notification (this case is legal) the request fails.

@codecov-commenter
Copy link

codecov-commenter commented Sep 17, 2020

Codecov Report

Merging #82 into master will decrease coverage by 1.52%.
The diff coverage is 81.98%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #82      +/-   ##
==========================================
- Coverage   86.62%   85.10%   -1.53%     
==========================================
  Files          39       41       +2     
  Lines        1249     1363     +114     
  Branches       88      114      +26     
==========================================
+ Hits         1082     1160      +78     
- Misses        166      198      +32     
- Partials        1        5       +4     
Impacted Files Coverage Δ
DeleteUserDataActivity/utils.ts 34.21% <50.00%> (ø)
utils/conversions.ts 81.81% <58.33%> (-6.82%) ⬇️
ExtractUserDataActivity/handler.ts 77.30% <70.96%> (-0.71%) ⬇️
DeleteUserDataActivity/backupAndDelete.ts 92.85% <87.09%> (ø)
GetServices/handler.ts 84.84% <94.73%> (-0.34%) ⬇️
CreateService/handler.ts 85.18% <100.00%> (ø)
GetService/handler.ts 86.95% <100.00%> (ø)
GetUserDataProcessingActivity/handler.ts 90.90% <100.00%> (-0.21%) ⬇️
SetUserDataProcessingStatusActivity/handler.ts 89.47% <100.00%> (+1.10%) ⬆️
UpdateService/handler.ts 89.18% <100.00%> (-1.29%) ⬇️
... and 4 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f04c227...b8bd038. Read the comment docs.

@pagopa-github-bot
Copy link
Contributor

pagopa-github-bot commented Sep 17, 2020

Affected stories

  • 🐞 #174850132: In alcuni casi la procedura di download si interrompe con un errore

Generated by 🚫 dangerJS

)
)
);
.map(arrayOfMabeNotifications =>
arrayOfMabeNotifications
Copy link
Contributor

Choose a reason for hiding this comment

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

you can use array.catOptions === filter(isSome) + x.value

https://github.com/gcanti/fp-ts/blob/1.17.4/src/Array.ts#L1312

)
)
);
.map(arrayOfMabeNotifications =>
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
.map(arrayOfMabeNotifications =>
.map(array.catOptions) =>

@gunzip gunzip merged commit 6885fcc into master Sep 18, 2020
@gunzip gunzip deleted the 174850132-download-throubleshooting branch September 18, 2020 07:23
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