-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Show small note in export stating about invalid export files #19680
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
base: master
Are you sure you want to change the base?
Show small note in export stating about invalid export files #19680
Conversation
d9bbda4 to
ac89949
Compare
|
How does |
If you happen to compress a table that surpasses the size, it would end up downloading a small 191 byte file which -when opened with a hex editor- would simply state: |
|
Yes, so the error talks about |
|
oh doh you're absolutely right hahaha I did previously look into the upload limit so totally forgot we had memory limit as well :) my bad! |
Shows up a small hint dialog explaining that compression uses PHP memory which can produce invalid files Signed-off-by: camilo <camilo@jouwweb.nl>
ac89949 to
758c8cd
Compare
| <label for="compression" class="col-form-label">{{ t('Compression:') }}</label> | ||
| <label for="compression" class="col-form-label"> | ||
| {{ t('Compression:') }} | ||
| {{ show_hint('Compressing big tables requires PHP memory. Be aware that this might produce invalid files %s'|format(get_formatted_maximum_upload_size(export_memory_limit))) }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you post a screenshot?
the sentence seems incomplete
Also, we could find a way to to figure out out of memory and abort the export
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| {{ show_hint('Compressing big tables requires PHP memory. Be aware that this might produce invalid files %s'|format(get_formatted_maximum_upload_size(export_memory_limit))) }} | |
| {{ show_hint('Compressing big tables requires PHP memory. Be aware that this might produce invalid files. Current memory limit: %s'|format(get_formatted_maximum_upload_size(export_memory_limit))) }} |
Description
While exporting tables using compression, we would sometimes get invalid files. We turned out to be hitting PHP maximum memory limit.
This commit will add a small non-obstrusive hint about that.
Fixes # -> (no issue made for it)
Before submitting pull request, please review the following checklist:
Signed-off-byline as described in our DCO. This ensures that the work you're submitting is your own creation.I did not create a test for this, since the change is purely cosmetic and doesn't fix anything.