-
Notifications
You must be signed in to change notification settings - Fork 4.2k
add check transcript ajax for edx_video_id #17938
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
add check transcript ajax for edx_video_id #17938
Conversation
|
Your PR has finished running tests. |
6e1784f to
6784ee7
Compare
39411c3 to
eec9b74
Compare
|
Your PR has finished running tests. |
eec9b74 to
de95b17
Compare
|
Your PR has finished running tests. |
de95b17 to
7eaef32
Compare
|
Your PR has finished running tests. |
1 similar comment
|
Your PR has finished running tests. |
788ee72 to
fe05b18
Compare
|
Your PR has finished running tests. |
1 similar comment
|
Your PR has finished running tests. |
6e3680c to
c21461d
Compare
|
Your PR has finished running tests. |
1 similar comment
|
Your PR has finished running tests. |
|
jenkins run all |
|
Your PR has finished running tests. |
1 similar comment
|
Your PR has finished running tests. |
0bbf6c4 to
bc6b589
Compare
|
Your PR has finished running tests. |
1 similar comment
|
Your PR has finished running tests. |
bc6b589 to
6fc318b
Compare
|
Your PR has finished running tests. |
|
jenkins run js |
|
Your PR has finished running tests. |
6fc318b to
0e16708
Compare
|
Your PR has finished running tests. |
e5528b7 to
f6aea07
Compare
|
Your PR has finished running tests. |
82d0968 to
d5758bd
Compare
f6aea07 to
d7b5b6b
Compare
|
Your PR has finished running tests. |
|
jenkins run all |
|
Your PR has finished running tests. |
d7b5b6b to
88c2a08
Compare
|
Your PR has finished running tests. |
|
@mushtaqak This is waiting for your review |
88c2a08 to
388649b
Compare
|
Your PR has finished running tests. |
6a8ea29 to
aaaafee
Compare
388649b to
35611e7
Compare
|
Your PR has finished running tests. |
mushtaqak
left a comment
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.
Miner comments, rest is looking 👍
|
|
||
| try: | ||
| get_transcript_from_val(edx_video_id=item.edx_video_id, lang=u'en') | ||
| edx_video_id = videos.get('edx_video_id') |
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.
let's clean this.
|
|
||
| Metadata.VideoID = Metadata.String.extend({ | ||
| // Delay between check_transcript requests | ||
| requestDelay: 300, |
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.
300 should be a constant
| spyOn(editor, 'getLocator').and.returnValue(component_locator); | ||
|
|
||
| // reset | ||
| Backbone.trigger.calls.reset(); |
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.
Why is this needed ?
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.
Events(Backbone.trigger) were triggered when Editor view is rendered above. We are clearing the those calls so that we can test in a clean state.
| MessageManager: MessageManager | ||
| }); | ||
|
|
||
| waitForEvent() |
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.
what is this doing exactly?
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.
This waits for transcripts:basicTabFieldChanged event which was triggered when VideoList is rendered.
| # whenever edx_video_id changes on frontend. Thats why we | ||
| # are changing type to `VideoID` so that a specific | ||
| # Backbonjs view can handle it. | ||
| editable_fields['edx_video_id']['type'] = 'VideoID' |
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.
Nice
| if (response.responseJSON !== undefined) { | ||
| errorMessage = response.responseJSON.status; | ||
| } else { | ||
| errorMessage = gettext('Error: Connection with server failed.'); |
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.
we can remove this else block since errorMessage is declared with gettext('Error: Connection with server failed.');
| return this.$el.closest('[data-locator]').data('locator'); | ||
| }, | ||
|
|
||
| handleFieldChanged: function() { |
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 we may need docstring for this method or a comment at-least
|
@mushtaqak Addressed feedback. |
|
Your PR has finished running tests. |
4ce3382 to
c02955d
Compare
EDUCATOR-2761
EDUCATOR-2752
|
Your PR has finished running tests. |
…ad-edx-video-id basic tab attach uploads with edx_video_id
|
Your PR has finished running tests. |
No description provided.