-
Notifications
You must be signed in to change notification settings - Fork 10.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat!: shrink payload of the startImport endpoint #33630
Conversation
Looks like this PR is not ready to merge, because of the following issues:
Please fix the issues and try again If you have any trouble, please check the PR guidelines |
🦋 Changeset detectedLatest commit: f06cfb8 The changes in this PR will be included in the next version bump. This PR includes changesets to release 35 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #33630 +/- ##
===========================================
+ Coverage 74.81% 74.85% +0.04%
===========================================
Files 469 470 +1
Lines 20687 20743 +56
Branches 5278 5294 +16
===========================================
+ Hits 15477 15528 +51
Misses 4595 4595
- Partials 615 620 +5
Flags with carried forward coverage won't be shown. Click here to find out more. |
Proposed changes (including videos or screenshots)
The startImport endpoint requires a list of users and channels that should be imported. Back when it was first implemented, this list was configured to use the same type as another list that is already being used elsewhere in the import process (an instance of the ImporterSelection class), but that class includes a lot of extra information that is not strictly required for this endpoint, such as the name and email of every user and name and creator of every channel. This caused the payload of this endpoint to get very large when importing a huge amount of records.
This PR changes the signature of the endpoint to simply receive a list of user ids and channel ids, or, when none of the users/channels were unchecked, a simple "all: true" flag.
Issue(s)
CONN-366
Steps to test or reproduce
Further comments