Page MenuHomePhabricator

[lib] add operation for removing all reports on login/logout
ClosedPublic

Authored by kamil on May 22 2023, 10:57 AM.
Tags
None
Referenced Files
F1702195: D7922.id26837.diff
Sat, May 4, 10:31 PM
Unknown Object (File)
Wed, May 1, 10:41 PM
Unknown Object (File)
Wed, May 1, 4:54 PM
Unknown Object (File)
Wed, May 1, 4:31 PM
Unknown Object (File)
Tue, Apr 30, 12:31 AM
Unknown Object (File)
Mon, Apr 29, 2:59 AM
Unknown Object (File)
Sun, Apr 28, 12:55 AM
Unknown Object (File)
Sat, Apr 27, 12:54 PM
Subscribers

Details

Summary

In this case this change is very simple - so generating only db operations without calling processReportStoreOperations

Depends on D7921

Test Plan
  1. Logout/login user (create some reports previously)
  2. tests

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kamil held this revision as a draft.
kamil published this revision for review.May 23 2023, 1:52 AM
tomek added inline comments.
lib/reducers/report-store-reducer.js
83 ↗(On Diff #26837)

Are you sure we should remove these on login?

This revision is now accepted and ready to land.May 24 2023, 2:10 AM

rebase

lib/reducers/report-store-reducer.js
83 ↗(On Diff #26837)

yes, operations should maintain previous logic, and on the login queuedReports was returned as an empty array