* Let users upgrade to group plans via subscription dashboard
Users on an individual plan don't have a way to upgrade to a group
subscription without contacting support. As a temporary measure, we're
adding a way to do this by re-using the existing group plan modal from
the plans pages, to allow users to configure and upgrade to a group plan
directly.
This is currently only available for USD, EUR, and GBP - since although
we now support other currencies in Recurly, the group plans modal does
not yet support them. The user however can not change currency here,
their group subscription will be in the same currency as their current
individual subscription.
The group plan modal has been duplicated rather than extended, to keep
this code seperate as it is potentially only a stopgap measure - and we
don't want to be untangling the additional logic from the existing
modal/template later down the line.
GitOrigin-RevId: 10664bd19af2c3870dfe7e19fd0f9c5b7c877cc6
Users on an individual plan don't have a way to upgrade to a group
subscription without contacting support. As a temporary measure, we're
adding a way to do this by re-using the existing group plan modal from
the plans pages, to allow users to configure and upgrade to a group plan
directly.
This is currently only available for USD, EUR, and GBP - since although
we now support other currencies in Recurly, the group plans modal does
not yet support them. The user however can not change currency here,
their group subscription will be in the same currency as their current
individual subscription.
The group plan modal has been duplicated rather than extended, to keep
this code seperate as it is potentially only a stopgap measure - and we
don't want to be untangling the additional logic from the existing
modal/template later down the line.
GitOrigin-RevId: f310eb10ef00d43076981589ee45893e7d9ab881
* Initialise full project history for old projects when project opened
This begins a second attempt at initialising the full project history in
the background for projects without a full project history id.
The original web-internal#4345 was reverted in web-internal#4353. This
commit reverts the revert, and adds an additional flush of the project
before initialising full project history.
GitOrigin-RevId: ac263dca8cf0d80186fee916a76e5572ec5649d4
Extend batchedUpdate to accept find() options, and use a hint in upgrade script query to suggest mongo uses the _id index
GitOrigin-RevId: 7115f84d8be0c78ccb443051e911c931bf4aa0de
* Use overleaf fork of passport-saml and remove existing monkey patch
* Update xml-crypto to 2.1.2
* New way of loading MultiSamlStrategy
* Rename privateCert privateKey
* Add promisified SAML Cache Provider functions for passport-saml 3.0.0
* Remove test which checked xml-crypto version for old patch
* Sign mock SAML responses with test saml-key and provide saml-cert to test settings
* Decaffeinate createMockSamlResponse.js
* Add (unused) cert property to SAML config for metadata endpoint
Removes non-needed `cert` property from `settings.test.js`
* Allow SAMLManager to accept either privateKey or privateCert (legacy) config keys
Co-authored-by: Christopher Hoskin <christopher.hoskin@gmail.com>
GitOrigin-RevId: bdb9d1c9bf72a7fbf60c0b2afa9068e7a8c147d3
* Add HTTP authentication to Recurly webhook endpoint
Co-authored-by: Eric Mc Sween <eric.mcsween@overleaf.com>
GitOrigin-RevId: 81c32459d643895c096bc195ae6aef53248418da
* Schedule subscription downgrades to occur at the current term end.
If the plan is a downgrade, schedule the subscription change for term
end. Use Recurly v3 API subscription change event instead of v2 update
subscription.
* Add ability for user to revert a pending subscription change
In the case where a user has downgraded, but has since decided they'd
rather stay on their current plan, we need a way to let them revert. It
isn't enough to re-use a subscription change, because Recurly sees it as
an attempt to make a change from the current plan to itself.
Instead, we use a new dialog and call a new endpoint that has the
specific intent of reverting the pending plan change, by calling the
removeSubscriptionChange recurly client method.
* Add message prompting users to contact support for immediate changes
We're showing this in the confirmation modal for a plan change that
would occur in the future, and and on the subscription page if a pending
change is due.
Most users shouldn't need this, but it should help them out if they find
an edge case like moving from eg. Student (Annual) to Professional
(Monthly) and were expecting to be "upgraded" immediately.
GitOrigin-RevId: c5be0efbeb8568ed9caa941aadcef6f6db65c420
* [admin-panel] Change format of restored snapshot filenames
* [scripts] Change format of restored soft-deleted filenames
GitOrigin-RevId: b928c4237150b38842aa1f2c8f43ffb7eca677b1