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

Add a method to get estimated export size in IMigrator #32206

Merged
merged 8 commits into from
May 31, 2022

Conversation

come-nc
Copy link
Contributor

@come-nc come-nc commented Apr 28, 2022

Signed-off-by: Côme Chilliet come.chilliet@nextcloud.com

@come-nc come-nc added the 2. developing Work in progress label Apr 28, 2022
@come-nc come-nc added this to the Nextcloud 24 milestone Apr 28, 2022
@come-nc come-nc self-assigned this Apr 28, 2022
@come-nc come-nc requested review from Pytal, tcitworld, a team, ArtificialOwl, skjnldsv and vanpertsch and removed request for a team April 28, 2022 10:08
@blizzz blizzz modified the milestones: Nextcloud 24, Nextcloud 25 Apr 28, 2022
@blizzz
Copy link
Member

blizzz commented Apr 28, 2022

master is 25 :)

@come-nc
Copy link
Contributor Author

come-nc commented Apr 28, 2022

/backport to stable24

@Pytal Pytal self-assigned this Apr 29, 2022
@Pytal Pytal force-pushed the enh/migrator-add-estimatedsize-getter branch from 76d176f to 2f59a05 Compare April 29, 2022 03:05
@Pytal
Copy link
Member

Pytal commented Apr 29, 2022

Using a sample calendar that would be representative a regular user's calendar and querying

select avg(size) from oc_calendarobjects where calendarid = <id>

resulted in ~450B, while using a sample address book without images and querying

select avg(size) from oc_cards where addressbookid = <id>

resulted in ~350B

Base64 encoded contact image sizes can't be quickly estimated currently given that uploaded images are not re-encoded on upload to target a size range nor any other way available which would not require reading the image data itself, so estimation of those are not taken into account and out of scope for now

@Pytal Pytal added enhancement 3. to review Waiting for reviews feature: user migration Related to User migration and removed 2. developing Work in progress labels Apr 29, 2022
@Pytal Pytal requested review from tcitworld and artonge April 29, 2022 03:25
@come-nc come-nc requested a review from CarlSchwan May 2, 2022 10:10
@come-nc
Copy link
Contributor Author

come-nc commented May 17, 2022

  • Move new method to new interface (capability mode)

(This is because 24 is now out we cannot modify IMigrator)

@come-nc come-nc force-pushed the enh/migrator-add-estimatedsize-getter branch from b08ad17 to 9d8b4dd Compare May 24, 2022 08:03
@come-nc
Copy link
Contributor Author

come-nc commented May 24, 2022

@Pytal Ready for review

@Pytal Pytal force-pushed the enh/migrator-add-estimatedsize-getter branch from 9d8b4dd to dc832d1 Compare May 24, 2022 23:57
@Pytal
Copy link
Member

Pytal commented May 25, 2022

Commits overwritten by force push have been restored

@come-nc
Copy link
Contributor Author

come-nc commented May 30, 2022

/rebase

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
…ator

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
@nextcloud-command nextcloud-command force-pushed the enh/migrator-add-estimatedsize-getter branch from dc832d1 to faa3a94 Compare May 30, 2022 07:36
@Pytal Pytal added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels May 30, 2022
come-nc and others added 4 commits May 30, 2022 17:49
…edSize

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Signed-off-by: Christopher Ng <chrng8@gmail.com>
@Pytal Pytal force-pushed the enh/migrator-add-estimatedsize-getter branch from faa3a94 to d009e4d Compare May 30, 2022 17:49
@Pytal
Copy link
Member

Pytal commented May 30, 2022

Updated autoloaders

@Pytal Pytal force-pushed the enh/migrator-add-estimatedsize-getter branch from d009e4d to ff70912 Compare May 30, 2022 21:45
Signed-off-by: Christopher Ng <chrng8@gmail.com>
@Pytal Pytal force-pushed the enh/migrator-add-estimatedsize-getter branch from ff70912 to aaedc95 Compare May 30, 2022 22:48
@Pytal
Copy link
Member

Pytal commented May 31, 2022

CI failure unrelated

@Pytal Pytal merged commit 4873faa into master May 31, 2022
@Pytal Pytal deleted the enh/migrator-add-estimatedsize-getter branch May 31, 2022 00:16
@Pytal Pytal added the pending documentation This pull request needs an associated documentation update label Jul 22, 2022
@Pytal Pytal removed the pending documentation This pull request needs an associated documentation update label Nov 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish enhancement feature: user migration Related to User migration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants