-
Notifications
You must be signed in to change notification settings - Fork 4
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
["FEAT"] Organizations are not created on course_org_filter modification #165
Comments
@Alec4r On Lilac, the permission to create courses was based on custom permission that can store any value in the organization. When users create a new course with that organization, the organization is created automatically. On Nuez, this permission changed for a relationship to the Organization model which requires the organization to exists before granting course creator permission |
I can see two general alternatives roads here:
Do you guys see something more? |
Please stop using signals, that inhibits readability and the result can be achieved by modifying the save method, however your solution could require that but the comment is not specific about that. |
Esto se hará sobre el LMS admin, no sobre el Studio admin verdad? |
After discussing this with @Ian2012 we noticed that this case only happens very rarely when Orgs are created manually by the support team. We have left this with very low priority for now. About the usage of signals, it is a well established pattern that both we and the platform use. We are the authors and maintainers of openedx-events which internally uses signals. I don't think it is reasonable to ask that we stop using them. Also I don't think this inhibits readability. I think you mean to say that it makes it more difficult to trace the consequences of an action, but that can be mitigated in many other ways. |
openedx-events is a specific plugin which adds extension points, if I'm not wrong, so another plugins can take advantage of those signals and inserts a custom behavior or actions since the platform code is not accessible, here we don't have and, I think, we don't want that behavior therefore we cannot compare them, and again your comment was not clear enough about the implementation, so my comment is based on the current implementation of tenant organizations, that I made. In this case we can control and edit the plugin code so a signal is not necessary. I think that is the most reasonable thing that I have asked, obviously you don't agree , so I here are some sites that explains better this idea https://stackoverflow.com/a/35950538 btw: after debugging 3 days an issue, IMO |
This is not a priority to move it to in progress, but we have to fix it. I am going to move it to the backlog in the first position for when we have time |
Not creating the organization also breaks the permissions on Olive version and can cause some weird issues on Aspects |
Describe the bug
When you add an organization to
course_org_filter
in the tenant the Organization is not created.To Reproduce
Steps to reproduce the behavior:
Expected behavior
An organization is created with its tenant organization model.
The text was updated successfully, but these errors were encountered: