Skip to content

Conversation

@lduarte1991
Copy link
Contributor

Background: As per Christina's request I'll be turning the Pull Request #2515 into a few smaller PRs.

Goal of this PR: The goal of this PR is to fix two main issues. The first is to use the Firebase Token Generator from the PyPI version of Firebase and the second is to pass the token as a string rather than create a view (in djangoapp/students) that pops up with the token as a string in the body of the html.

CMS Updates: This one still follows the original first push in that Annotator is not yet working in the CMS (this will change in one of the following chunks). In terms of creating a test environment, the Firebase Token Generator uses a different token standard and the current testing backend does not meet those so please email me to ask for a new secret token and url link to the annotation_storage_url. There are no UI changes.

LMS Updates: Nothing should change in the UI of the LMS, only the way that the token is handled should change. The secret token and url links have been changed so email me for updates.

Testing notes: Once the proper secret token and URL are placed you should be able to create annotations in the LMS (not the CMS). There is a problem if you get a black bar at the top saying "annotation could not be stored" or if you get a 401 error in the console debugger.

@singingwolfboy
Copy link
Contributor

@lduarte1991 Thanks, making smaller pull requests should make this easier to review. :) Also, we're going to need a signed individual contributor agreement from you -- can you send that in, please?

@lduarte1991
Copy link
Contributor Author

Absolutely! Is that something I should email? Fax over to Edx? Give to someone at HarvardX?

@singingwolfboy
Copy link
Contributor

As it says on the form, you can either email it to jennifer@edx.org, or print it out and mail it to the address on the form.

@lduarte1991
Copy link
Contributor Author

Will do 👍

@lduarte1991
Copy link
Contributor Author

@cpennington Since there are no CMS-related items Christina said I should tag you to check the LMS and approve/merge this PR. Thanks in advance!

Copy link
Contributor

Choose a reason for hiding this comment

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

The diacritics field seems out of place in this PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is, I was trying to unravel a few PRs that weren't related and must have missed this. I'm literally about to do another PR that includes/uses the diacritics. Should I remove it here anyway and add it back in the next PR? It doesn't cause any errors/issues as far as I can tell.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, lets keep the PRs focused. It'll help them be easier to review.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

PR #3480 includes the diacritic plugin.

@lduarte1991
Copy link
Contributor Author

@cpennington Is there any way I can be whitelisted so that the Jenkins tests will run? Thanks

@cpennington
Copy link
Contributor

@jzoldak Can you do that?

@cpennington
Copy link
Contributor

@lduarte1991 actually, it looks like the tests did run. They sometimes take a while to start.

@lduarte1991
Copy link
Contributor Author

Yes I saw that it says "Failed" because they were aborted by @jzoldak. Any way they can actually be run? Thanks in advance! Is there anything else you're waiting on me for?

@jzoldak
Copy link
Contributor

jzoldak commented Apr 28, 2014

@lduarte1991 I have added you to the whitelist so PRs from your fork will trigger builds automatically.

This morning we had a problem with a namespace collision on some jenkins workers so I had to abort a bunch of builds in order to recycle the workers. That issue has been solved and I have just manually re-triggered a build for this PR.

@e0d
Copy link
Contributor

e0d commented Apr 28, 2014

@lduarte1991 Looks like there are unit tests failures. We're on the verge of cutting a release, is there any urgency around this PR?

@lduarte1991
Copy link
Contributor Author

@e0d There is some urgency and the unit tests can be fixed really quickly. Give me a few minutes if you can?

@lduarte1991
Copy link
Contributor Author

@e0d Just fixed it but I guess the test isn't running automatically? I ran it locally and the error seems to be gone.

EDIT: Never mind it just started running.

Copy link
Contributor

Choose a reason for hiding this comment

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

Nitpick: # Your comment, rather than #your comment

@cpennington
Copy link
Contributor

👍

@lduarte1991
Copy link
Contributor Author

Hey Calen, I'm assuming that thumbs up means the PR is good to push. When will this be merged?

@cpennington
Copy link
Contributor

@cahrens @singingwolfboy: Does one of you guys want to be the other +1?

@cahrens
Copy link

cahrens commented May 6, 2014

@singingwolfboy Do you have time to take a look? This PR doesn't have Studio changes.

Copy link
Contributor

Choose a reason for hiding this comment

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

Why did you change from self._render_content() to self.content? Is there a difference?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It was a change the Daniel made in #2515. Basically render_content was an old function from annotatable that was not needed. the function has since been removed.

@singingwolfboy
Copy link
Contributor

@lduarte1991 Do you want to make any of those last-minute changes? The only comments I had left were nitpicks, so I'm happy to merge this pull request without those fixes -- but I don't want to merge it before you're ready for it to be merged.

@lduarte1991
Copy link
Contributor Author

@singingwolfboy Give me an hour to make some fixes. Would you like me to rebase and squash as well?

@lduarte1991
Copy link
Contributor Author

@singingwolfboy Let me know if I need to and I'll do it, otherwise feel free to merge!

@lduarte1991
Copy link
Contributor Author

@singingwolfboy Can you tell me what went wrong here? I'm still a bit iffy on what the bok-choy test actually checks for and what went wrong even looking at the console output for it.

@singingwolfboy
Copy link
Contributor

@lduarte1991 I think it's just a flaky test. I'm trying to run the tests on your branch locally on my computer to be sure.

@lduarte1991
Copy link
Contributor Author

@singingwolfboy Did the tests turn out ok? or should I change something? Please let me know asap so I can try to have it fixed by monday. Thanks!

@singingwolfboy
Copy link
Contributor

@lduarte1991 I never actually got the tests to run on my machine -- but that's a different problem for a different day. I've kicked off another Jenkins test run -- lets see if it passes this time.

@singingwolfboy
Copy link
Contributor

Alright, the bok choy tests all passed, but now one of the Jasmine tests is failing. I'm certain that's a flaky test, so I'm going to merge this.

singingwolfboy added a commit that referenced this pull request May 9, 2014
Reconnecting Token Generator for Annotation Tool
@singingwolfboy singingwolfboy merged commit c0a5171 into openedx:master May 9, 2014
singingwolfboy added a commit that referenced this pull request May 14, 2014
brianhw added a commit that referenced this pull request May 14, 2014
louyihua pushed a commit to louyihua/edx-platform that referenced this pull request May 15, 2014
singingwolfboy added a commit that referenced this pull request May 15, 2014
lduarte1991 added a commit to lduarte1991/edx-platform that referenced this pull request May 15, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

open-source-contribution PR author is not from Axim or 2U

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants