Kristina
ad853d661a
[migration] fix issues found in finalization script during stage 3b ( #32472 )
...
* accept taxInfoPending as tax id comparison point
* convert recurly unit amount to minor units correctly for no cent currencies
* Use original subscription currency in finalization check
* make it easier to spot migrated with tax info pending
---------
Co-authored-by: John Lees-Miller <jdleesmiller@gmail.com >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
GitOrigin-RevId: d3c74032bc06369fcf6bafb4cfaff85c49a3cfef
2026-03-30 08:05:28 +00:00
Kristina
fe7dad5644
[migration scripts] detect account drift between Recurly and Stripe ( #32315 )
...
* add a script to detect drift between recurly and stripe
* only flag when Recurly updated since subscription created in Stripe
* add --comparison-date option instead of stripe subscription created time
* reduce API calls by checking Recurly update time earlier
GitOrigin-RevId: f0ecb5644f7445603da020a46e32622fcd2eebf4
2026-03-25 09:05:43 +00:00
Simon Gardner
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
Simon Gardner
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
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
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
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
Simon Gardner
4d338efe56
updates to recurly -> stripe customer upsert script
...
GitOrigin-RevId: dfe277807f9282804fed5a9cdf86e654a719de96
2026-02-06 09:05:15 +00:00
Kristina
c876bf2c5f
[web] set default payment method based on recurly data ( #31025 )
...
GitOrigin-RevId: ad7ffe400748ace66aa7e4775eedb738028c8a0c
2026-01-27 09:06:45 +00:00
Simon Gardner
83971b4a8a
[web] set default payment method on customers
...
GitOrigin-RevId: 3603b80f11b70493c04e145d976c540ea718512a
2026-01-27 09:06:28 +00:00
Simon Gardner
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
Christopher Hoskin
c3ade4dce1
Merge pull request #24070 from overleaf/csh-fix-check_institution_users
...
Allow higher timeouts
GitOrigin-RevId: 8b762cab7cf1420cec732ea592a8075e96b9a5f8
2025-03-13 09:05:45 +00:00
Jimmy Domagala-Tang
8a81b0777a
Merge pull request #23820 from overleaf/jdt-transition-wf-accounts-script
...
Script to transition WF users from auto-load to auto-create
GitOrigin-RevId: 538ff04dece52e4c46a4a592cb5089d20eb5aa7a
2025-02-28 09:05:25 +00:00
Jakob Ackermann
252533b2fd
Merge pull request #21668 from overleaf/jpa-mongo-utils
...
[mongo-utils] create new home for batchedUpdate helper
GitOrigin-RevId: 9f61c5e367a9f4cef63b5cc4c0bbbd3ef57c8ca8
2024-11-08 09:07:09 +00:00
Jakob Ackermann
bf2ad1952c
Merge pull request #21506 from overleaf/jpa-fix-batched-update-edge
...
[web] fix edge behavior of batchedUpdate
GitOrigin-RevId: 5d1c0b884aa02c52682d114fa66b2d9b201e724e
2024-11-04 09:04:55 +00:00
Jakob Ackermann
0e4c87d131
Merge pull request #21441 from overleaf/jpa-batched-update-types
...
[web] add types to batchedUpdate
GitOrigin-RevId: a4ab8951bb43fbae6d90ac7a7afbaa781accdc39
2024-11-01 09:05:19 +00:00
Jakob Ackermann
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
26f3f3e2e2
Merge pull request #21097 from overleaf/ls-scripts-to-esm-1
...
Migrate scripts folder to esm 1/x
GitOrigin-RevId: 4a4bc9a161f144fdb40ce3f2a0a9313b36c6df81
2024-10-21 08:04:42 +00:00
andrew rumble
032deaf05c
Switch to mongodb-legacy
...
GitOrigin-RevId: 11e09528c153de6b7766d18c3c90d94962190371
2024-08-21 08:04:24 +00:00
Jakob Ackermann
3df0fe82ce
Merge pull request #17926 from overleaf/jpa-batched-update-sorting
...
[web] batchedUpdate: use explicit sorting to find first record to update
GitOrigin-RevId: 6f57b92a4e5907f307618bd98642b4874018e9fa
2024-04-17 08:04:09 +00:00
Mathias Jakobsen
c371732e6e
Merge pull request #16186 from overleaf/mj-mongo-object-id
...
[web] Use constructor for ObjectId
GitOrigin-RevId: 9eb8b377ea599605b72af237d1ab12f4d8287162
2023-12-19 09:04:02 +00:00
Eric Mc Sween
cff54eae78
Merge pull request #12575 from overleaf/em-fix-chunk-replace-transaction
...
Fix history chunk replacement transaction
GitOrigin-RevId: fc0fa8f4a55ae5f402ba87db5e4ac2856fe6627b
2023-04-19 08:03:10 +00:00
Jakob Ackermann
5d9923ad1b
Merge pull request #12277 from overleaf/jpa-cleanup-batched-update-interface
...
[web] simplify interface for custom update function in batchedUpdate
GitOrigin-RevId: a00a24a012db400d4161de0bcefa2681206ab296
2023-03-23 09:04:29 +00:00
Jakob Ackermann
03f45c02c3
Merge pull request #12276 from overleaf/jpa-batched-update-window
...
[web] add time based window queries to batchedUpdate
GitOrigin-RevId: e56c01b888cd9749f39d42b77de09bc3fe2d0ec1
2023-03-22 09:04:09 +00:00
Jakob Ackermann
dd906df7b7
Merge pull request #11360 from overleaf/jpa-encrypt-2fa-secret
...
[web] two-factor-authentication: encrypt the secret in the db
GitOrigin-RevId: 86642e13d917b239012229f685ad0210039a6706
2023-02-17 09:03:44 +00:00
Miguel Serrano
c5f93bedea
Merge pull request #8335 from overleaf/msm-fix-reset-rev-script
...
Fixed `reset_incorrect_doc_revision.js` script
GitOrigin-RevId: 59448881e372ca7ca6f3b50f76cab5476279a1ab
2022-06-09 08:02:23 +00:00
Jakob Ackermann
cfaec97a3d
Merge pull request #6393 from overleaf/ta-backfill-user-properties
...
Backfill User Properties
GitOrigin-RevId: ea2ffeaaf71d5ce41c76a1bfb2f0014006ef0d08
2022-01-26 09:03:06 +00:00
Thomas
40b087fee8
Merge pull request #5952 from overleaf/tm-batched-update-ranges
...
Add BATCH_RANGE_END(/BATCH_RANGE_START) env vars for batchedUpdate scripts
GitOrigin-RevId: e74f30368194584a6fb398963e0c04f850a8b31d
2021-12-01 09:03:09 +00:00
Thomas
302a6fddc8
Merge pull request #5756 from overleaf/tm-history-batched-update-descending
...
Add BATCH_DESCENDING to reverse processing order of batchedUpdate
GitOrigin-RevId: fb6aff20713dfd8fe6c6a78b64505d96ce4bfb14
2021-11-12 09:02:53 +00:00
Thomas
e25d8b1440
Merge pull request #4381 from overleaf/tm-history-upgrade-batched-update-hints
...
Extend batchedUpdate to accept find() options, and use a hint in upgrade script query to suggest mongo uses the _id index
GitOrigin-RevId: 7115f84d8be0c78ccb443051e911c931bf4aa0de
2021-08-05 02:08:07 +00:00
Alf Eaton
1be43911b4
Merge pull request #3942 from overleaf/prettier-trailing-comma
...
Set Prettier's "trailingComma" setting to "es5"
GitOrigin-RevId: 9f14150511929a855b27467ad17be6ab262fe5d5
2021-04-28 02:10:01 +00:00
Shane Kilkelly
9c38d41652
Merge pull request #3872 from overleaf/jpa-batched-update-work-around-mongo-bug
...
[scripts] work around broken .setReadPreference() on mongo cursor
GitOrigin-RevId: 127c0593f4c20e45acb15ec26b45a45d9449d9ba
2021-04-02 02:04:56 +00:00
Alasdair Smith
7cbf2cdd9e
Merge pull request #3496 from overleaf/ae-eslint-dot-notation
...
Enable the eslint dot-notation rule
GitOrigin-RevId: e11cbad3e8a77a4a60590d3674fbf34feccc5bc9
2020-12-17 03:07:31 +00:00
Shane Kilkelly
0450c52187
Merge pull request #3335 from overleaf/jpa-cmg-archived-script-logging
...
Update archiving script for re-run
GitOrigin-RevId: 0251ca8d6f864f697395deac9470398519b704de
2020-11-05 03:04:30 +00:00
Jakob Ackermann
224c5a0f23
Merge pull request #3306 from overleaf/jpa-script-validate-data-of-model
...
[scripts] validate-data-of-model: add the new script
GitOrigin-RevId: c432598a1efee58e95f3751ac0f63113ec837344
2020-10-22 02:04:48 +00:00
Jakob Ackermann
403332d80d
Merge pull request #3226 from overleaf/jpa-mongodb-native-scripts
...
[misc] migrate active scripts to the native mongo driver
GitOrigin-RevId: f3b441bc53754dc2f83ca24c3e57d2cc978dd7fe
2020-10-09 02:05:19 +00:00
Jessica Lawshe
2a3cb615ee
Merge pull request #3241 from overleaf/jpa-speedup-acceptance-tests
...
[misc] speedup the ConvertArchivedState test suite
GitOrigin-RevId: e7d6471955aabbc6af76e27fdf23d97e2fd87901
2020-09-30 02:04:46 +00:00
Alasdair Smith
394f160679
Merge pull request #2963 from overleaf/cmg-archive-state-script
...
Script to convert old archived state into new array state
GitOrigin-RevId: 64cd3a236dc627f922488e1fa9d8aa2e7df1eb15
2020-09-27 02:05:32 +00:00
Jakob Ackermann
b61ab62efb
Merge pull request #3120 from overleaf/jpa-batched-update-continue
...
[scripts] batchedUpdate: add support for passing in the tail of the log
GitOrigin-RevId: 50b573ec4f90026c3c2c660a5313fdd62817dbd9
2020-08-20 02:06:31 +00:00
Jakob Ackermann
00e59a9afe
Merge pull request #3118 from overleaf/jpa-delay-mongo-connection-use
...
[scripts] batchedUpdate: try to work around flaky mongo connection setup
GitOrigin-RevId: 2bba7117b8f8892a41703569fef3f97d5e8d6835
2020-08-19 02:06:34 +00:00
Jakob Ackermann
b5d3919911
Merge pull request #3092 from overleaf/jpa-batched-update
...
[scripts] add helper for batched updates on non-indexed fields
GitOrigin-RevId: d24c4ccfd9d112573ddf303655d4c8ac552f30a1
2020-08-18 02:06:23 +00:00