Do not hide all the elements of the units with problems to anonymous … - #354
Conversation
| item_type = item.get_icon_class() | ||
| usage_id = item.scope_ids.usage_id | ||
|
|
||
| if item_type == 'problem' and not is_user_authenticated: |
There was a problem hiding this comment.
Just a question: the whole block is classified as "problem" if there is a graded element in it?
There was a problem hiding this comment.
It is being used the icon class to define the type of an unit. If there is a component(child) in the unit with 'problem' as icon class then the icon class of the unit is "problem". Those cases are the ones that are failing.
There was a problem hiding this comment.
ah yes, they said it in the comments, getting the type from the icon class is kinda weird
|
I suggest that we wait for the upstream PR to be merged and then do a backport before we continue with this. The idea is that we don't deviate too much from upstream here so that we can support this better in the future. |
cfd4917 to
5cdf293
Compare
5cdf293 to
3bc9eb1
Compare
|
Update: this is the PR against upstream: https://github.com/edx/edx-platform/pull/22385 |
With this change, the units with problem components are not hidden