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

[#174085364] messagesStatus store section cleaning #2114

Merged
merged 11 commits into from
Aug 3, 2020

Conversation

Undermaken
Copy link
Contributor

@Undermaken Undermaken commented Jul 30, 2020

Short description:
This PR adds a little improvement on messagesStatus store section
By adding the handling of removeMessages action, the reducer can clean all entries that are no longer needed: i.e when the messagesStatus store contains a messageId (one or more) that is not present in the loaded messages (different user or message delete)

Starting from the cleaning, the messagesStatus won't be deleted on logout (explicit or implicit (session expired))

handle remove message in reducer
add tests
@pagopa-github-bot
Copy link
Collaborator

pagopa-github-bot commented Jul 30, 2020

Affected stories

  • 🐞 #174085364: [minor] Rimuovere i messaggi non più presenti dalla sezione dello store: messagesStatus

Generated by 🚫 dangerJS

@Undermaken Undermaken changed the title [#174033394] dispatch message ids to remove [#174085364] dispatch message ids to remove Jul 30, 2020
@Undermaken Undermaken changed the title [#174085364] dispatch message ids to remove [#174085364] messagesStatus store section cleaning Jul 30, 2020
@Undermaken Undermaken marked this pull request as ready for review July 30, 2020 11:08
@codecov-commenter
Copy link

codecov-commenter commented Jul 31, 2020

Codecov Report

Merging #2114 into master will increase coverage by 0.15%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2114      +/-   ##
==========================================
+ Coverage   45.50%   45.65%   +0.15%     
==========================================
  Files         464      464              
  Lines       13997    14008      +11     
  Branches     2893     2893              
==========================================
+ Hits         6369     6396      +27     
+ Misses       7584     7569      -15     
+ Partials       44       43       -1     
Impacted Files Coverage Δ
ts/store/reducers/index.ts 73.07% <ø> (ø)
ts/sagas/startup/watchLoadMessagesSaga.ts 79.10% <100.00%> (+0.41%) ⬆️
...store/reducers/entities/messages/messagesStatus.ts 69.84% <100.00%> (+31.91%) ⬆️

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 4dd9763...3429408. Read the comment docs.

@CrisTofani CrisTofani merged commit fbed0bf into master Aug 3, 2020
@CrisTofani CrisTofani deleted the 174085364-fix-messages-status-store branch March 23, 2021 11:10
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