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
Added alert message for extensions required #15643
Conversation
Codecov Report
@@ Coverage Diff @@
## QA_5_0 #15643 +/- ##
============================================
- Coverage 53.05% 53.05% -0.01%
Complexity 14156 14156
============================================
Files 482 482
Lines 62132 62134 +2
============================================
Hits 32965 32965
- Misses 29167 29169 +2 |
@williamdes, I have made the changes. Please review. |
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.
Quite good, added some minor changes
@williamdes I have made the changes. Please review. |
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.
💯
@kartik1000 You mentioned #14326 but I see no implementation for the export page |
Oh, I didn't read it was the same as one of the issues was even mentioned in the other. No , the alert is only for import. |
Okay |
@williamdes @MauricioFauth Can we do a review so that we can look to merge this as this was listed as a high priority issue? |
@kartik1000 Can you add a bit of JS code to show the error only when compression is selected ? |
@williamdes Ok I will add those checks :) |
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.
👍
Maybe you need yarn run js-lint --fix
templates/display/import/import.twig
Outdated
{% if extension_bz2 == false %} | ||
<div class="formelementrow" id="alert_message_for_bz2"> | ||
<p> | ||
<strong>{% trans 'Please enable the php bz2 extension to import a php bz2 file else it will result in a blank screen' %}</strong> |
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.
I think it's better to fix the blank page instead of showing this message.
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.
I agree, a back-end check + message is required
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
See: https://filext.com/file-extension/BZ2 See: https://filext.com/file-extension/ZIP Co-authored-by: William Desportes <williamdes@wdes.fr> Signed-off-by: Kartik Kathuria <kathuriakartik0@gmail.com>
Closed by 51b04c9. Thanks for your contribution. |
Signed-off-by: Kartik Kathuria kathuriakartik0@gmail.com
Description
.
This will add an alert message if the user is trying to import a file with zip extension or bzip2 extension that the required extensions must be present or enabled to import a zip or bzip2 file.
Fixes #15328
Before submitting pull request, please review the following checklist:
Signed-off-by
line as described in our DCO. This ensures that the work you're submitting is your own creation.