-
Notifications
You must be signed in to change notification settings - Fork 301
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
💻 Show the reason why you can see adventures #6134
Conversation
The icon really helps! I would expect to only see the custom adventures that are used in the shared class, would that be possible? When clicking on a adventure from another teacher, you do go to the customization page, but it's not possible to edit the adventure (which is the expected behavior I think). Can we remove the link behind the name of the adventure that goes to the customization page, and disable the remove button. Then the only thing one can do is preview the adventure? |
Everything is possible 😆, it's just a matter of time. On first glance it seems like it shouldn't take too long, but I don't have the data model super clear in my head so it might be that there are dragons.
I haven't checked, but I think the current explicitly implemented behavior is that if you share a class with someone, you can do everything to their adventures, including editing and deleting. (The reason I'm saying this is because I've seen calls to While I agree with you that it seems unexpected, it seems to have been "expected behavior" by someone, because it was explicitly implemented that way. It might make sense as well: if you share a class with someone, you trust them to teach with you, and they might want to make a small improvement to some adventure. It would be annoying if they then had to wait for you to make the change. These are good questions, that we might need to ponder a bit. Also, I don't think the current PR makes anything worse, you would just like to see more improvements. I propose we do the following:
|
I'll teach you a trick as well! If you know what source file to look at (I happen to know that most of the teacher code that deals with adventures is in Then click "Blame" at the top: And then you can see for every line of code, who last changed it and in what PR. I will then just Ctrl-F search in the file to look for things to do with "second adventures" (Ctrl-F for "second" or something to that effect), and then I come across this: And I can click through to the PR that introduced this code: Written by Hasan. He's unfortunately not around anymore to ask, but he left some breadcrumbs: So I was wrong:
I would still argue that there are 2 new changes (and therefore GitHub issues) to make:
|
This PR is ready to go. @AnneliesVlaar if you agree with it, please feel free to approve it yourself. |
Thank you for contributing! Your pull request is now going on the merge train (choo choo! Do not click update from main anymore, and be sure to allow changes to be pushed to your fork). |
Thank you for contributing! Your pull request is now going on the merge train (choo choo! Do not click update from main anymore, and be sure to allow changes to be pushed to your fork). |
You can see adventures of teachers that you share classes with: both if you are the second teacher, and if they are the second teacher.
This is surprising at first, so this adds an icon that indicates why you can see a given adventure.
How to test
Log in as a user that shares a class with another teacher. Observe that you can see their adventures.
Closes #6133.