-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Remove circuit djangoapp from LMS #7180
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
Conversation
|
Thanks for the pull request, @stvstnfrd! I've created OSPR-431 to keep track of it in JIRA. JIRA is a place for product owners to prioritize feature reviews by the engineering development teams. Feel free to add as much of the following information to the ticket:
All technical communication about the code itself will still be done via the Github pull request interface. As a reminder, our process documentation is here. |
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 was my original inspiration.
|
test this please (rerunning tests because of odd migrations errors in the first build) |
|
LGTM 👍 @pmitros could you please confirm this is correct? Git blame suggests you edited /added some of these files. |
|
odd issues occurring in the test startup - I've pinged test eng about this. |
|
I'm okay with this iff the circuit editor still works in the wiki has been manually verified. This functionality was written in days before we had a test suite, so I am not confident it has proper test coverage. I know several times there were changes which made circuits in the wiki not work or effectively not work (in the latter case, bad CSS). The steps to confirm:
There should be an in-line circuit schematic. If this (or prior) changes broke this, they should be rolled back. If this (and prior) changes didn't break this, it's good to kill dead code. |
|
@stvstnfrd - can you please manually test as Piotr suggests and report back with results? Also I have no idea why your build is failing. Perhaps rebase later this afternoon. |
These endpoints (`edit_circuit` and `save_circuit`) had already been commented out of `urls.py`, so these views were disabled.
|
Needs manual test confirmation as described above, as well as a clean build. |
|
@sarina @pmitros What do you want first, the good news or the bad news? The good news: I don't think I broke it. Even running against edx/master, I have been unable to add a circuit schematic to a wiki page; the console complains about JavaScript errors involving CodeMirror. Could either of you confirm or deny this behavior on your instance? Assuming this is broken across-the-board, how would you like to proceed? @pmitros Is the wiki the only place which should be using this code at this point in time? Thanks; please advise. |
|
@stvstnfrd honestly I know nothing about this :( CodeMirror was updated a few months ago, and if this hasn't raised any red flags my guess would be no one is using this. But I'll let Piotr comment. |
@sarina No worries. If you could, I'd appreciate a "second opinion" if you're able to test on your instance to corroborate my devstack findings Are you actually using this feature in live courses? If you are and haven't had any reports (and we can confirm it is indeed broken), can we pretty_pretty_pretty please burn this whole thing to the ground? I have a "nuke-circuits" PR just standing by... ;) |
|
maybe @adampalay knows more? |
|
I've actually never heard of this feature. The And yeah, the wiki feature isn't working for me either. EDIT: it looks like the wiki feature has been used as recently as December |
|
I'm not sure what the right thing to do here is, then. If the url endpoints were already disabled, I don't see a ton of risk to merging this. However, it seems more prudent to fix the feature before merging this in, to verify the fixed feature doesn't break on this. That said, none of us here are going to be able to take the time to do so. @pmitros do you have any opinions/thoughts here, please |
|
The ability to embed circuits in the wiki was actually very helpful in 6.002x. Having the feature also provides a nice architectural basis for doing similar things for other types of course content. The way this worked was pretty brilliant to -- Bridger did a great job with it. I'd be a little sad to lose the foundation to do this in the future. Re-implementng this from scratch would be a ton of work. Extending this, much less so. On the other hand, I don't see anyone having time to fix this anytime soon. |
|
I'm going to put this, then, into the product review category and ask Leslie her thoughts on this. |
|
@stvstnfrd this is good to merge, but I can't re-run a test on it until it gets updated infrastructure. Would you mind rebasing? |
|
@stvstnfrd FYI there are no merge conflicts so the rebase should be quite straightforward. Just need to pick up the updated test infrastructure. |
|
Thanks for following up on this @sarina . Since I first opened this PR, I've found another block or two of code that should be removed along with this. I'll look to tack that on by end-of-week. |
|
@stvstnfrd ok, please ping me when that's done. If you can't get to that, let's at least just get this rebased and merged. |
|
@stvstnfrd - I'm going to close this tomorrow because it seems like you don't have time to get to it. Alternatively, if you can rebase this atop master today, I can merge what has been done in. |
These endpoints (
edit_circuitandsave_circuit) had already beencommented out of
urls.py, so these views were disabled.