show links to sets even when you are not assigned to those sets - #3097
Conversation
|
I think that a little more granularity is needed for which links specifically are shown. If an instructor is not assigned to the set, then I agree with showing the sub links for Either that or this should be taken further. Currently as noted above if the instructor is not assigned to a set, you get the error alert that the set is not valid. That should perhaps still be shown, but lets assume that the set is assigned to students. If the student navigation were still shown when the instructor goes to this page, then this page still is useful. Although, that would take some work to implement since it would probably involve needing to make changes to the |
|
I pushed changes so that the link is not shown under Assignments (if you are not actually assigned to the set). |
|
In SetDetails, I removed myself from the set, but a student has been assign it. I'm seeing: at the bottom and this seems to make sense if on line 224, |
|
Good catch. I caught something similar at a different place, but overlooked this one. Can you try it now? I changed the value of that key-value pair to be |
|
I am also getting a warning on the page to assign a set to a checkbox list of users: |
|
Dang, I thought I thoroughly reviewed for this after Peter's finding. But this is another one of the same thing. I will fix it soon and push. |
|
OK, that instance is addressed now in the same way as the previous one. |
|
I think all of the undefined warnings are resolved now. My approval still stands. |
|
Yeah, I didn't do anything at the problem level, and IIRC it was intentional because there is some complication in the logic that I wanted to avoid dealing with. I'll take a look though. |
|
@Alex-Jordan I am okay with it as is, just double checking it was intentional and you don't think there is a use case for that too. |
|
OK, I believe those links show up and work now. I tested by vising a Set Detail page for a set that I was not assigned, and using the edit problem icon on a problem. The links appeared and I was able to follow all of them to their destination. |
|
The problem links are now shown, but are not selected and don't work in the problem editor (the stats links work). Here is what broke for me: Sets Manager -> Click on "X/Y" to go to the set editor for a set you are not assigned to -> Click edit button for any problem in the set -> Problem editor opens, the links for the problem show up correctly in the menu but I first noticed that the "SetID: Problem X" link under "Problem Editor" is not highlighted as selected. Further when I actually click on that link I get "Page not found" Looking closer the reason I get that is because the link ends with |
|
@somiaj Man I don't know what's up with this one. I can't even blame Claude for all the mistakes. But I think this might finally be ready. |
|
You can still blame Claude! I would! |
somiaj
left a comment
There was a problem hiding this comment.
I wasn't able to break it anymore.
|
I mean I could blame Claude. But this was a PR that was 100% me, 0% Claude. It was an issue I noticed while testing some other Claude-powered PR though, so I guess that could count. |


Suppose you are an instructor and there is a set that is not assigned to you. If you go to the Sets Manager, and go to the Set Details page for that set, you won't see links to that set in the side navigation (under Sets Manager, Statistics, and Student Progress). This changes it so that you do. For example, it facilitates going to the Statistics page for that set even though it's not assigned to you as a user.