Skip to content
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

Merged
merged 6 commits into from
Oct 18, 2024

Conversation

pierre-lehnen-rc
Copy link
Contributor

@pierre-lehnen-rc pierre-lehnen-rc commented Oct 17, 2024

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

Copy link
Contributor

dionisio-bot bot commented Oct 17, 2024

Looks like this PR is not ready to merge, because of the following issues:

  • This PR is missing the 'stat: QA assured' label

Please fix the issues and try again

If you have any trouble, please check the PR guidelines

Copy link

changeset-bot bot commented Oct 17, 2024

🦋 Changeset detected

Latest commit: f06cfb8

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 35 packages
Name Type
@rocket.chat/core-typings Major
@rocket.chat/rest-typings Major
@rocket.chat/meteor Major
@rocket.chat/uikit-playground Patch
@rocket.chat/api-client Patch
@rocket.chat/apps Patch
@rocket.chat/core-services Patch
@rocket.chat/cron Patch
@rocket.chat/ddp-client Patch
@rocket.chat/freeswitch Patch
@rocket.chat/fuselage-ui-kit Major
@rocket.chat/gazzodown Major
@rocket.chat/livechat Patch
@rocket.chat/model-typings Patch
@rocket.chat/ui-contexts Major
@rocket.chat/account-service Patch
@rocket.chat/authorization-service Patch
@rocket.chat/ddp-streamer Patch
@rocket.chat/omnichannel-transcript Patch
@rocket.chat/presence-service Patch
@rocket.chat/queue-worker Patch
@rocket.chat/stream-hub-service Patch
@rocket.chat/license Patch
@rocket.chat/omnichannel-services Patch
@rocket.chat/pdf-worker Patch
@rocket.chat/presence Patch
rocketchat-services Patch
@rocket.chat/network-broker Patch
@rocket.chat/models Patch
@rocket.chat/ui-avatar Major
@rocket.chat/ui-client Major
@rocket.chat/ui-video-conf Major
@rocket.chat/ui-voip Major
@rocket.chat/web-ui-registration Major
@rocket.chat/instance-status Patch

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

@pierre-lehnen-rc pierre-lehnen-rc added this to the 7.0 milestone Oct 17, 2024
@pierre-lehnen-rc pierre-lehnen-rc marked this pull request as ready for review October 17, 2024 17:15
@pierre-lehnen-rc pierre-lehnen-rc requested review from a team as code owners October 17, 2024 17:15
Copy link
Contributor

github-actions bot commented Oct 17, 2024

PR Preview Action v1.4.8
🚀 Deployed preview to https://RocketChat.github.io/Rocket.Chat/pr-preview/pr-33630/
on branch gh-pages at 2024-10-17 22:14 UTC

Copy link

codecov bot commented Oct 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.85%. Comparing base (0312349) to head (f06cfb8).
Report is 18 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@             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     
Flag Coverage Δ
unit 74.85% <ø> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

@pierre-lehnen-rc pierre-lehnen-rc added the stat: QA assured Means it has been tested and approved by a company insider label Oct 17, 2024
@dionisio-bot dionisio-bot bot added the stat: ready to merge PR tested and approved waiting for merge label Oct 17, 2024
@pierre-lehnen-rc pierre-lehnen-rc removed the stat: QA assured Means it has been tested and approved by a company insider label Oct 17, 2024
@dionisio-bot dionisio-bot bot removed the stat: ready to merge PR tested and approved waiting for merge label Oct 17, 2024
@ggazzo ggazzo merged commit 509143d into develop Oct 18, 2024
50 checks passed
@ggazzo ggazzo deleted the feat/shrink-startImport-payload branch October 18, 2024 13:26
This was referenced Oct 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants