FOUR-25401: [45809] Project export not working #8632
+13
−10
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.





Issue & Reproduction Steps
Exporting a project that references users in massive groups (e.g., banner_active with ~64k members) caused the export to expand group memberships, pulling tens of thousands of users. The export exceeded memory/time limits and returned 500.
Example payload: project with 6 assets (Project, Process, Script, DataSource, 3 Screens) where the Script has run_as_user_id = 1 and the Process/Launchpad/SavedSearches reference many groups (tele_, glda_, banner_active, etc.). Reproducing on such an instance triggered fatal timeouts.
Solution
How to Test
Preferably test locally, use the DB generated in the SCO ticket and exported project json in the FOUR ticket..
Related Tickets & Packages
ci:deploy
Code Review Checklist
Note
Avoid exporting/importing group memberships; only group permissions are referenced/synced, with tests adjusted to reflect no membership copying.
GroupExporterno longer expands or imports users; logs skips and only handlespermissionsreference on export and syncs permissions on import.GroupExporterTest::testGroupWithUsersmarked skipped due to removed member export/import.UserExporterTestupdated to assert group memberships are not copied during import (original memberships remain).Written by Cursor Bugbot for commit 2d0da95. This will update automatically on new commits. Configure here.