-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Fix part of #3704: make audio download URL safe; don't show flagging modal if all translations are flagged; use URL interpolation for modals. #3709
Conversation
…if all translations are flagged; use templateUrl for modals.
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 just realized we're imposing a 1MB file size limit on the backend... can we get rid of that or raise to maybe something like 10MB?
Audio playback works now! Both from the creator view and the player view.
I did notice that if playing audio in the preview tab and then switching back to the creator, the audio still plays. We should probably stop it? Same with when switching from the creator view to learner view.
The creator can also play/stop multiple audio's in the creator view at once, but I don't think that matters too much. A better behavior might be to pause/stop other audio's when starting a new one. But this seems like it might not be worth the trouble.
Another random note is that it'd be nice to have more tests on uploading files since I've pretty much just been uploading files recorded on my linux audio recorder application... I still don't have that great of a feel of how picky mutagen is about things.
Code lgtm. I don't see anything wrong in this PR itself--will let you decide if you want to add more to it. Thanks!
Thanks @tjiang11!
I think this is imposed only in the dev server by App Engine, since in that case we store files in the datastore. So probably a no-op. I couldn't find an explicit 1MB check in the code we've written.
Yeah, I saw this as well. I don't think we need to fix it urgently but I'll file an issue.
I think we'll learn with experience! If we can update the test server with the new functionality then perhaps we can test this during release-testing time. |
Codecov Report
@@ Coverage Diff @@
## develop #3709 +/- ##
===========================================
+ Coverage 45.07% 45.09% +0.01%
===========================================
Files 264 264
Lines 20408 20414 +6
Branches 3173 3174 +1
===========================================
+ Hits 9199 9205 +6
Misses 11209 11209
Continue to review full report at Codecov.
|
* upstream/develop: (39 commits) Add a one-off job to list which explorations use gadgets; remove old fallbacks job. (oppia#3717) Fix oppia#2998 implement collection skills update commands (oppia#3710) Improvements and bug fixes to changes introduced by PR oppia#3671 (oppia#3684) Fix oppia#3688: refactoring ExplorationStatusHandler to remove unpublish and publicize functionality as it is not called from frontend. (oppia#3715) fix oppia#3698: Shift exception handling for NotLoggedInException so that it does not generate log errors. (oppia#3714) Revert "Fix oppia#3707 Change text of collection learner view "start here"" (oppia#3713) Fix oppia#3701 Fixed Continue button name issue (oppia#3711) Fix oppia#3467: Introduce re-training and add_to_training_queue methods (oppia#3650) Fix oppia#3707 Change text of collection learner view "start here" (oppia#3700) Audio fixes: make audio download URL safe; don't show flagging modal if all translations are flagged; use templateUrl for modals. (oppia#3709) Learner audio updates (oppia#3705) Move hint button to left corner for supplemental cards (oppia#3702) Make the representation of the learner's 'Continue' answer more conversational. (oppia#3675) Add editor for audio translations (oppia#3692) Fix oppia#3686 fixed text overflow for contributors list (oppia#3697) Fix oppia#3551: Manually set cookie value during language change (oppia#3622) Learner view audio translations (oppia#3681) The sixth milestone of the learner dashboard. (oppia#3680) Routine update of translations. (oppia#3685) SiteWide ACL Refactor: Milestone 3.1 (oppia#3682) ...
* upstream/develop: (28 commits) Preloading of audio and bandwidth confirmation (oppia#3727) Fix oppia#3693: Deprecate ClassifierDataModel and update ClassifierTrainingJobModel (oppia#3734) Fix part of oppia#3453: Removed jinja template in editor_navigation_directive (oppia#3732) Eliminates stray tick mark (oppia#3731) Fix oppia#3453: Removed jinja template in collection editor navigation bar directive (oppia#3723) Fix oppia#3726: prevent graph SVG from overlapping modal footer buttons. (oppia#3728) address sean review comments Add a one-off job to list which explorations use gadgets; remove old fallbacks job. (oppia#3717) fix linting remove jinja template in create_activity_modal Fix oppia#2998 implement collection skills update commands (oppia#3710) Improvements and bug fixes to changes introduced by PR oppia#3671 (oppia#3684) Fix oppia#3688: refactoring ExplorationStatusHandler to remove unpublish and publicize functionality as it is not called from frontend. (oppia#3715) fix oppia#3698: Shift exception handling for NotLoggedInException so that it does not generate log errors. (oppia#3714) Revert "Fix oppia#3707 Change text of collection learner view "start here"" (oppia#3713) Fix oppia#3701 Fixed Continue button name issue (oppia#3711) Fix oppia#3467: Introduce re-training and add_to_training_queue methods (oppia#3650) Fix oppia#3707 Change text of collection learner view "start here" (oppia#3700) Audio fixes: make audio download URL safe; don't show flagging modal if all translations are flagged; use templateUrl for modals. (oppia#3709) Learner audio updates (oppia#3705) ...
This PR has a bunch of miscellaneous audio (and other) fixes: