-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Feedback form temporary files #21133
Conversation
Generated by 🚫 Danger |
Quality Gate failedFailed conditions See analysis details on SonarCloud Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
📲 You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
|
📲 You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## trunk #21133 +/- ##
==========================================
- Coverage 40.57% 40.56% -0.01%
==========================================
Files 1535 1535
Lines 70505 70516 +11
Branches 11659 11662 +3
==========================================
Hits 28607 28607
- Misses 39313 39324 +11
Partials 2585 2585 ☔ View full report in Codecov by Sentry. |
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.
The feedback flow worked as expected for me. However, I noted that I encountered the previously reported issue where video files selected from the "Browse" option do not create a preview thumbnail.
@dcalhoun Thank you for the review! I'm surprised about the preview issue since the preview relies on the Coil library. I'm not able to reproduce this, and I don't think it's a serious issue, but I'm wondering if there's anything in the log that indicates what the problem is? |
One item that stands out to me from "Browse" is the following:
The "Choose media" approach has a similar error log, even though it successfully creates a preview thumbnail:
For context, this is a Samsung Galaxy S20 FE running Android 13. Selecting a photo within Google Drive via "Browse" successfully creates a preview thumbnail; selecting a video does not. |
Fixes #21132
When I coded the feedback form, I neglected to delete the temporary files created when uploading attachments. This PR corrects this oversight. Also, previously the temporary files were being created as soon as an attachment was added, but now they're created as part of the upload process.
To test, simply verify that uploading attachments from the feedback form still works as expected, and be sure to close any tickets by visiting
https://a8c.zendesk.com/agent/tickets/[TICKET-NUMBER]
.Note: The SonarCloud warning about the "delete" function can be ignored.