-
Notifications
You must be signed in to change notification settings - Fork 3
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
Refactored schedule tree #169
Conversation
ba92e47
to
ee34a86
Compare
@justinabrahms this is the Backbone PR I mentioned in stand-up. The original JavaScript was done by a contractor who is long gone. DB didn't like it, which was making it hard for us to make modifications. |
@amir-qayyum-khan Can you comment more on what specifically was refactored? I'm not clear what you mean by realizing the "full potential of backbone". I would expect more code deletion as part of this refactoring. |
|
||
// This data will be render on schedule tree. | ||
this.scheduleTreeData = this.pruned(scheduleJson, function(node) { | ||
return !node.hidden; |
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.
Should this also be excluding on vertical?
ee34a86
to
faf297f
Compare
var ccxScheduleTreeNode = new scheduleTreeNode. | ||
ccxScheduleTreeNodeView({ model: chapter }); | ||
ccxScheduleTreeNode.render(); | ||
this.$el.append(ccxScheduleTreeNode.el); |
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.
Instead of manually altering the DOM, consider a template.
In general, it would be good to add some documentation about what these modules are for and how they're outlined. I found myself wondering how this stuff all fit together. |
4dc8c3a
to
017a697
Compare
@justinabrahms can you please review ? |
017a697
to
5512b3f
Compare
d9519ee
to
1351170
Compare
1351170
to
dc6b19a
Compare
REST APIs modified
…paced-subsection-config Fix subsection config for self-paced course
…ctoring_0_12_11 Incremented edx-proctoring version to 0.12.11
MA-1919 making mobile handout links accommodate jump to id's and cour…
…eplay) The get_or_create function is vulnerable to race conditions in MySQL, which can cause the model LoginFailure to, in some cases, have more than one row for the same user, breaking the login for that user. Addinf functionality to expect and clean the error by deleting extra rows (by oldest lockout date), leaving just one entry and allowing the user to login. Replayed and squashed by @efischer19, initially commited by @laq
Replayed by @efischer19 due to git issues, initially commited by @laq
Upgrade edx-lint to 0.4.2
Added extra field to CCX model for Course Models
Avoid MultipleObjectsReturned errors with LoginFailures
Syncs preface with edx-doc repo version
dc6b19a
to
02be0e3
Compare
SECURITY FIX : Fix CAPA Problems
Background
fixes #146, fixes #165, fixes #54, fixes #39
What is done in this PR
Studio Updates: None.
LMS Updates:
Detail:
hidden=false
is shown to schedule tree on left size, the units withhidden=true
is supplied to form at right side. From there user can change visibility of hidden units by clickingAdding a unit
orAdding all units
@pdpinch @giocalitri