-
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
[DEPR] FFI-3 (Course Enrollment by Tenant) feature #218
Comments
Reverting openedx/openedx-filters/pull/47 is not actually an option. This filter was accepted by the filters library more than one year ago. If we want to remove it we need to properly deprecate it. @mariajgrimaldi what are your thoughts on this? do you know why the dashboard mfe is working out of the box given that the |
@felipemontoya: Why can't we skip the deprecation process, as is, since the filter was never included in any service or library to be used (https://github.com/search?q=CourseEnrollmentQuerysetRequested&type=code), so it is not used by the community? IMHO, a good enough removal would be to open a PR, remove the filter, and release the library with a major bump. If you disagree, we can discuss the conditions where a proper deprecation process is needed here. |
I'm not sure how this is working. The enrollments are filtered by site org: https://github.com/openedx/edx-platform/blob/open-release/redwood.master/lms/djangoapps/learner_home/views.py#L504-L506, but that's also how the legacy FE works. I'll be looking into it. |
Initially, I didn't understand why we were considering removing a filter that already exists until I realized that the edx-platform PR was closed. So, as far as I'm concerned, there's no point in keeping it when it's not used in edx-platform |
@DonatoBD, the question here is: If not, we can deprecate this feature. |
Apart from NELC, I would say that no other Stratus has that restriction at the API level. @johanseto, do you know if NELC uses/needs that enrollment API filtered in any custom development? |
@DonatoBD Yes, recently, we needed to filter course enrollments by tenant for the mobile API. |
Based on the comments, I think the option that requires minor effort and more value is helping with this PR openedx/edx-platform#35500, and reverting the filter change in I would go with the idea of reverting and helping the NELC effort. But if you think it is better to have the filter and approach to the community with that, we can discuss it. What do you think? cc @DonatoBD @mariajgrimaldi @felipemontoya Update |
The problem I see with the NELC PR is that it is a bandaid trying to add tenant support in an API that has never had tenant support in the past. This in theory needs product approval and it won't get it as the the right way to do it is via a filter, not in the If reverting the filter as it is not being used (as Majo said) is an option, we can always create a general filter that can serve anywhere we are fetching a list of courses. In the long run FFI-3 is not a high priority as we are not currently thinking of migrating the multitenant saas. |
Proposal Date
Oct 1, 2024
Target Ticket Acceptance Date
Oct 10, 2024
Earliest Open edX Named Release Without This Functionality
Sumac - 2024-10
Rationale
From the user story in the FFI-3 document, this feature shows in the learning dashboard te course enrollment by tenant, and also modifies the APIs
api/enrollment/v1/enrollment
andapi/mobile/v1/users/{username}/course_enrollments/
.But since Redwood and MFEs, we have already seen different enrollments by tenant.
Removal
Replacement
In our Redwood instance, we can already see different course enrollments by tenant without this feature.
Deprecation
Leave in the Custom changes and in the FFI-3 doc, that this feature is deprecated
Additional Info
📌 If a not Nimbus instance needs to specifically have the APIs
api/enrollment/v1/enrollment
andapi/mobile/v1/users/{username}/course_enrollments/
filtered, please raise the hand to decline this proposal.I think it is a specific and unnecessary change, but if necessary, we can implement it as a filter.
Task List
The text was updated successfully, but these errors were encountered: