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

Upgrades Angular-audio, Mutagen and MidiJs #6912

Merged
merged 12 commits into from
Jun 21, 2019
Merged

Conversation

NishealJ
Copy link
Contributor

@NishealJ NishealJ commented Jun 13, 2019

Explanation

This PR Upgrades Angular-audio, Mutagen and MidiJs.
for testing doc visit here

Checklist

  • The PR title starts with "Fix #bugnum: ", followed by a short, clear summary of the changes. (If this PR fixes part of an issue, prefix the title with "Fix part of #bugnum: ...".)
  • The PR explanation includes the words "Fixes #bugnum: ..." (or "Fixes part of #bugnum" if the PR only partially fixes an issue).
  • The linter/Karma presubmit checks have passed.
    • These should run automatically, but if not, you can manually trigger them locally using python scripts/pre_commit_linter.py and bash scripts/run_frontend_tests.sh.
  • The PR is made from a branch that's not called "develop".
  • The PR has an appropriate "CHANGELOG: ..." label (If you are unsure of which label to add, ask the reviewers for guidance).
  • The PR follows the style guide.
  • The PR addresses the points mentioned in the codeowner checks for the files/folders changed. (See the codeowner's wiki page.)
  • The PR is assigned to an appropriate reviewer.
    • If you're a new contributor, please ask on Gitter for someone to assign a reviewer and don't tick this checkbox.
    • If you're not sure who the appropriate reviewer is, please assign to the issue's "owner" -- see the "talk-to" label on the issue. Do not only request the review but also add the reviewer as an assignee.

@NishealJ
Copy link
Contributor Author

Hi @DubeySandeep & @apb7,
here is the testing doc

@codecov
Copy link

codecov bot commented Jun 13, 2019

Codecov Report

Merging #6912 into develop will decrease coverage by 0.18%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #6912      +/-   ##
===========================================
- Coverage     95.5%   95.32%   -0.19%     
===========================================
  Files          371      371              
  Lines        51058    50558     -500     
===========================================
- Hits         48762    48193     -569     
- Misses        2296     2365      +69
Impacted Files Coverage Δ
appengine_config.py 50% <ø> (ø) ⬆️
core/tests/gae_suite.py 74.41% <ø> (ø) ⬆️
core/controllers/acl_decorators.py 88.56% <0%> (-10.43%) ⬇️
core/domain/topic_services.py 92.44% <0%> (-1.14%) ⬇️
core/domain/skill_services.py 83.52% <0%> (-0.4%) ⬇️
core/controllers/editor_test.py 99.57% <0%> (-0.01%) ⬇️
core/controllers/question_editor_test.py 100% <0%> (ø) ⬆️
core/controllers/resources_test.py 100% <0%> (ø) ⬆️
core/controllers/creator_dashboard_test.py 100% <0%> (ø) ⬆️
core/controllers/acl_decorators_test.py 100% <0%> (ø) ⬆️
... and 5 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 742b1f8...0db9e10. Read the comment docs.

@codecov
Copy link

codecov bot commented Jun 13, 2019

Codecov Report

Merging #6912 into develop will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop    #6912   +/-   ##
========================================
  Coverage    95.86%   95.86%           
========================================
  Files          371      371           
  Lines        52090    52090           
========================================
  Hits         49934    49934           
  Misses        2156     2156
Impacted Files Coverage Δ
core/tests/gae_suite.py 74.41% <ø> (ø) ⬆️
appengine_config.py 50% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c1c2c00...695c14a. Read the comment docs.

Copy link
Contributor

@apb7 apb7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @NishealJ, just a minor comment. Left a comment on the testing doc as well. Thanks!
Also, @DubeySandeep, if you're around, would you like to take a pass on the PR and/or the test doc? Thanks!

manifest.json Outdated
"rootDirPrefix": "MIDI.js-",
"targetDir": "midi-js-2ef687"
"targetDirPrefix": "MIDI.js-"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use targetDir field specifying the commit, as in the previous pattern.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this has been addressed yet?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @apb7, sorry missed has been addressed now. Thanks!

@DubeySandeep
Copy link
Member

@NishealJ This PR needs testing on the following (which isn't documented in your test doc):
For mutagen:

  • Test uploading an audio file in a different format.
  • Test uploading audio at different bitRate (You can find audios here)
  • Test changing the extension of audio file (Like x.wav --> x.mp3).

For ng-audio:

  • Can play uploaded or recorded audio in the exploration player.
  • Can play uploaded or recorded audio in the translation tab.

For MIDI: (I think this is related to interaction)

  • Test this on MusicalNoteInteraction.

These are the overview of the places where you should test these upgrades. Also, you can ping (or assign) @mzaman07 for testing this PR as a team lead for the Voiceover and translation project.

@apb7
Copy link
Contributor

apb7 commented Jun 15, 2019

@DubeySandeep, thank you for these pointers. I am adding a link to this comment for reference in the testing doc. Thanks!

@NishealJ
Copy link
Contributor Author

Hi @apb7 & @DubeySandeep,
I've updated the testing doc and i've tested for the following as suggested by @DubeySandeep
I've tested that the audio is uploaded recorded and played in all the views
I've tested that audio in different bitrates also provide good outcome and different file formats are handled correctly

For MidiJs, i,ve tested it with musical notes interaction and it works well

Thanks

Copy link
Contributor

@apb7 apb7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@NishealJ, please address existing review comments before requesting another review. Thanks!

manifest.json Outdated
"rootDirPrefix": "MIDI.js-",
"targetDir": "midi-js-2ef687"
"targetDirPrefix": "MIDI.js-"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this has been addressed yet?

Copy link
Contributor

@apb7 apb7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, @NishealJ! @DubeySandeep, can you please take a final pass (for the testing doc too)? Thanks!

@@ -1832,6 +1832,7 @@
"anymatch": "^2.0.0",
"async-each": "^1.0.1",
"braces": "^2.3.2",
"fsevents": "^1.2.7",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@NishealJ, please revert these changes.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done @apb7 Thanks!

Copy link
Member

@DubeySandeep DubeySandeep left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@NishealJ, Thanks for the PR, LGTM!

Can you please check these two points as well:

  • Uploading mp3 audio of duration > 5 mins. fails in the backend.
  • Can you please check whether this issue is resolved in the new mutagen?

@DubeySandeep
Copy link
Member

@vojtechjelinek, @seanlip & @nithusha21, Can you please review this PR as a code owner? Thanks! :)

@NishealJ
Copy link
Contributor Author

  • this issue

Hi @DubeySandeep,

  1. yes on uploading audio of duration > 5 min fails at the backend with the expected error.

Screenshot 2019-06-17 at 2 35 23 PM

  1. This issues seems to be still there, to reproduce this I have saved "weloveoppia" as a .mp3 file hence making a false .mp3 On uploading this it throws mutagen.MutagenError which raises an error "Audio not recognized"

Screenshot 2019-06-17 at 2 41 21 PM

Copy link
Contributor

@vojtechjelinek vojtechjelinek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM from code owner's perspective. Thanks!

@vojtechjelinek vojtechjelinek removed their assignment Jun 17, 2019
Copy link
Member

@seanlip seanlip left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks -- LGTM as codeowner

@seanlip
Copy link
Member

seanlip commented Jun 17, 2019

@nithusha21 PTAL as codeowner

Copy link
Contributor

@nithusha21 nithusha21 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM as a codeowner

@nithusha21 nithusha21 removed their assignment Jun 18, 2019
@nithusha21
Copy link
Contributor

Please note... Travis is failing...

@NishealJ NishealJ requested a review from kevinlee12 as a code owner June 18, 2019 11:04
@NishealJ NishealJ added the WIP label Jun 19, 2019
@oppiabot
Copy link

oppiabot bot commented Jun 19, 2019

Hi @NishealJ. Due to recent changes in the "develop" branch, this PR now has a merge conflict. Please follow this link if you need help resolving the conflict, so that the PR can be merged. Thanks!

@NishealJ
Copy link
Contributor Author

Hi @apb7 & @seanlip, I Think this can go in Thanks!

Copy link
Contributor

@kevinlee12 kevinlee12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm! (from code owner's)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants