* Fix `revokeAllUserSessions` call in `_cleanupUser`
The user object should be passed, not the _id
* Change `revokeAllUserSessions` signature, take `req` and `stayLoggedIn` arguments
* Update uses of `revokeAllUserSessions`
* Fix promisified `revokeAllUserSessions` args
* Update tests
* Destroy or Regenerate the session in the end of `revokeAllUserSessions`
Per https://github.com/overleaf/internal/issues/17036#issuecomment-1938398570
* Revert "Destroy or Regenerate the session in the end of `revokeAllUserSessions`"
This reverts commit fe30734dbe45b27d2931d2e43a711d591bb85787.
* Rename `revokeAllUserSessions` to `removeSessionsFromRedis`
* Fixup tests
* Fix: add optional chaining in `req.sessionID` (!!)
GitOrigin-RevId: d41676bf00f463230af495e09c65fb9ee521f49f
* Fix: Invoices collected array length comparison
Update the code with the correct condition to respect the intent of the previous implementation ("exit with non zero code when no invoicess were processed").
See https://github.com/overleaf/internal/commit/5476f39984f9cbb6edaeec3bef35e9e5207c5823
However, I'm not sure if erroring when no invoices are collected is actually what we want to do.
* Wrap `collect_paypal_past_due_invoice` script and export the function
* Fixup typo `accoutns`
* Log invoices collection data before throwing
* Add note: `handleAPIError` is silencing the errors
* Create a test on `collect_paypal_past_due_invoice`
* Replace `console.log` by `@overleaf/logger` (bunyan)
Our `console.warn` show up as Errors (in red) in GCP. For example the following is an error in GCP:
```
Errors in attemptInvoiceCollection with id=2693634 OError: Recurly API returned with status code: 400
```
https://github.com/overleaf/internal/blob/5476f39/services/web/scripts/recurly/collect_paypal_past_due_invoice.js#L9
---
Does it correctly set the levels as warnings if we use `@overleaf/logger`
GitOrigin-RevId: 37c8bdf4afd8cef4706700aafb44480ec8966a74
* Add `with-split-tests` util for storybook
It wraps storybook in a SplitTest context provider with configurable variant values. And it adds controls for them in the storybook UI
* Define `splitTestsArgTypes` in `withSplitTests`
* Revert "Add `with-split-tests` util for storybook"
This reverts commit 3ff351ac
* Edit stories: remove SplitTestProvider and add more digits to amounts
* Create `addon-split-tests` to manage split-tests from Storybook
* Add a `splitTests` parameter to define individual Stories relevant split-tests
* Revert "Add a `splitTests` parameter to define individual Stories relevant split-tests"
This reverts commit 6cbf62729a3d682d695c36e11a86bd576cb7aec1.
* Revert "Create `addon-split-tests` to manage split-tests from Storybook"
This reverts commit d0734a1773c96860e82d81fd62fc9034e2b6e41c.
* Revert "Revert "Add `with-split-tests` util for storybook""
This reverts commit 407fc39b
* Improve types of price-summary.stories.tsx
Co-authored-by: Alf Eaton <alf.eaton@overleaf.com>
---------
Co-authored-by: Alf Eaton <alf.eaton@overleaf.com>
GitOrigin-RevId: bcf3d9f317590a00fb633851ef36146eb800fcfc
* [web] Show confirmation modal when reverting a file
* only show Revert file in ui even if deleted
* format:fix
* using the same message for every revert
* replace "document" with "file" in confirm dialog
* remove "pull-left" class
* fix split test name
GitOrigin-RevId: ab5937b9a0570cd1fdbe5d71eda0a16ae539dc66