Skip to content
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

S2U-26 Gradebook add support for group instances #12338

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

bgarciaentornos
Copy link
Contributor

Creating as a draft, as I guess this is a big piece and will generate debate.

Linking the original s2u-22x PR and copying some of the comments I added in there:

#12127

Some context about parameter duplication: previously gradebook instances were linked to a site id, so every method and query regarding permissions, objects or whatever could use the same value. Splitting that between site for permissions and group for gb instance was the hardest bit, deciding where would fit one value or the other on each of the dozens of methods and hundreds of calls.

The scope of this development was limited to providing group support to the gradebook tool, but we're already in talks to follow this work for external integrations (assignments, samigo, content-review, webservices, lti...). For that reason we created this different jira:
https://sakaiproject.atlassian.net/browse/SAK-49493

The comments about using the same parameter twice is to keep those integrations working as before (gradebook site instances), while moving the code closer to the future version. Gradebookng has lots and lots of similar methods receiving different arguments, called from many different places and doing similar things but not always the same. That was hard to read and to maintain, so I tried to leave it ready so whoever gets other pieces of work doesn't have to go through that process again.

@bgarciaentornos
Copy link
Contributor Author

Fix for cypress tests -> sakaicontrib/cypress-sakai#4

@ern ern changed the title S2U-26 Gradebook: support for group instances - MASTER S2U-26 Gradebook add support for group instances Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant