Jimmy Domagala-Tang
89f416af05
feat: add tests for recurly plan revert feature ( #25966 )
...
GitOrigin-RevId: 9bb0c198d237a9c86b63da8b4892c7867f79c71f
2025-09-18 08:06:28 +00:00
Brian Gough
19e6fc4fe3
Merge pull request #28506 from overleaf/bg-size-limits
...
add size check when cloning project (logging only)
GitOrigin-RevId: 1f56ed80a2d05b28c44fab8532d751ad8e758943
2025-09-18 08:05:52 +00:00
Miguel Serrano
3ef17cb1b6
Upgrade aws-sdk to v3 (re-attempt) ( #28410 )
...
* Upgrade `aws-sdk` to v3
Also vendored nodemailer-ses-transport
* Moved default region to CE settings
* Ensure timeout is added to `requestHandler` and `region` is populated
* fix unsigned header in signed URL request
The x-amz-acl header is not needed when using the signed request,
as ACL are already defined when creating the signed URL in
PutObjectCommand constructor.
* Add default AWS region for latexqc service
* remove unnecessary region in compose files
* Use AWS_REGION=us-west-2 for history-v1
* prevent retries uploading streams with PutObjectCommand
* Remove AWS SDK JS message suppression
GitOrigin-RevId: 6fda6f02160023ffed76143397bbd965f86a9509
2025-09-18 08:05:22 +00:00
Jessica Lawshe
d1b08f8352
Merge pull request #28402 from overleaf/jel-link-logged-in-async-local-storage
...
[web] Extend `AsyncLocalStorage` to SAML linking in route, clear `AsyncLocalStorage` on email updates, await analytics helper on email updates,
GitOrigin-RevId: 86a51e6800a4b954ff81a2d977edf1401064dda4
2025-09-17 08:05:30 +00:00
Antoine Clausse
0ef959d05b
[web] Convert some Features files to ES modules (part 3) ( #28494 )
...
* Rename files to mjs
* Rename test files to mjs
* Update CODEOWNERS
* Update files to ESM
* Update test files to ESM
* Update RestoreManager.test.mjs
* Remove unused `AdminAuthorizationHelper` mock and stub
* Remove unnecessary return
GitOrigin-RevId: 2b9ef126de1d8964afbc6e5641cca36712655866
2025-09-17 08:05:02 +00:00
Andrew Rumble
6f732c8513
Merge pull request #27958 from overleaf/ar-change-esm-codemod-to-use-vitest-and-general-refactor
...
[web] change esm codemod to use vitest and general refactor
GitOrigin-RevId: 7f8c699b160ee0b7ff991d6284cb126165694c4f
2025-09-17 08:04:57 +00:00
Andrew Rumble
819b2a3a46
Merge pull request #28367 from overleaf/ar-migrate-routermjs-to-zod
...
[web] migrate router.mjs to zod
GitOrigin-RevId: d3fc21a11351f3e2deb5011cd1beeb86286a300b
2025-09-16 08:05:26 +00:00
Antoine Clausse
ae135f3950
[web] Convert some Features files to ES modules (part 2) ( #28275 )
...
* Rename files
* Rename test files
* Convert to ESM
GitOrigin-RevId: b0ee442ac8edd4ef3695f93a91ffd9521e6bf259
2025-09-16 08:04:59 +00:00
Eric Mc Sween
d8c200b3f5
Merge pull request #28401 from overleaf/em-promisify-document-updater-handler
...
Promisify DocumentUpdaterHandler
GitOrigin-RevId: 8793f30ef51f5cd5886d0f74773f4b952761c2d4
2025-09-15 08:05:25 +00:00
Olzhas Askar
ac936d462c
Merge pull request #28378 from overleaf/oa-expose-last-active
...
[web] Expose lastActive to customer.io
GitOrigin-RevId: 5a0f3b43a6c8288e7e5f7b1de05b409a2d3ac86a
2025-09-12 08:06:30 +00:00
Eric Mc Sween
2a57162792
Merge pull request #27999 from overleaf/em-reactivate-add-on
...
Add option to reactivate an add-on
GitOrigin-RevId: a1795f37dac5141996d626d87ba3a9bae1d218dd
2025-09-11 08:05:12 +00:00
ilkin-overleaf
96d9ca2d37
Merge pull request #28126 from overleaf/ii-domain-capture-join-success-message
...
[web] Notification message for joining group via domain capture
GitOrigin-RevId: 67ef924b2d80afb5e1de75fb6aab147263c0f33c
2025-09-10 08:06:07 +00:00
Liangjun Song
0f8b9d611d
Merge pull request #28202 from overleaf/ls-remove-user-features-for-past-due-stripe-subscriptions
...
Remove paid user features for past due Stripe subscriptions
GitOrigin-RevId: 07a97f90312db7f6e91cbf15201f71cbdeb2e33c
2025-09-09 08:06:52 +00:00
Andrew Rumble
48e726ec0d
Convert to ES modules
...
GitOrigin-RevId: cce5cf005597e4b4a2192f2cb6591eb69d119e62
2025-09-09 08:06:41 +00:00
Andrew Rumble
ee882204c8
Rename files
...
GitOrigin-RevId: cd89001ff0a7768c5b547a27d57861e5ba3aac0d
2025-09-09 08:06:36 +00:00
Tim Down
03d55e1d5d
Merge pull request #28246 from overleaf/td-ts-project-dashboard-jsdoc
...
Working JSDoc type annotations on project list controller
GitOrigin-RevId: b26833affb0fc2ecd38e869c2523e914eabe6548
2025-09-09 08:06:26 +00:00
Antoine Clausse
ccf3f13fd2
Merge pull request #28273 from overleaf/ac-some-web-esm-migration
...
[web] Convert some Features files to ES modules (part 1)
GitOrigin-RevId: d19b024efad315143e022143e2a2683df8071744
2025-09-09 08:06:22 +00:00
Antoine Clausse
3d45cc601f
[web] Add unlinking third-party logins ability from the admin-panel ( #28201 )
...
* Add `clearThirdPartyLogins`
Co-authored-by: Brian Gough <brian.gough@overleaf.com >
* Add a confirmation modal
* Show provider name from settings
* Replace "logins" by "identifiers" for consistency with current terminology
* Hide button if user has no third-party identifiers
* Update tests
* Add test "unlinks Google account"
---------
Co-authored-by: Brian Gough <brian.gough@overleaf.com >
GitOrigin-RevId: 45b9b5ce6fa2cbeba9d4daeda97cd6e500c8266c
2025-09-05 08:05:12 +00:00
Antoine Clausse
aae897a87e
[web] Update admin permissions to view/modify project contents ( #28162 )
...
* Split capability definitions `modify-project`/`view-project` into `modify-project-content`/`modify-project-setting`/`view-project-content`/`view-project-setting`
* Add admin capabilities check in AuthorizationManager
* Update checks in router
* Update frontend checks
* Remove UI elements for admins without `view-project-content`
* Update tests
* Remove `modify-project-content` from the roles' capabilities
* Update tests
* Add "with admin roles" tests in AuthorizationTests.mjs
GitOrigin-RevId: 3311bcb2da792968927b5b3703b24e069d0baf5b
2025-09-05 08:05:08 +00:00
Jakob Ackermann
77570e299a
Merge pull request #28265 from overleaf/jpa-double-compile
...
[web] add c2d -> c4d double compile test
GitOrigin-RevId: 186cfa867d3db5786c6d4888dfe1ca2f46a5bb0c
2025-09-04 08:05:10 +00:00
Jakob Ackermann
d0114ce7f9
Merge pull request #28264 from overleaf/jpa-synctex
...
[web] use standard request handling for SyncTeX requests
GitOrigin-RevId: ad5ba1834241d5939675f2533940ade741fc5abf
2025-09-04 08:05:06 +00:00
Jakob Ackermann
dce10be8e6
Merge pull request #28233 from overleaf/jpa-clsi-lb-clear
...
[web] clear clsi server id/output files in both clsi-lb backends
GitOrigin-RevId: b73ccc2017800d9abbb8f571efeb34f51c9f96c1
2025-09-04 08:04:58 +00:00
Andrew Rumble
665b80ed1e
Fix tests
...
GitOrigin-RevId: db5505ce356a88cb572c86affebebdd7b9e68ba9
2025-09-03 08:07:11 +00:00
Eric Mc Sween
639fe0ca59
Migrate pauseSubscription to zod
...
GitOrigin-RevId: 9c5237f151c84e37dc744c61cc4fa10762cf9ed1
2025-09-03 08:07:06 +00:00
Domagoj Kriskovic
e4cc12d5e4
Open selected file on project restore ( #28145 )
...
* Open selected file on project restore
* check if restorationState is "restoring" before opening a file
GitOrigin-RevId: c6f4cf69ecbe55b1d1949e4524fe7e39737c5487
2025-09-03 08:05:30 +00:00
roo hutton
7a5ec40c96
Merge pull request #28200 from overleaf/rh-trial-extension-fix
...
Fix calculation of extended trial renewal date
GitOrigin-RevId: 3a73b4bba37ebcccfc80d123a1a6e6c286320571
2025-09-02 08:05:21 +00:00
Jakob Ackermann
319a542e8d
[filestore] remove user files endpoints ( #28125 )
...
* [filestore] remove user files endpoints
* [web] remove user files integration for filestore
GitOrigin-RevId: 565fa68a659c07420ee6141d0f276b4e4d2972e0
2025-09-02 08:04:52 +00:00
roo hutton
f36d986292
Merge pull request #27643 from overleaf/rh-pause-cancel
...
Terminate Recurly subscription when cancelling during final month of pause
GitOrigin-RevId: 39e4c9534621f57b3e2783599ebe521959d7401f
2025-08-29 08:06:17 +00:00
Andrew Rumble
bcb3a9012e
Log error on web service start when hashedEmailSalt not set
...
GitOrigin-RevId: 67473de85d869b56aa1321391b03ddcceb95346b
2025-08-29 08:05:25 +00:00
Andrew Rumble
83ea72c08d
Add helper functions for creating change events
...
GitOrigin-RevId: 26a4cbc8e322c52e12cd3eb7f891d9914cefc70d
2025-08-29 08:05:17 +00:00
Andrew Rumble
54b85f3381
Add AnalyticsManager function for registering email changes
...
GitOrigin-RevId: ad42703fdc186936866b44c47492e3f653658f4f
2025-08-29 08:05:12 +00:00
Andrew Rumble
10bda506c2
Add email-change queue
...
GitOrigin-RevId: a5bbb4682223ee00db0c9a4070b8178a60eef83f
2025-08-29 08:05:08 +00:00
Liangjun Song
b823c878fe
Merge pull request #28110 from overleaf/ls-handle-manual-subscription-on-add-on-purchase-page
...
Handle manual subscription on AddOn purchase page
GitOrigin-RevId: 54281d3471d7c2b60d333e6264904b3744156138
2025-08-28 08:06:42 +00:00
Miguel Serrano
208b7ccde9
Revert "Merge pull request #27679 from overleaf/msm-aws-sdk-upgrade" ( #28151 )
...
This reverts commit 4989ae920d8b7fd9e79623947b7c40bcc2e56d92.
GitOrigin-RevId: 541d95bfeaa7ce820e8af67f646f013fe4fe5d21
2025-08-28 08:05:52 +00:00
Miguel Serrano
0fa25c54dd
Merge pull request #27679 from overleaf/msm-aws-sdk-upgrade
...
Upgrade `aws-sdk` to v3
GitOrigin-RevId: 4989ae920d8b7fd9e79623947b7c40bcc2e56d92
2025-08-28 08:05:36 +00:00
Domagoj Kriskovic
511d2d104b
Add support for handling deleted root document in RestoreManager ( #28008 )
...
* Skip opening root document if delete originated from a file-restore
* handle project-restore origin
* Refactor isFileRestore logic
* Add support for handling deleted root document in RestoreManager
GitOrigin-RevId: 837144aa6e269cbffebf82624f58e8219fe654c4
2025-08-27 08:05:30 +00:00
Eric Mc Sween
b2df393bbb
Merge pull request #28098 from overleaf/em-dsmp-chat-event
...
Send a DSMP event when a chat message is sent
GitOrigin-RevId: 062476676c91a4edf3d6f837d60ad16c7f912771
2025-08-26 08:05:36 +00:00
Domagoj Kriskovic
4308881738
[web] change the order when creating a memebers list in permissions checks ( #28063 )
...
GitOrigin-RevId: 73fd9218841d189dc95edec86f09d451005e6189
2025-08-26 08:05:13 +00:00
Eric Mc Sween
7c811fef11
Merge pull request #28077 from overleaf/em-promisify-chat-controller
...
Promisify ChatController
GitOrigin-RevId: c2af5f7bc24b1e6c682bb1dfd1146c3dcc90ae25
2025-08-25 08:05:42 +00:00
Domagoj Kriskovic
13d5c40cde
Add getThread in Chat service and use it in AuthorizationMiddleware ( #28041 )
...
* Add getThread in Chat service and use it in AuthorizationMiddleware
* ensure user_id is a string, not ObjectId
* fix tests
GitOrigin-RevId: 42d63366b9b9350d7cdbcbc3b9f4761d9f55b49a
2025-08-25 08:05:25 +00:00
Antoine Clausse
2853e7762e
[web] Add admin permission modify-group-manager ( #27642 )
...
* Add capacity `modify-group-manager`
* Check `modify-group-manager` (backend)
* Check `modify-group-manager` (frontend)
* Update tests
* Rename AdminPermissions to mjs
* Add `ol-adminCapabilities` in frontend tests
* Allow modifying group managers if `adminRolesEnabled` is false
* Add `adminPrivilegeAvailable` check
* Update: set `ol-canModify` boolean instead of `ol-adminCapabilities`
* Mock `hasAnyAccess`
* Use `hasAdminCapability` helper
* Add `ol-canModify` to types
* Remove `isAdminMiddleware` as we don't want to relax the permissions for now
* Fix: pass `res` to `hasAnyAccess` (!!)
* * Check `hasWriteAccess` (`hasAdminCapability('modify-group-manager')` or `staffAccess.groupManagement`) in the Pug file
* Fix: Check `hasWriteAccess` in the publisher and institution pug files (!)
* Revert `hasAnyAccess` changes
* Rename `ol-canModify` to `ol-hasWriteAccess` for consistency with other variables
* Remove redundant file AdminPermissions.mjs
* Update unit test
* Revert changes to UserMembershipController.test.mjs
* Rename to `requireGroupManagersWriteAccess`
GitOrigin-RevId: f3f0b1b17abd1d2f0c363688e87d9063de886e3c
2025-08-21 08:05:07 +00:00
Jessica Lawshe
a3a7b0ea18
Merge pull request #27894 from overleaf/ii-domain-capture-join-button
...
[web] Domain capture join button
GitOrigin-RevId: aec6033f6776e9384c77fe0ef609c65b13a90f87
2025-08-20 08:06:21 +00:00
Jessica Lawshe
c1c5b0d0ce
Merge pull request #27834 from overleaf/ii-domain-capture-not-in-group-redirect
...
[web] Redirect to domain capture page
GitOrigin-RevId: 15d2b8046beb5a40fc4937c337ee9655abaed8fd
2025-08-20 08:06:16 +00:00
MoxAmber
8e1c2d27d7
Merge pull request #27677 from overleaf/as-compile-timeout-enforcement
...
[web] 10s Compile Timeout - Enforcement Phase
GitOrigin-RevId: 3930eb376cc1293409259e073032218e09d5270e
2025-08-20 08:06:01 +00:00
Antoine Clausse
2c44d65785
[web] Add requireAdminRoles param to hasAdminCapability ( #28006 )
...
* Add `requireAdminRoles` param to `hasAdminCapability`
https://github.com/overleaf/internal/pull/27965#discussion_r2284808889
Co-authored-by: Andrew Rumble <andrew.rumble@overleaf.com >
* Update test
---------
Co-authored-by: Andrew Rumble <andrew.rumble@overleaf.com >
GitOrigin-RevId: 83f8af84debc70c7a2e294638747369c786be22f
2025-08-20 08:05:52 +00:00
Brian Gough
f183a1dfbc
add option to disable link sharing ( #27626 )
...
* add option to remove link-sharing from backend
* restrict make link-sharing in the frontend based on capability
* extend e2e project-sharing tests to cover OVERLEAF_DISABLE_LINK_SHARING=true
* throw an error when link sharing is disabled in TokenAccessHandler
* throw errors when attempting to add users to projects with link sharing disabled
* Update server-ce/test/project-sharing.spec.ts
Co-authored-by: Jakob Ackermann <jakob.ackermann@overleaf.com >
* add tests for existing access when link sharing is disabled
* update tests to specify access restrictions for read-only and read-write link shared projects
* [web] block access to legacy public project with link-sharing disabled
---------
Co-authored-by: Jakob Ackermann <jakob.ackermann@overleaf.com >
GitOrigin-RevId: 5f194dbcb790e973e427c58a3a4a738a5dd74cb4
2025-08-20 08:05:33 +00:00
Antoine Clausse
d9fc34ad80
Add utility for converting CIDR ranges to IP ranges ( #26904 )
...
* Add utility for converting CIDR ranges to IP ranges
* Add CLI support for IP matcher ranges script
GitOrigin-RevId: 1432bf3efa269c0e8e9d58fce1575bb01d694b2f
2025-08-19 08:05:22 +00:00
Eric Mc Sween
ca845ad532
Merge pull request #27903 from overleaf/em-unit-tests-redis
...
Make Redis available to unit tests
GitOrigin-RevId: 7bd403d9ad4be504a87bc9108d60686e6c2a9fb1
2025-08-18 08:05:40 +00:00
Antoine Clausse
ba97b96815
[web] Add admin permissions modify-group-member and modify-managed-group-member ( #27665 )
...
* Add capability `modify-managed-group-member` & `modify-group-member`
* Check `modify-managed-group-member` & `modify-group-member` (backend)
* Check `modify-managed-group-member` & `modify-group-member` (frontend)
* Update tests
* Update with `ol-hasWriteAccess` flag
* Update tests
* Move functions to AdminAuthorizationHelper.js
* Update import to fix build error
* Add `ol-hasWriteAccess` to types
* Use `hasAdminAccess()` instead of `req?.user?.isAdmin`
* Add tests on `/manage/groups/:id/invites` depending on admin roles
* Reuse `UserMembershipAuthorization.hasAdminCapability`
* Fix: Add entityAccess check
* Update unit test
* Rename `hasAdminGroupMemberCapability` to `hasModifyGroupMemberCapability`
* Remove useless and redundant `hasWriteAccess` check
* Restore stub in afterEach
GitOrigin-RevId: 4b6d83751121b43d4c19d0dbd82a4833cf7a6f24
2025-08-15 08:05:57 +00:00
Liangjun Song
1acb68f41c
Merge pull request #27800 from overleaf/ls-support-create-stripe-customer-from-admin-panel
...
Support creating Stripe customer from admin panel
GitOrigin-RevId: 3e23008e1f4690e6f3737b5689e20958bf468f82
2025-08-15 08:05:34 +00:00