Simon Gardner and Copybot
6915989ce5
[stripe migration] less strict address validation on upsert script ( #32207 )
...
* less strict address validation
* remove redundant name and address coalescing functions
* update missing name handling
GitOrigin-RevId: 4d15b16c840fa3edc50df6592d33f324dd26722c
2026-03-19 09:06:50 +00:00
89e8044a25
Further improvements to Recurly -> Stripe Customer Upsert script
...
* handle billingInfo / account discrepancies
* fix rate limiting behaviour of fetchRecurlyActiveSubscription
* make force-invalid-tax aware of stripe tax validation errors
* clear taxInfoPending if vatNumber is now valid or not present on second runs
* re-instate pre-validation of tax ids in dry-run mode
* handle tax exemption
* fix tax pre-validation tests
* fix comment typos
* remove redundant hadConflict
* re-use normalizeName function
* throw if more than 1 active recurly subscription when resolving conflict
---------
Co-authored-by: Simon Gardner <simon.gardner@overleaf.com >
GitOrigin-RevId: a88cad87887bd9e043fb457091e999c1d555f546
2026-03-06 09:10:28 +00:00
Simon Gardner and Copybot
fcac73e27f
Improvements to Recurly -> Stripe customer upsert script ( #31539 )
...
* migrate Recurly ccEmails to Stripe additional_emails.cc
* improve tax error reporting
* remove redundant call to recurly.getBillingInfo
GitOrigin-RevId: fa26fd5312d2b7ac5734fc78118ede6e1cfa17c8
2026-03-06 09:08:51 +00:00
Kristina and Copybot
aa2ce6f675
[web] handle duplicate customer accounts better ( #31677 )
...
* [web] extract card comparison function
* [web] throw if more than 1 duplicate customer account
* [web] attempt to pick the pre-existing account
* [web] overwrite email of duplicate account
* Update services/web/scripts/helpers/migrate_recurly_customers_to_stripe.helpers.mjs
* [web] handle setting being undefined
* [web] allow other account to be reused if migrating account is using paypal
* [web] allow matching for customers with no payment method
GitOrigin-RevId: 7d8eeb4734a20c09ce3e0d73095e28696e212549
2026-03-06 09:07:40 +00:00
Kristina and Copybot
820adf568e
[web] add support for migrating paypal subscriptions ( #31607 )
...
* support Paypal for migration
* remove sensitive payment info in logging
* add `resolveStripeCustomer`
GitOrigin-RevId: a8fc7de4a4bf3971c5221a0dec3fc279d8d2f67d
2026-02-20 09:06:43 +00:00
Kristina and Copybot
85066c6cb3
[web] various migration script improvements ( #31538 )
...
* make warnings more eye catching in clean up dry run
* only increment processedCount after processing
* always rm recurlyAccountCode
* check if existing Stripe customer already has a subscription
* ensure no other customer accounts share the user id
* set recurly_to_stripe_migration_status to cancelled in cancel script
* add script for updating metadata of canceled migrations
GitOrigin-RevId: 3331de480e99774679ff2649b90d41e981a8fdef
2026-02-18 09:05:34 +00:00
Kristina and Copybot
8ecb575d06
[web] apply runtime improvements to migration cleanup scripts ( #31488 )
...
GitOrigin-RevId: bfd7a34ecc5ab0b89a0aebae3f7bec995d490b31
2026-02-12 09:05:56 +00:00
Kristina and Copybot
1f5fec628b
[web] apply runtime improvements to the finalization script ( #31360 )
...
* extract RateLimiter
* remove unnecessary remapping and wrappers
GitOrigin-RevId: fda1cdefa15f2f3fa9a042346a5ba4243897b90a
2026-02-10 09:05:58 +00:00
Simon Gardner and Copybot
a5f9e6ecd6
web: fix: BOM parsing and rate limiting bugs in Recurly -> Stripe customer upsert script ( #31398 )
...
* fix: add check for BOM to csv parser
* fix bug in throttling that allowed 'stampeding herds'
* fix theoretical error handling bug in throttle()
GitOrigin-RevId: cfe5da63281590b03ababef370a2fb1a316f2dbf
2026-02-09 09:07:43 +00:00
Simon Gardner and Copybot
4d338efe56
updates to recurly -> stripe customer upsert script
...
GitOrigin-RevId: dfe277807f9282804fed5a9cdf86e654a719de96
2026-02-06 09:05:15 +00:00
Kristina and Copybot
d6fbed2a74
[web] check end state before terminating ( #31136 )
...
* check and log unexpected end states before terminating Recurly subscriptions
* update finalize and rollback scripts to only postpone active subscriptions
GitOrigin-RevId: 7fe6ffa56cb8ddf19133eb0cb59e39fd783430b7
2026-01-30 09:06:12 +00:00
Kristina and Copybot
ac1a61cafa
[web] remap customer.metadata.recurlyAccountCode in migration scripts ( #31097 )
...
* remap customer.metadata.recurlyAccountCode to customer.metadata.userId
* verify recurlyAccountCode is what we expect it to be before setting
GitOrigin-RevId: 8ab1d5e311dba34bb8c15d01096f6c31273a7506
2026-01-29 09:06:08 +00:00
Simon Gardner and Copybot
08c1de479f
[web] Only report existing stripe fields where the update will change the values
...
GitOrigin-RevId: 665cc99a4acec1a12812b4874542512e11d25ad4
2026-01-28 09:06:23 +00:00
Kristina and Copybot
c876bf2c5f
[web] set default payment method based on recurly data ( #31025 )
...
GitOrigin-RevId: ad7ffe400748ace66aa7e4775eedb738028c8a0c
2026-01-27 09:06:45 +00:00
Simon Gardner and Copybot
60bb53bbfa
if stripe fields present, warn and log both records.
...
GitOrigin-RevId: 4ae0a6859b01f25bce8391a35b6789ea73ae344c
2026-01-27 09:06:33 +00:00
Simon Gardner and Copybot
83971b4a8a
[web] set default payment method on customers
...
GitOrigin-RevId: 3603b80f11b70493c04e145d976c540ea718512a
2026-01-27 09:06:28 +00:00
Simon Gardner and Copybot
b517df6672
Merge pull request #30958 from overleaf/slg-recurly-stripe-migration-30684
...
add script for migrating customer metadata from recurly to stripe
GitOrigin-RevId: 019413eda20cef2e09c9cc278a8806fa244fe019
2026-01-27 09:06:03 +00:00
Kristina and Copybot
49591a5190
[web] add scripts to finalize recurly -> stripe migration ( #30925 )
...
GitOrigin-RevId: 2149aa516a00b18927fea46e9241496b74478152
2026-01-26 09:06:33 +00:00
Olzhas Askar and Copybot
f95b471797
Merge pull request #30938 from overleaf/oa-recurly-updates
...
[web] Check upcoming Recurly schedule changes
GitOrigin-RevId: 355ad6f12ff1f0605e9c2f007d2d66a26c0b5810
2026-01-23 09:06:39 +00:00
roo hutton and Copybot
625d8efdf1
Merge pull request #30102 from overleaf/rh-price-rollback-scripts
...
Script for rolling back price changes in Recurly
GitOrigin-RevId: d2793b70e845ba2411814035f174a0262b99c0e9
2025-12-05 09:05:48 +00:00
Kristina and Copybot
b9224ea11d
[web] update recurly change prices script ( #30006 )
...
* update recurly change prices script
* write to /tmp/ and add an option to write to stdout
* add analytics events
* default script to renewal
GitOrigin-RevId: 5ebb17ee2c1ad70128391745a994ea6c74c739f9
2025-12-05 09:05:10 +00:00
Andrew Rumble and Copybot
07c827e9fd
Merge pull request #29928 from overleaf/ar-last-infrastructure-conversions
...
[web] last infrastructure conversions
GitOrigin-RevId: ad1aff9b7df0610ed0303157d9e2c8032f32c02b
2025-11-28 09:05:56 +00:00
Andrew Rumble and Copybot
18f44866e5
Merge pull request #29919 from overleaf/revert-29795-ar-last-infrastructure-conversions
...
Revert "[web] last infrastructure conversions"
GitOrigin-RevId: 48dc64553012afb5d2db4b2eb9c9898489b7e5ef
2025-11-27 09:05:54 +00:00
Kristina and Copybot
731bf1d8b6
[web] add scripts for updating Stripe prices ( #29858 )
...
* update generate recurly prices script to skip stripe-only prices
* add script for creating new Stripe prices from a CSV
* add script to archive Stripe prices by version key
* add script for exporting Stripe products and prices
* add script to import Stripe products
GitOrigin-RevId: 3c9cf8037d956b9532c3efed5fe8d63f8be53a93
2025-11-27 09:05:35 +00:00
Andrew Rumble and Copybot
d748d8d606
Merge pull request #29795 from overleaf/ar-last-infrastructure-conversions
...
[web] last infrastructure conversions
GitOrigin-RevId: 68aa11625a9bc6d0d5324ecd95bb5ac52af8ee96
2025-11-27 09:05:30 +00:00
Andrew Rumble and Copybot
394c60f2cf
Merge pull request #29659 from overleaf/revert-29656-revert-29521-ar-models-es-conversion
...
Revert "Revert "[web] Convert models and self-referential test files to ESM ""
GitOrigin-RevId: f64000ae31d298b075a8722dfc51f294c71bc021
2025-11-18 09:04:56 +00:00
Andrew Rumble and Copybot
ae6dec9dcb
Merge pull request #29656 from overleaf/revert-29521-ar-models-es-conversion
...
Revert "[web] Convert models and self-referential test files to ESM "
GitOrigin-RevId: 5455cccbb513bd9ca36ce526ff1553065f83d233
2025-11-13 09:06:36 +00:00
Andrew Rumble and Copybot
7c9fea64ac
[web] Convert models and self-referential test files to ESM ( #29521 )
...
from overleaf/ar-models-es-conversion
GitOrigin-RevId: a92ab8342c0f3e23155eacc0570458fc910c3d71
2025-11-13 09:06:13 +00:00
Andrew Rumble and Copybot
4f02a85aa4
Update paths
...
GitOrigin-RevId: 399c594dd1bbf739d91874df6be3b70e57fe01e3
2025-11-06 09:05:57 +00:00
Andrew Rumble and Copybot
7de4133d08
Convert to ES modules
...
GitOrigin-RevId: ec8d55634306caa6a013daa4dc0ce0a3ffbcc3f0
2025-10-21 08:05:42 +00:00
Andrew Rumble and Copybot
bdf47f7a78
Rename files
...
GitOrigin-RevId: 5308845fa2a76342dc395ee4d4fcc94cdf03cb3b
2025-10-21 08:05:37 +00:00
Jakob Ackermann and Copybot
d697f00525
[web] reduce log noise in CI ( #27961 )
...
* [web] reduce noise from CollectPayPalPastDueInvoiceTest
* [web] reduce noise for frontend tests that use Range.getClientRects
* [web] avoid nesting <li> elements in ProjectToolsMoreDropdownButton
RenameProjectMenuItem/CopyProjectMenuItem will return <li> elements.
* [web] avoid clicking on links that navigate away in JSDom
* [web] add mock for location change in JSDom
* [web] add fallback stripe subscription data for test
3.8k lines of log noise!
GitOrigin-RevId: 7adab182487a6c07ac9809c60802e498a0edb0ec
2025-08-19 08:05:50 +00:00
Miguel Serrano and Copybot
7540bc9cbe
Merge pull request #27202 from overleaf/msm-fix-pricing
...
[web] Remove group size limits for additional licenses
GitOrigin-RevId: d48976ccd72ec5e99249f80ab5d3e9e85e089b18
2025-07-18 08:07:17 +00:00
Lucie Germain and Copybot
f53a13ae1e
Merge pull request #26604 from overleaf/mf-resync-recurly-state-single-subscription
...
Add script to sync recurlyStatus.state for a single subscriptionId
GitOrigin-RevId: 69af89a44b4043d92853862baee65d8b7f84b88f
2025-06-25 08:05:29 +00:00
Andrew Rumble and Copybot
5799d534a9
Ensure we wait after processing each subscription
...
GitOrigin-RevId: f6a184bc8a65934f24857cfc4f71f95574576b9d
2025-06-11 08:07:41 +00:00
Andrew Rumble and Copybot
07b47606c1
Disable script in production
...
GitOrigin-RevId: 81fe077a5816a23fa20c78a6271fbdf62021e3b2
2025-06-11 08:07:36 +00:00
Liangjun Song and Copybot
2f87db9c0d
Merge pull request #24790 from overleaf/ls-use-script-runner
...
Update some scripts to use Script Runner
GitOrigin-RevId: aaa11f94dcfd328c158bb02d1b9fb2adfb1bb146
2025-05-23 08:05:23 +00:00
Domagoj Kriskovic and Copybot
b99a81cb25
Fix monthly price if billed annually for AI Assist ( #25297 )
...
* Fix monthly price if billed annually for AI Assist
* update script
* show annual price
* fix formatting
GitOrigin-RevId: e50493fa2176e6c8acb476a01a393eb940a3f1a2
2025-05-13 08:06:39 +00:00
Jimmy Domagala-Tang and Copybot
22ad3a86a9
Merge pull request #25148 from overleaf/jdt-bundle-price-update
...
Update prices and naming for AI Assist bundle
GitOrigin-RevId: ece300a9d009a9e17594d3c052b33321c9b17f82
2025-05-02 08:06:10 +00:00
Domagoj Kriskovic and Copybot
47fb3a644c
Script for generating add-on prices (from recurly) ( #24051 )
...
* Script for generating addon prices (from recurly)
* addon code as param
GitOrigin-RevId: b1a45a806c29de56a10532398b56468f9732593f
2025-03-24 10:49:15 +00:00
Liangjun Song and Copybot
e44f892cb0
Merge pull request #24271 from overleaf/ls-script-to-update-manually-billed-users
...
Scripts to update terms and conditions for manually billed users
GitOrigin-RevId: 5efe43a42c3ed21779c9de698268817e2cbb5249
2025-03-24 10:49:11 +00:00
Eric Mc Sween and Copybot
eb1b939f5a
Merge pull request #22567 from overleaf/em-collection-method
...
Add collection method field to Mongo subscriptions
GitOrigin-RevId: 7fffabaecfde8f7da8e05fcedcbbf0b2fdcc70f5
2025-01-10 09:05:25 +00:00
Eric Mc Sween and Copybot
b68f758fd5
Merge pull request #22274 from overleaf/em-setup-recurly-add-ons
...
Set up assistant add-on only on group plans available in production
GitOrigin-RevId: a47c05443c5bf4a1bb1fb26d45a3705a544ba7c5
2024-12-05 09:04:59 +00:00
Antoine Clausse and Copybot
b27b2808f2
[web] Fixup .mjs extension in scripts mentions (calls, comments, copybara) ( #21969 )
...
* Fixup `.mjs` extension in scripts mentions (calls, comments, copybara)
* Replace `.js` by `.*` in copy.bara.sky exclude
* Add `services/web/modules/modules-*.mjs` in copy.bara.sky glob
GitOrigin-RevId: b3ecb849b44bdf4257cc17f6985f8117a4d662ae
2024-11-21 09:04:23 +00:00
Antoine Clausse and Copybot
eea27a36a4
[web] Add prefer-node-protocol ESLint rule ( #21523 )
...
* Add `unicorn/prefer-node-protocol`
* Revert non-web changes
* Run `npm run lint:fix` (prefer-node-protocol)
GitOrigin-RevId: c3cdd88ff9e6b3de6a4397d45935c4d026c1c1ed
2024-11-05 09:04:33 +00:00
Jakob Ackermann and Copybot
a7517eefcb
Merge pull request #21427 from overleaf/jpa-populate-db-on-import
...
[web] populate db with collections on import, ahead of waitForDb() call
GitOrigin-RevId: 7eb4cd61c2052187acd9947d7060f54d9822d314
2024-11-01 09:05:15 +00:00
Liangjun Song and Copybot
14cd8f5479
Merge pull request #21282 from overleaf/ls-scripts-to-esm-5
...
Migrate rest of the scripts to esm
GitOrigin-RevId: 421f3ccd15342d34113be8d22e343d08533177ea
2024-10-25 08:05:41 +00:00
Eric Mc Sween and Copybot
13ecddaef1
Merge pull request #20898 from overleaf/em-ai-add-on-setup-recurly
...
Script for setting up the Assistant add-on in Recurly
GitOrigin-RevId: 25a94961e4068456795b6be6b5e047efc65363fa
2024-10-24 08:06:29 +00:00
Liangjun Song and Copybot
902ae750dc
Merge pull request #21202 from overleaf/ls-scripts-to-esm-2
...
Migrate scripts folder to esm 2/x
GitOrigin-RevId: 1698bc4f13e026fa281d37a4914a2f997849c761
2024-10-23 08:04:53 +00:00
Antoine Clausse and Copybot
ebec84540f
Add waitForDb in scripts/resync_subscriptions.js ( #19154 )
...
GitOrigin-RevId: 608bce2654d2b6dbeb662ad0da8bb5c5ce3d68f3
2024-06-28 08:04:29 +00:00